From 3f95d417d9e623ac0c74df8ef11d7a01846392dd Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Wed, 17 Sep 2003 19:07:23 +0000 Subject: Initial Import --- NSCmpts/Backup.h | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 NSCmpts/Backup.h (limited to 'NSCmpts/Backup.h') diff --git a/NSCmpts/Backup.h b/NSCmpts/Backup.h new file mode 100644 index 0000000..8cc0c3e --- /dev/null +++ b/NSCmpts/Backup.h @@ -0,0 +1,64 @@ +// Backup.h : Declaration of the CBackup + +#ifndef __BACKUP_H_ +#define __BACKUP_H_ + +#include "resource.h" // main symbols + +#include "ActionEngine.h" +#include "BackupActions.h" + +#include "../common/interfaces.h" +#include + +///////////////////////////////////////////////////////////////////////////// +// CBackup +class ATL_NO_VTABLE CBackup : + public CComObjectRootEx, + public CComCoClass, + public ISupportErrorInfo, + public IDispatchImpl, + public IObjectWithSiteImpl, + public ISpecifyPropertyPagesImplEx +{ +public: + CBackup() + { } + ~CBackup() + { ATLTRACE(_T("Destroying Backup\n")); } + +DECLARE_REGISTRY_RESOURCEID(IDR_BACKUP) + +DECLARE_PROTECT_FINAL_CONSTRUCT() + +BEGIN_COM_MAP(CBackup) + COM_INTERFACE_ENTRY(ISecureShutdownWin) + COM_INTERFACE_ENTRY(IDispatch) + COM_INTERFACE_ENTRY(ISupportErrorInfo) + COM_INTERFACE_ENTRY(IObjectWithSite) + COM_INTERFACE_ENTRY(ISpecifyPropertyPages) +END_COM_MAP() + + // Custom version of normal property Map Mechanism (atlextra.h) + virtual ATL_PROPMAP_ENTRY* GetPropertyMap(); + +// 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); + +protected: + + CActionEngine m_Engine; // The Engine + CPropertyBag m_Data; // Standard Data Object + +// UINT LoadPaths(); +// string_array m_srcPaths; +// file_path m_destPath; +}; + +#endif //__BACKUP_H_ -- cgit v1.2.3