1 | #ifndef _GSMANIFEST_H_
|
---|
2 | #define _GSMANIFEST_H_
|
---|
3 | #include <map>
|
---|
4 | using namespace std;
|
---|
5 |
|
---|
6 | #include "File.h"
|
---|
7 | #include "FilePath.h"
|
---|
8 | #include "FileCopier.h"
|
---|
9 | #include "stringArray.h"
|
---|
10 | #include "uninstall.h"
|
---|
11 |
|
---|
12 | typedef map<FilePath, stringArray, less<FilePath> > pathStringArrayMap;
|
---|
13 |
|
---|
14 | class gsManifest : public installAgent, fileCopyMonitor
|
---|
15 | {
|
---|
16 | private:
|
---|
17 | protected:
|
---|
18 | strArrayMap manifests;
|
---|
19 | pathStringArrayMap selected;
|
---|
20 |
|
---|
21 | bool getManifestLine(char *line, string ¯o);
|
---|
22 | public:
|
---|
23 | gsManifest(installManager &manager, FilePath &path); // used for install
|
---|
24 | gsManifest(installManager &manager); // used for uninstall
|
---|
25 | bool getManifest(FilePath &path);
|
---|
26 | void logAction(string actionName, string file);
|
---|
27 | void logAction(string actionName, string source, string dest);
|
---|
28 | bool undoAction(string actionName, stringArray ¶ms);
|
---|
29 | void expandGroupInstance(const string &parentgroup, string groupName);
|
---|
30 | void expandGroup(const string &group);
|
---|
31 | void expandGroups();
|
---|
32 | bool isGroup(string &name);
|
---|
33 | void expandMacro(string macroName, string value);
|
---|
34 | void clearSelection();
|
---|
35 | bool copy(FilePath *source);
|
---|
36 | void selectGroup(string groupName, FilePath &destination);
|
---|
37 | FileVector *selection(FilePath &source, stringArray &array);
|
---|
38 | FileVector *selection(FilePath &source, FilePath &destination);
|
---|
39 | bool selectCheckSpace();
|
---|
40 |
|
---|
41 | void copied(string from, string to, bool isDir); // from fileCopyMonitor
|
---|
42 | };
|
---|
43 | #endif;
|
---|