Leaked source code of windows server 2003
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.

73 lines
1.9 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. FaxActivityLogging.h
  5. Abstract:
  6. Declaration of the CFaxActivityLogging Class.
  7. Author:
  8. Iv Garber (IvG) Jun, 2000
  9. Revision History:
  10. --*/
  11. #ifndef __FAXACTIVITYLOGGING_H_
  12. #define __FAXACTIVITYLOGGING_H_
  13. #include "resource.h" // main symbols
  14. #include "FaxCommon.h"
  15. //
  16. //================ FAX ACTIVITY LOGGING =================================================
  17. //
  18. class ATL_NO_VTABLE CFaxActivityLogging :
  19. public CComObjectRootEx<CComSingleThreadModel>,
  20. public ISupportErrorInfo,
  21. public IDispatchImpl<IFaxActivityLogging, &IID_IFaxActivityLogging, &LIBID_FAXCOMEXLib>,
  22. public CFaxInitInner
  23. {
  24. public:
  25. CFaxActivityLogging() : CFaxInitInner(_T("FAX ACTIVITY LOGGING")), m_bInited(false)
  26. {
  27. }
  28. DECLARE_REGISTRY_RESOURCEID(IDR_FAXACTIVITYLOGGING)
  29. DECLARE_NOT_AGGREGATABLE(CFaxActivityLogging)
  30. DECLARE_PROTECT_FINAL_CONSTRUCT()
  31. BEGIN_COM_MAP(CFaxActivityLogging)
  32. COM_INTERFACE_ENTRY(IFaxActivityLogging)
  33. COM_INTERFACE_ENTRY(IDispatch)
  34. COM_INTERFACE_ENTRY(ISupportErrorInfo)
  35. COM_INTERFACE_ENTRY(IFaxInitInner)
  36. END_COM_MAP()
  37. // Interfaces
  38. STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);
  39. STDMETHOD(get_LogIncoming)(/*[out, retval]*/ VARIANT_BOOL *pbLogIncoming);
  40. STDMETHOD(put_LogIncoming)(/*[out, retval]*/ VARIANT_BOOL bLogIncoming);
  41. STDMETHOD(get_LogOutgoing)(/*[out, retval]*/ VARIANT_BOOL *pbLogOutgoing);
  42. STDMETHOD(put_LogOutgoing)(/*[out, retval]*/ VARIANT_BOOL bLogOutgoing);
  43. STDMETHOD(get_DatabasePath)(/*[out, retval]*/ BSTR *pbstrDatabasePath);
  44. STDMETHOD(put_DatabasePath)(/*[out, retval]*/ BSTR bstrDatabasePath);
  45. STDMETHOD(Refresh)();
  46. STDMETHOD(Save)();
  47. private:
  48. VARIANT_BOOL m_bLogIncoming;
  49. VARIANT_BOOL m_bLogOutgoing;
  50. CComBSTR m_bstrDatabasePath;
  51. bool m_bInited;
  52. };
  53. #endif //__FAXACTIVITYLOGGING_H_