source: trunk/gsinstaller/gsManifest.h@ 1475

Last change on this file since 1475 was 1475, checked in by cs025, 24 years ago

Updated sources with most of uninstall added

  • Property svn:keywords set to Author Date Id Revision
File size: 1.4 KB
Line 
1#ifndef _GSMANIFEST_H_
2#define _GSMANIFEST_H_
3#include <map>
4using namespace std;
5
6#include "File.h"
7#include "FilePath.h"
8#include "FileCopier.h"
9#include "stringArray.h"
10#include "uninstall.h"
11
12typedef map<FilePath, stringArray, less<FilePath> > pathStringArrayMap;
13
14class gsManifest : public installAgent, fileCopyMonitor
15{ private:
16 protected:
17 strArrayMap manifests;
18 pathStringArrayMap selected;
19
20 bool getManifestLine(char *line, string &macro);
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 &params);
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;
Note: See TracBrowser for help on using the repository browser.