ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/Spectre/trunk/Configurator.hpp
Revision: 164
Committed: 2003-06-13T22:42:36-07:00 (22 years ago) by douglas
Content type: text/x-c
Original Path: trunk/Spectre/Configurator.h
File size: 550 byte(s)
Log Message:
Added some utility functions to Configurator.

File Contents

# User Rev Content
1 douglas 161 // Spectre Samba Mounter
2     //
3     // Douglas Thrift
4     //
5     // Configurator.h
6    
7     #ifndef _Configurator_h_
8     #define _Configurator_h_
9    
10     #include "Spectre.h"
11    
12     class Configurator
13     {
14     private:
15     void configurate();
16     protected:
17     string host;
18 douglas 162 enum Passwd {file, prompt};
19     vector<Passwd> passwd;
20 douglas 161 struct Folder
21     {
22     string local;
23     string remote;
24     };
25 douglas 163 Folder regular;
26 douglas 161 map<string, Folder> folders;
27 douglas 164 string escape(const string& phrase);
28     string password(const string& user);
29 douglas 161 public:
30     Configurator(const string& host);
31     virtual ~Configurator() {}
32     };
33    
34     #endif // _Configurator_h_