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 password(const string& user); |
28 |
public: |
29 |
Configurator(const string& host); |
30 |
virtual ~Configurator() {} |
31 |
}; |
32 |
|
33 |
#endif // _Configurator_h_ |