// EmptyTempFolder.h : Declaration of the CEmptyTempFolder #ifndef __EMPTYTEMPFOLDER_H_ #define __EMPTYTEMPFOLDER_H_ #include "resource.h" // main symbols #include "../Common/CmptData.h" #include "ActionEngine.h" #include ///////////////////////////////////////////////////////////////////////////// // CEmptyTempFolder class ATL_NO_VTABLE CEmptyTempFolder : public CComObjectRootEx, public CComCoClass, public ISupportErrorInfo, public IObjectWithSiteImpl, public IDispatchImpl { public: CEmptyTempFolder() { } ~CEmptyTempFolder() { ATLTRACE(_T("Destroying EmptyTempFolder\n")); } DECLARE_REGISTRY_RESOURCEID(IDR_EMPTYTEMPFOLDER) BEGIN_COM_MAP(CEmptyTempFolder) COM_INTERFACE_ENTRY(ISecureShutdownWin) COM_INTERFACE_ENTRY(IDispatch) COM_INTERFACE_ENTRY(IObjectWithSite) COM_INTERFACE_ENTRY(ISupportErrorInfo) END_COM_MAP() // ISupportsErrorInfo STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid); // ISecureShutdownWin public: STDMETHOD(get_Info)(/*[in]*/ NightSecInfo nsItem, /*[out, retval]*/ VARIANT* pvVal); STDMETHOD(DoShutdown)(/*[in]*/ long hParent, /*[in]*/ long lMode); STDMETHOD(SetData)(/*[in]*/ IUnknown* pUnk); // Data protected: CPropertyBag m_Data; CActionEngine m_Engine; // Helpers private: // string CleanSlashes(const string& sPath); }; #endif //__EMPTYTEMPFOLDER_H_