-
Notifications
You must be signed in to change notification settings - Fork 42
/
SetupWizard.h
48 lines (35 loc) · 1.14 KB
/
SetupWizard.h
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
48
#include "gui/GUISetupWizard.h"
#include <map>
#include <string>
struct SVolumesCache
{
std::map<std::wstring, bool> is_ntfs_info;
std::map<std::wstring, bool> is_usb_info;
};
class SetupWizard : public GUISetupWizard
{
public:
SetupWizard(wxWindow* parent);
virtual void wizardCancel( wxWizardEvent& event );
virtual void wizardFinished( wxWizardEvent& event );
virtual void wizardNext( wxWizardEvent& event );
enum EFileBackupChoice
{
EFileBackupChoice_AllWithoutSystem,
EFileBackupChoice_UserFiles,
EFileBackupChoice_Manual
};
enum EImageBackupChoice
{
EImageBackupChoice_System,
EImageBackupChoice_AllNonUsb,
EImageBackupChoice_Manual
};
static void finishSetup(EFileBackupChoice fileBackupChoice, EImageBackupChoice imageBackupChoice, const std::wstring& volume_choice);
static void readConfig(EFileBackupChoice& fileBackupChoice, EImageBackupChoice& imageBackupChoice, std::wstring& volume_choice, bool& no_setupwizard);
static void doDefConfig();
static bool runSetupWizard();
virtual void manualVolumeConfig( wxCommandEvent& event );
private:
static SVolumesCache* cache;
};