blob: a424d40af5f2f35393ee3cf57478ba822c09d558 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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_)
|