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

File Contents

# Content
1 // 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 enum Passwd {file, prompt};
19 vector<Passwd> passwd;
20 struct Folder
21 {
22 string local;
23 string remote;
24 };
25 Folder regular;
26 map<string, Folder> folders;
27 string escape(const string& phrase);
28 string password(const string& user);
29 public:
30 Configurator(const string& host);
31 virtual ~Configurator() {}
32 };
33
34 #endif // _Configurator_h_