Pol  Revision:4b29d2b
accounts.h
Go to the documentation of this file.
1 
10 #ifndef ACCOUNTS_H
11 #define ACCOUNTS_H
12 
13 #include <string>
14 
15 namespace Pol
16 {
17 namespace Accounts
18 {
19 class Account;
20 
21 Account* create_new_account( const std::string& acctname, const std::string& password,
22  bool enabled );
23 Account* duplicate_account( const std::string& oldacctname, const std::string& newacctname );
24 Account* find_account( const char* acctname );
25 int delete_account( const char* acctname );
26 void write_account_data();
27 void reload_account_data();
29 }
30 }
31 #endif
Account * create_new_account(const std::string &acctname, const std::string &password, bool enabled)
Definition: accounts.cpp:109
Account * duplicate_account(const std::string &oldacctname, const std::string &newacctname)
Definition: accounts.cpp:128
void write_account_data()
Definition: accounts.cpp:71
void reload_account_data(void)
Definition: accounts.cpp:202
void write_account_data_task(void)
Definition: accounts.cpp:240
int delete_account(const char *acctname)
Definition: accounts.cpp:163
Definition: berror.cpp:12
Account * find_account(const char *acctname)
Definition: accounts.cpp:151