Ignore:
Timestamp:
2000-09-05T03:30:48+12:00 (24 years ago)
Author:
cs025
Message:

Further changes for uninstaller

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsinstaller/unInstall.h

    r1475 r1498  
    1313static string uninstall_ALL = "all";
    1414
    15 typedef struct unInstallCommand
    16 {   string          command;
    17     stringArray parameters;
     15typedef class unInstallCommand
     16{ public:
     17        string          command;
     18        stringArray parameters;
     19
     20    unInstallCommand() { };
     21    unInstallCommand(string commandname) { this->command = commandname; };
     22    unInstallCommand(string commandname, stringArray params)
     23    { this->command = commandname;
     24        this->parameters = params;
     25    };
     26    void addParameter(string parameter) { this->parameters.add(parameter); };
     27    string commandName() { return this->command; };
     28    stringArray &parameterList() { return this->parameters; };
    1829} unInstallCommand;
    1930
     
    2435class installManager
    2536{   private:
    26         fstream logfile;
    27     string  currentModule;
    28     public:
    29     installManager() { };
    30     bool openLog(string filename, bool write);
    31     void setModule(string moduleName);
     37        fstream                             logfile;
     38    string                              logfileName;
     39    string                              currentModule;
     40    unInstallCommandMap     modules;
     41
    3242    bool writeString(string str);
    3343    bool writeString(char *string);
    3444    bool writeSeparator();
    3545    string readString();
     46    bool writeCommand(unInstallCommand &command);
    3647    string readCommand(stringArray &params);
     48    public:
     49    installManager() { };
     50    bool openLog(string filename, bool write);
     51    bool closeLog();
     52    bool reopenLog();
     53    void setModule(string moduleName);
     54    bool storeCommand(unInstallCommand &command);
     55    string popCommand(stringArray &params);
     56    bool isEmpty();
    3757    ~installManager();
    3858};
Note: See TracChangeset for help on using the changeset viewer.