// Copyright (c) 2010 Martin Knafve / hMailServer.com. // http://www.hmailserver.com #pragma once #include "../hMailServer/resource.h" // main symbols #include "../hMailServer/hMailServer.h" // InterfaceDeliveryQueue class ATL_NO_VTABLE InterfaceDeliveryQueue : public CComObjectRootEx, public CComCoClass, public IDispatchImpl, public HM::COMAuthenticator { public: InterfaceDeliveryQueue() { } void SetAuthentication(std::shared_ptr pAuthentication); DECLARE_REGISTRY_RESOURCEID(IDR_INTERFACEDELIVERYQUEUE) BEGIN_COM_MAP(InterfaceDeliveryQueue) COM_INTERFACE_ENTRY(IInterfaceDeliveryQueue) COM_INTERFACE_ENTRY(IDispatch) END_COM_MAP() DECLARE_PROTECT_FINAL_CONSTRUCT() HRESULT FinalConstruct() { return S_OK; } void FinalRelease() { } public: STDMETHOD(Clear()); STDMETHOD(ResetDeliveryTime)(hyper iMessageID); STDMETHOD(Remove)(hyper iMessageID); STDMETHOD(StartDelivery()); private: std::shared_ptr authentication_; }; OBJECT_ENTRY_AUTO(__uuidof(DeliveryQueue), InterfaceDeliveryQueue)