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.6 KiB

  1. /////////////////////////////////////////////////////////////////////////////////////
  2. // AnalogTVTS.h : Declaration of the CAnalogTVTS
  3. // Copyright (c) Microsoft Corporation 1999.
  4. #ifndef __ANALOGTVTS_H_
  5. #define __ANALOGTVTS_H_
  6. #pragma once
  7. #include <objectwithsiteimplsec.h>
  8. #include "analogtvtsimpl.h"
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CAnalogTVTS
  11. class ATL_NO_VTABLE __declspec(uuid("8A674B4D-1F63-11d3-B64C-00C04F79498E")) CAnalogTVTS :
  12. public CComObjectRootEx<CComMultiThreadModel>,
  13. public CComCoClass<CAnalogTVTS, &__uuidof(CAnalogTVTS)>,
  14. public IObjectWithSiteImplSec<CAnalogTVTS>,
  15. public IAnalogTVTSImpl<CAnalogTVTS>
  16. {
  17. public:
  18. CAnalogTVTS() : m_bRequiresSave(false)
  19. {
  20. }
  21. REGISTER_AUTOMATION_OBJECT_WITH_TM(IDS_REG_TUNEROBJ,
  22. IDS_REG_ANALOGTVTS_PROGID,
  23. IDS_REG_ANALOGTVTS_DESC,
  24. LIBID_TunerLib,
  25. __uuidof(CAnalogTVTS), tvBoth);
  26. DECLARE_PROTECT_FINAL_CONSTRUCT()
  27. BEGIN_COM_MAP(CAnalogTVTS)
  28. COM_INTERFACE_ENTRY(IAnalogTVTuningSpace)
  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(CAnalogTVTS)
  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(CAnalogTVTS)
  43. CHAIN_PROP_MAP(IAnalogTVTSImpl<CAnalogTVTS>)
  44. END_PROPERTY_MAP()
  45. };
  46. typedef CComQIPtr<IAnalogTVTuningSpace> PQAnalogTVTS;
  47. #endif //__ANALOGTVTS_H_