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.

60 lines
1.7 KiB

  1. /////////////////////////////////////////////////////////////////////////////////////
  2. // AnalogRadioTS.h : Declaration of the CAnalogRadioTS
  3. // Copyright (c) Microsoft Corporation 1999.
  4. #ifndef __ANALOGRADIOTS_H_
  5. #define __ANALOGRADIOTS_H_
  6. #pragma once
  7. #include <objectwithsiteimplsec.h>
  8. #include "analogradiotsimpl.h"
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CAnalogRadioTS
  11. class ATL_NO_VTABLE __declspec(uuid("8A674B4C-1F63-11d3-B64C-00C04F79498E")) CAnalogRadioTS :
  12. public CComObjectRootEx<CComMultiThreadModel>,
  13. public CComCoClass<CAnalogRadioTS, &__uuidof(CAnalogRadioTS)>,
  14. public IObjectWithSiteImplSec<CAnalogRadioTS>,
  15. public IAnalogRadioTSImpl<CAnalogRadioTS>
  16. {
  17. public:
  18. CAnalogRadioTS() : m_bRequiresSave(false)
  19. {
  20. }
  21. REGISTER_AUTOMATION_OBJECT_WITH_TM(IDS_REG_TUNEROBJ,
  22. IDS_REG_ANALOGRADIOTS_PROGID,
  23. IDS_REG_ANALOGRADIOTS_DESC,
  24. LIBID_TunerLib,
  25. __uuidof(CAnalogRadioTS), tvBoth);
  26. DECLARE_PROTECT_FINAL_CONSTRUCT()
  27. BEGIN_COM_MAP(CAnalogRadioTS)
  28. COM_INTERFACE_ENTRY(IAnalogRadioTuningSpace)
  29. COM_INTERFACE_ENTRY(ITuningSpace)
  30. COM_INTERFACE_ENTRY(IObjectWithSite)
  31. COM_INTERFACE_ENTRY(IPersistPropertyBag)
  32. COM_INTERFACE_ENTRY(IPersist)
  33. COM_INTERFACE_ENTRY(IDispatch)
  34. END_COM_MAP_WITH_FTM()
  35. BEGIN_CATEGORY_MAP(CAnalogRadioTS)
  36. IMPLEMENTED_CATEGORY(CATID_SafeForScripting)
  37. IMPLEMENTED_CATEGORY(CATID_SafeForInitializing)
  38. IMPLEMENTED_CATEGORY(CATID_PersistsToPropertyBag)
  39. END_CATEGORY_MAP()
  40. public:
  41. bool m_bRequiresSave;
  42. BEGIN_PROP_MAP(CAnalogRadioTS)
  43. CHAIN_PROP_MAP(IAnalogRadioTSImpl<CAnalogRadioTS>)
  44. END_PROPERTY_MAP()
  45. };
  46. typedef CComQIPtr<IAnalogRadioTuningSpace> PQAnalogRadioTS;
  47. #endif //__ANALOGRADIOTS_H_