1 |
+ |
// Spectre Samba Mounter |
2 |
+ |
// |
3 |
+ |
// Douglas Thrift |
4 |
+ |
// |
5 |
+ |
// $Id: Configurator.h,v 1.8 2003/07/31 00:56:29 douglas Exp $ |
6 |
+ |
|
7 |
+ |
#ifndef _Configurator_h_ |
8 |
+ |
#define _Configurator_h_ |
9 |
+ |
|
10 |
+ |
#include "Spectre.h" |
11 |
+ |
|
12 |
+ |
class Configurator |
13 |
+ |
{ |
14 |
+ |
private: |
15 |
+ |
bool configurate(); |
16 |
+ |
protected: |
17 |
+ |
bool good; |
18 |
+ |
string host; |
19 |
+ |
enum Passwd {file, prompt}; |
20 |
+ |
vector<Passwd> passwd; |
21 |
+ |
struct Folder |
22 |
+ |
{ |
23 |
+ |
string local; |
24 |
+ |
string remote; |
25 |
+ |
}; |
26 |
+ |
Folder regular; |
27 |
+ |
map<string, Folder> folders; |
28 |
+ |
string password(const string& user); |
29 |
+ |
public: |
30 |
+ |
Configurator(const string& host); |
31 |
+ |
virtual ~Configurator() {} |
32 |
+ |
}; |
33 |
+ |
|
34 |
+ |
#endif // _Configurator_h_ |