summaryrefslogtreecommitdiff
path: root/NSCmpts/EncryptData.h
blob: 2b3915259d6bcabfae20f379e4a8d7a2c87e5f83 (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
// EncryptData.h: interface for the CEncryptData 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_ENCRYPT_REG_EXT		_T("Ignore%.4d")
#define NS_ENCRYPT_REG_SOURCE	_T("Path%.4d")
#define NS_ENCRYPT_REG_DEST		_T("Destination")
#define NS_ENCRYPT_REG_ENGINE	_T("Engine")

class CEncryptData  
{
public:
	CEncryptData() { };

	// 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_)