DeliverSMCom.h
上传用户:hkcoast
上传日期:2007-01-12
资源大小:979k
文件大小:2k
源码类别:

手机短信编程

开发平台:

Visual C++

  1. // DeliverSMCom.h : Declaration of the CDeliverSMCom
  2. #pragma once
  3. #include "resource.h"       // main symbols
  4. #include "SMPPCOM.h"
  5. #include "..smpppacket.h"
  6. // CDeliverSMCom
  7. class ATL_NO_VTABLE CDeliverSMCom : public CDeliverSM,
  8. public CComObjectRootEx<CComSingleThreadModel>,
  9. public CComCoClass<CDeliverSMCom, &CLSID_DeliverSMCom>,
  10. public IDispatchImpl<IDeliverSMCom, &IID_IDeliverSMCom, &LIBID_SMPPCOMLib, /*wMajor =*/ 1, /*wMinor =*/ 0>
  11. {
  12. public:
  13. CDeliverSMCom()
  14. {
  15. m_msg_double_byte = false;
  16. }
  17. DECLARE_REGISTRY_RESOURCEID(IDR_DELIVERSMCOM)
  18. DECLARE_NOT_AGGREGATABLE(CDeliverSMCom)
  19. BEGIN_COM_MAP(CDeliverSMCom)
  20. COM_INTERFACE_ENTRY(IDeliverSMCom)
  21. COM_INTERFACE_ENTRY(IDispatch)
  22. END_COM_MAP()
  23. DECLARE_PROTECT_FINAL_CONSTRUCT()
  24. HRESULT FinalConstruct()
  25. {
  26. return S_OK;
  27. }
  28. void FinalRelease() 
  29. {
  30. }
  31. public:
  32. protected:
  33. bool m_msg_double_byte;
  34. public:
  35. STDMETHOD(get_ServiceType)(BSTR* pVal);
  36. STDMETHOD(put_ServiceType)(BSTR newVal);
  37. STDMETHOD(get_Source)(ISmppAddressCom** pVal);
  38. STDMETHOD(put_Source)(ISmppAddressCom* newVal);
  39. STDMETHOD(get_Destination)(ISmppAddressCom** pVal);
  40. STDMETHOD(put_Destination)(ISmppAddressCom* newVal);
  41. STDMETHOD(get_esmClass)(SHORT* pVal);
  42. STDMETHOD(put_esmClass)(SHORT newVal);
  43. STDMETHOD(get_dataCoding)(SHORT* pVal);
  44. STDMETHOD(put_dataCoding)(SHORT newVal);
  45. STDMETHOD(get_protocolID)(SHORT* pVal);
  46. STDMETHOD(put_protocolID)(SHORT newVal);
  47. STDMETHOD(get_priorityFlag)(SHORT* pVal);
  48. STDMETHOD(put_priorityFlag)(SHORT newVal);
  49. STDMETHOD(get_scheduledDelivery)(ISmppDateCom** pVal);
  50. STDMETHOD(put_scheduledDelivery)(ISmppDateCom* newVal);
  51. STDMETHOD(get_validityPeriod)(ISmppDateCom** pVal);
  52. STDMETHOD(put_validityPeriod)(ISmppDateCom* newVal);
  53. STDMETHOD(get_registeredDelivery)(SHORT* pVal);
  54. STDMETHOD(put_registeredDelivery)(SHORT newVal);
  55. STDMETHOD(get_replaceIfPresent)(SHORT* pVal);
  56. STDMETHOD(put_replaceIfPresent)(SHORT newVal);
  57. STDMETHOD(get_smDefaultMsgId)(SHORT* pVal);
  58. STDMETHOD(put_smDefaultMsgId)(SHORT newVal);
  59. STDMETHOD(get_Message)(BSTR* pVal);
  60. STDMETHOD(put_Message)(BSTR newVal);
  61. STDMETHOD(compactMessage)(void);
  62. STDMETHOD(flipByteOrder)(void);
  63. STDMETHOD(setMessage)(VARIANT msgdata);
  64. STDMETHOD(getMessage)(VARIANT* pmsgdata);
  65. };
  66. OBJECT_ENTRY_AUTO(__uuidof(DeliverSMCom), CDeliverSMCom)