home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 June / PCFJune.iso / Xenon / C++ / FreeCommandLineTools.exe / Include / brprop.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-31  |  4.1 KB  |  122 lines

  1. /***********************************************************************
  2. **      B R P R O P . H                                                *
  3. **                                                                     *
  4. ************************************************************************
  5. ** Copyright (C) 1996 - 1999 Microsoft Corporation                         *
  6. **                 All Rights Reserved                                 *
  7. ************************************************************************/
  8. /*
  9.  
  10.         BRPROP.H
  11.  
  12.         BroadcastProperty record object class definitions for Microsoft Guide
  13.  
  14.  
  15.  
  16. */
  17.  
  18.  
  19.  
  20. #ifndef _BRPROP_H_
  21. #pragma option push -b -a8 -pc -A- /*P_O_Push*/
  22. #define _BRPROP_H_
  23.  
  24.  
  25. #include "dbsets.h"
  26.  
  27.  
  28. /*
  29.  
  30. BroadcastProperty objects are constructed from database records of the BroadcastProperty table.
  31.  
  32. The CBroadcastPropertyRecordset class is used to select and create CBroadcastProperty objects
  33. from the BroadcastProperty table via functions in the CDatabaseRecordset parent class.
  34.  
  35. */
  36.  
  37.  
  38.  
  39. class  COMMMSTVEXPORT CBroadcastPropertyRecordset : public CDatabaseRecordset
  40. {
  41.  
  42. // This class provides BroadcastProperty recordset manipulation via parent functions
  43.  
  44.  
  45. virtual CString GetTableName( VOID);
  46.  
  47.  
  48. virtual BOOL    SetRecordsetObject( VOID* cRecordsetObject);
  49.  
  50. public:
  51. virtual VOID*   GetRecordsetObject( VOID);
  52. virtual BOOLEAN Seek(LPCTSTR lpszComparison, CObject &coo);
  53. virtual BOOLEAN Seek(LPCTSTR lpszComparison, LONG lBroadcastPropertyID);
  54. };
  55.  
  56.  
  57.  
  58.  
  59. class COMMMSTVEXPORT CBroadcastProperty : public CObject
  60. {
  61.  
  62.     friend class CBroadcastPropertyRecordset; // generates the CBroadcastProperty record object
  63.  
  64. private:
  65.  
  66.     LONG            m_lBroadcastPropertyID;
  67.     LONG            m_lTuningSpace;
  68.     CString         m_cszAbbreviation;
  69.     CString         m_cszName;
  70.     LONG            m_lDisplayOrder;
  71.     CString         m_cszPictogramMoniker;
  72.  
  73. public:
  74.  
  75.     CBroadcastProperty(LONG lBroadcastPropertyID = AFX_RFX_LONG_PSEUDO_NULL,
  76.                         LONG lTuningSpace = 0,
  77.                         CString cszAbbreviation = "",
  78.                         CString cszName = "",
  79.                         LONG lDisplayOrder = 0,
  80.                         CString cszPictogramMoniker = "") :
  81.                         m_lBroadcastPropertyID(lBroadcastPropertyID),
  82.                         m_lTuningSpace(lTuningSpace),
  83.                         m_cszAbbreviation(cszAbbreviation), 
  84.                         m_cszName(cszName),
  85.                         m_lDisplayOrder(lDisplayOrder),
  86.                         m_cszPictogramMoniker(cszPictogramMoniker) { }
  87.  
  88.     ~CBroadcastProperty(VOID) { }
  89.  
  90.  
  91.     VOID    SetTuningSpace( LONG lTuningSpace) { m_lTuningSpace = lTuningSpace; }
  92.     VOID    SetAbbreviation( LPCTSTR cszAbbreviation) { m_cszAbbreviation = cszAbbreviation; }
  93.     VOID    SetName( LPCTSTR cszName) { m_cszName = cszName; }
  94.     VOID    SetDisplayOrder( LONG lDisplayOrder) { m_lDisplayOrder = lDisplayOrder; }
  95.     VOID    SetPictogramMoniker( LPCTSTR cszPictogramMoniker) { m_cszPictogramMoniker = cszPictogramMoniker; }
  96.  
  97.     LONG            BroadcastPropertyID() { return m_lBroadcastPropertyID; }
  98.     LONG            TuningSpace() { return m_lTuningSpace; }
  99.     CString         Abbreviation() { return m_cszAbbreviation; }
  100.     CString         Name() { return m_cszName; }
  101.     LONG            DisplayOrder() { return m_lDisplayOrder; }
  102.     CString         PictogramMoniker() { return m_cszPictogramMoniker; }
  103. };
  104.  
  105.  
  106. // Table: BroadcastProperty
  107.  
  108. #define  TBL_BroadcastProperty  _T("[Broadcast Property]")
  109.  
  110. //      Field:                                        Name                          Type    Size
  111.  
  112. #define FLD_BroadcastProperty_BroadcastPropertyID _T("BP Broadcast Property ID") // AutoLong  4
  113. #define FLD_BroadcastProperty_TuningSpace         _T("BP Tuning Space")          // Long      4
  114. #define FLD_BroadcastProperty_Abbreviation        _T("BP Abbreviation")          // Text      4
  115. #define FLD_BroadcastProperty_Name                _T("BP Name")                  // Text    128
  116. #define FLD_BroadcastProperty_DisplayOrder        _T("BP Display Order")         // Long      4
  117. #define FLD_BroadcastProperty_PictogramMoniker    _T("BP Pictogram Moniker")     // Text    255
  118.  
  119. #pragma option pop /*P_O_Pop*/
  120. #endif
  121.  
  122.