diff options
Diffstat (limited to 'NSCmpts/BackupData.h')
-rw-r--r-- | NSCmpts/BackupData.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/NSCmpts/BackupData.h b/NSCmpts/BackupData.h new file mode 100644 index 0000000..a424d40 --- /dev/null +++ b/NSCmpts/BackupData.h @@ -0,0 +1,47 @@ +// BackupData.h: interface for the CBackupData class. +// +////////////////////////////////////////////////////////////////////// + +#if !defined(AFX_BACKUPDATA_H__00EC1850_A1A5_11D3_82DB_0020182B97FC__INCLUDED_) +#define AFX_BACKUPDATA_H__00EC1850_A1A5_11D3_82DB_0020182B97FC__INCLUDED_ + +#if _MSC_VER > 1000 +#pragma once +#endif // _MSC_VER > 1000 + +#include <tchar.h> +#include <mystring.h> + +#include <vector> +typedef std::vector<string> string_array; + +#include <path.h> +typedef std::vector<file_path> file_array; + +#include "../common/cmptdata.h" + +#define NS_NO_KEY _T("No Key") +#define NS_BACKUP_REG_EXT _T("Ignore%.4d") +#define NS_BACKUP_REG_SOURCE _T("Source%.4d") +#define NS_BACKUP_REG_DEST _T("Destination") +#define NS_BACKUP_REG_ENGINE _T("Engine") + +class CBackupData +{ +public: + CBackupData() { }; + + // For Filtering and Advanced Property Sheet + static UINT LoadExtensions(string_array& asExt, const CPropertyBag& settings); + static UINT SaveExtensions(const string_array& asExt, CPropertyBag& settings); + + // For Backup and Source Property Sheet + static UINT LoadSources(file_array& aSources, const CPropertyBag& settings); + static UINT SaveSources(const file_array& aSources, CPropertyBag& settings); + +protected: + static UINT m_nExtensions; + static UINT m_nSources; +}; + +#endif // !defined(AFX_BACKUPDATA_H__00EC1850_A1A5_11D3_82DB_0020182B97FC__INCLUDED_) |