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_ |