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.

88 lines
2.5 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. faxoutgoingqueue.h
  5. Abstract:
  6. Declaration of the CFaxOutgoingQueue Class.
  7. Author:
  8. Iv Garber (IvG) Jun, 2000
  9. Revision History:
  10. --*/
  11. #ifndef __FAXOUTGOINGQUEUE_H_
  12. #define __FAXOUTGOINGQUEUE_H_
  13. #include "resource.h" // main symbols
  14. #include "FaxQueueInner.h"
  15. #include "FaxOutgoingJob.h"
  16. #include "FaxOutgoingJobs.h"
  17. //
  18. //================= FAX OUTGOING QUEUE =============================================
  19. //
  20. class ATL_NO_VTABLE CFaxOutgoingQueue :
  21. public CComObjectRootEx<CComSingleThreadModel>,
  22. public ISupportErrorInfo,
  23. public CFaxQueueInner<IFaxOutgoingQueue, &IID_IFaxOutgoingQueue, &CLSID_FaxOutgoingQueue, false,
  24. IFaxOutgoingJob, CFaxOutgoingJob, IFaxOutgoingJobs, CFaxOutgoingJobs>
  25. {
  26. public:
  27. CFaxOutgoingQueue()
  28. {
  29. m_bInited = false;
  30. }
  31. DECLARE_REGISTRY_RESOURCEID(IDR_FAXOUTGOINGQUEUE)
  32. DECLARE_NOT_AGGREGATABLE(CFaxOutgoingQueue)
  33. DECLARE_PROTECT_FINAL_CONSTRUCT()
  34. BEGIN_COM_MAP(CFaxOutgoingQueue)
  35. COM_INTERFACE_ENTRY(IFaxOutgoingQueue)
  36. COM_INTERFACE_ENTRY(IDispatch)
  37. COM_INTERFACE_ENTRY(ISupportErrorInfo)
  38. COM_INTERFACE_ENTRY(IFaxInitInner)
  39. END_COM_MAP()
  40. // Interfaces
  41. STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);
  42. STDMETHOD(Save)();
  43. STDMETHOD(Refresh)();
  44. STDMETHOD(put_Retries)(long lRetries);
  45. STDMETHOD(get_Retries)(long *plRetries);
  46. STDMETHOD(put_AgeLimit)(long lAgeLimit);
  47. STDMETHOD(get_AgeLimit)(long *plAgeLimit);
  48. STDMETHOD(put_RetryDelay)(long lRetryDelay);
  49. STDMETHOD(get_RetryDelay)(long *plRetryDelay);
  50. STDMETHOD(put_Branding)(VARIANT_BOOL bBranding);
  51. STDMETHOD(get_Branding)(VARIANT_BOOL *pbBranding);
  52. STDMETHOD(put_DiscountRateEnd)(DATE dateDiscountRateEnd);
  53. STDMETHOD(put_UseDeviceTSID)(VARIANT_BOOL bUseDeviceTSID);
  54. STDMETHOD(get_DiscountRateEnd)(DATE *pdateDiscountRateEnd);
  55. STDMETHOD(get_UseDeviceTSID)(VARIANT_BOOL *pbUseDeviceTSID);
  56. STDMETHOD(put_DiscountRateStart)(DATE dateDiscountRateStart);
  57. STDMETHOD(get_DiscountRateStart)(DATE *pdateDiscountRateStart);
  58. STDMETHOD(put_AllowPersonalCoverPages)(VARIANT_BOOL bAllowPersonalCoverPages);
  59. STDMETHOD(get_AllowPersonalCoverPages)(VARIANT_BOOL *pbAllowPersonalCoverPages);
  60. // Internal Use
  61. STDMETHOD(GetDate)(FAX_TIME faxTime, DATE *pDate);
  62. STDMETHOD(SetDate)(DATE date, FAX_TIME *pfaxTime);
  63. private:
  64. bool m_bInited;
  65. CFaxPtr<FAX_OUTBOX_CONFIG> m_pConfig;
  66. };
  67. #endif //__FAXOUTGOINGQUEUE_H_