Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
2.0 KiB

  1. /////////////////////////////////////////////////////////////////////////////////////
  2. // ATSCChannelTuneRequest.h : Declaration of the CATSCChannelTuneRequest
  3. // Copyright (c) Microsoft Corporation 1999.
  4. #ifndef __ATSCCHANNELTUNEREQUEST_H_
  5. #define __ATSCCHANNELTUNEREQUEST_H_
  6. #pragma once
  7. #include <objectwithsiteimplsec.h>
  8. #include "atscchanneltunerequestimpl.h"
  9. typedef CComQIPtr<IATSCChannelTuneRequest> PQATSCChannelTuneRequest;
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CATSCChannelTuneRequest
  12. class ATL_NO_VTABLE CATSCChannelTuneRequest :
  13. public CComObjectRootEx<CComMultiThreadModel>,
  14. public IATSCChannelTuneRequestImpl<CATSCChannelTuneRequest>,
  15. public CComCoClass<CATSCChannelTuneRequest, &CLSID_ATSCChannelTuneRequest>,
  16. public IObjectWithSiteImplSec<CATSCChannelTuneRequest>,
  17. public ISupportErrorInfo
  18. {
  19. public:
  20. CATSCChannelTuneRequest() {}
  21. REGISTER_AUTOMATION_OBJECT_WITH_TM(IDS_REG_TUNEROBJ,
  22. IDS_REG_ATSCCHANNELTUNEREQUEST_PROGID,
  23. IDS_REG_ATSCCHANNELTUNEREQUEST_DESC,
  24. LIBID_TunerLib,
  25. CLSID_ATSCChannelTuneRequest, tvBoth);
  26. BEGIN_COM_MAP(CATSCChannelTuneRequest)
  27. COM_INTERFACE_ENTRY(IATSCChannelTuneRequest)
  28. COM_INTERFACE_ENTRY(IChannelTuneRequest)
  29. COM_INTERFACE_ENTRY(ITuneRequest)
  30. COM_INTERFACE_ENTRY(IDispatch)
  31. COM_INTERFACE_ENTRY(IObjectWithSite)
  32. COM_INTERFACE_ENTRY(ISupportErrorInfo)
  33. COM_INTERFACE_ENTRY(IPersistPropertyBag)
  34. COM_INTERFACE_ENTRY(IPersist)
  35. END_COM_MAP_WITH_FTM()
  36. BEGIN_CATEGORY_MAP(CATSCChannelTuneRequest)
  37. IMPLEMENTED_CATEGORY(CATID_SafeForScripting)
  38. IMPLEMENTED_CATEGORY(CATID_SafeForInitializing)
  39. IMPLEMENTED_CATEGORY(CATID_PersistsToPropertyBag)
  40. END_CATEGORY_MAP()
  41. // ISupportsErrorInfo
  42. STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);
  43. typedef IATSCChannelTuneRequestImpl<CATSCChannelTuneRequest> basetype;
  44. BEGIN_PROP_MAP(CATSCChannelTuneRequest)
  45. CHAIN_PROP_MAP(basetype)
  46. END_PROP_MAP()
  47. };
  48. #endif //__ATSCCHANNELTUNEREQUEST_H_