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 | { private:
|
---|
16 | protected:
|
---|
17 | strArrayMap manifests;
|
---|
18 | pathStringArrayMap selected;
|
---|
19 |
|
---|
20 | bool getManifestLine(char *line, string ¯o);
|
---|
21 | public:
|
---|
22 | gsManifest(installManager &manager, FilePath &path); // used for install
|
---|
23 | gsManifest(installManager &manager); // used for uninstall
|
---|
24 | bool getManifest(FilePath &path);
|
---|
25 | void logAction(string actionName, string file);
|
---|
26 | void logAction(string actionName, string source, string dest);
|
---|
27 | bool undoAction(string actionName, stringArray ¶ms);
|
---|
28 | void expandGroupInstance(string parent, string child);
|
---|
29 | void expandGroup(string &group);
|
---|
30 | void expandGroups();
|
---|
31 | bool isGroup(string &name);
|
---|
32 | void expandMacro(string macroName, string value);
|
---|
33 | void clearSelection();
|
---|
34 | bool copy(FilePath *source);
|
---|
35 | void selectGroup(string groupName, FilePath &destination);
|
---|
36 | FileVector *selection(FilePath &source, stringArray &array);
|
---|
37 | FileVector *selection(FilePath &source, FilePath &destination);
|
---|
38 | bool selectCheckSpace();
|
---|
39 |
|
---|
40 | void copied(string from, string to, bool isDir); // from fileCopyMonitor
|
---|
41 | };
|
---|
42 | #endif; |
---|