home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / graphics / ba / tvxsamp / tvdisp.h < prev    next >
C/C++ Source or Header  |  1997-09-03  |  3KB  |  71 lines

  1. // tvdisp.h : TV Viewer sample application
  2. //
  3. // Copyright (C) 1997 Microsoft Corporation
  4. // All rights reserved.
  5. //
  6. // This source code is only intended as a supplement to the
  7. // Broadcast Architecture Programmer's Reference.
  8. // For detailed information regarding Broadcast
  9. // Architecture, see the reference.
  10. //
  11. /////////////////////////////////////////////////////////////////////////////
  12. // ITVViewer wrapper class
  13.  
  14. class ITVViewer : public COleDispatchDriver
  15. {
  16. public:
  17.     ITVViewer() {}        // Calls COleDispatchDriver default constructor
  18.     ITVViewer(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
  19.     ITVViewer(const ITVViewer& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}
  20.  
  21. // Attributes
  22. public:
  23.  
  24. // Operations
  25. public:
  26.     void SetTVMode(BOOL fTVMode);
  27.     BOOL IsTVMode();
  28.     BOOL IsChannelBarUp();
  29.     BOOL IsModalDialogUp();
  30.     BOOL IsLoaderActive();
  31.     DATE GlobalStartTime();
  32.     DATE GlobalEndTime();
  33.     LPUNKNOWN ChannelList();
  34.     long ViewerID();
  35.     void WantNumKeys(BOOL fWantNumKeys);
  36.     void Tune(long lTuningSpace, long lChannelNumber, long lVideoStream, long lAudioStream, LPCTSTR bsIPStream);
  37.     void GetCurrentTuningInfo(long* lTuningSpace, long* lChannelNumber, long* lVideoStream, long* lAudioStream, BSTR* pbsIPAddress);
  38.     void GetPreviousTuningInfo(long* lTuningSpace, long* lChannelNumber, long* lVideoStream, long* lAudioStream, BSTR* pbsIPAddress);
  39.     void SetReminder(LPUNKNOWN pEpisode, BOOL bRecord);
  40.     BOOL HasReminder(LPUNKNOWN pEpisode, BOOL bRecord);
  41.     void DeleteReminder(LPUNKNOWN pEpisode, BOOL bRecord);
  42.     BOOL HasEnhancement(LPUNKNOWN pEpisode);
  43.     BOOL IsCC();
  44. };
  45. /////////////////////////////////////////////////////////////////////////////
  46. // ITVControl wrapper class
  47.  
  48. class ITVControl : public COleDispatchDriver
  49. {
  50. public:
  51.     ITVControl() {}        // Calls COleDispatchDriver default constructor
  52.     ITVControl(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
  53.     ITVControl(const ITVControl& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}
  54.  
  55. // Attributes
  56. public:
  57.  
  58. // Operations
  59. public:
  60.     BOOL OnIdle();
  61.     void Tune(long ltsNew, long lcnNew, long lvsNew, long lasNew, LPCTSTR bsIPNew, long ltsPrev, long lcnPrev, long lvsPrev, long lasPrev, LPCTSTR bsIPPrev);
  62.     void TearDown();
  63.     void SyncEvent(long iEvent, LPCTSTR pParm1, LPCTSTR pParm2);
  64.     void EpisodeStatusChanged(long iChange, LPUNKNOWN pEpi);
  65.     void PowerChange(BOOL bPowerOn, BOOL bUIAllowed);
  66.     void OnTVFocus();
  67.     void SetOutput(LPCTSTR bsDeviceName);
  68.     BOOL GetCC();
  69.     void SetCC(BOOL bCC);
  70. };
  71.