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.

69 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. FaxRecipeint.h
  5. Abstract:
  6. Definition of Recipient Class
  7. Author:
  8. Iv Garber (IvG) May, 2000
  9. Revision History:
  10. --*/
  11. #ifndef __FAXRECIPIENT_H_
  12. #define __FAXRECIPIENT_H_
  13. #include "resource.h"
  14. #include "FaxCommon.h"
  15. //
  16. //========================== FAX RECIPIENT ===============================================
  17. //
  18. class ATL_NO_VTABLE CFaxRecipient :
  19. public CComObjectRootEx<CComSingleThreadModel>,
  20. public ISupportErrorInfo,
  21. public IDispatchImpl<IFaxRecipient, &IID_IFaxRecipient, &LIBID_FAXCOMEXLib>
  22. {
  23. public:
  24. CFaxRecipient()
  25. {
  26. }
  27. DECLARE_REGISTRY_RESOURCEID(IDR_FAXRECIPIENT)
  28. DECLARE_NOT_AGGREGATABLE(CFaxRecipient)
  29. DECLARE_PROTECT_FINAL_CONSTRUCT()
  30. BEGIN_COM_MAP(CFaxRecipient)
  31. COM_INTERFACE_ENTRY(IFaxRecipient)
  32. COM_INTERFACE_ENTRY(IDispatch)
  33. COM_INTERFACE_ENTRY(ISupportErrorInfo)
  34. END_COM_MAP()
  35. public:
  36. static HRESULT Create(IFaxRecipient **ppRecipient);
  37. STDMETHOD(GetRecipientProfile)(/*[out, retval]*/ FAX_PERSONAL_PROFILE *pRecipientProfile);
  38. STDMETHOD(PutRecipientProfile)(/*[in]*/ FAX_PERSONAL_PROFILE *pRecipientProfile);
  39. // ISupportsErrorInfo
  40. STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);
  41. // IFaxRecipient
  42. STDMETHOD(get_FaxNumber)(/*[out, retval]*/ BSTR *pbstrFaxNumber);
  43. STDMETHOD(put_FaxNumber)(/*[in]*/ BSTR bstrFaxNumber);
  44. STDMETHOD(get_Name)(/*[out, retval]*/ BSTR *pbstrName);
  45. STDMETHOD(put_Name)(/*[in]*/ BSTR bstrName);
  46. private:
  47. CComBSTR m_bstrFaxNumber;
  48. CComBSTR m_bstrName;
  49. };
  50. #endif //__FAXRECIPIENT_H_