source: trunk/gsinstaller/gsManifest.h@ 1536

Last change on this file since 1536 was 1536, checked in by sjboddie, 24 years ago

Changes to get compiling on VC++ and gcc

  • 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{
16private:
17protected:
18 strArrayMap manifests;
19 pathStringArrayMap selected;
20
21 bool getManifestLine(char *line, string &macro);
22public:
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 &params);
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;
Note: See TracBrowser for help on using the repository browser.