diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2009-05-24 15:09:24 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2009-05-24 15:09:24 +0200 |
commit | a8ad2278025467f7cc9c9974d7e82be5752fb697 (patch) | |
tree | 49186e5989be68e9139c9a951356d1ad93e68ac0 /src/Server/UserManager.h | |
parent | 8501b9171c4064a2b383945693bb027eefffc2ab (diff) | |
download | mad-a8ad2278025467f7cc9c9974d7e82be5752fb697.tar mad-a8ad2278025467f7cc9c9974d7e82be5752fb697.zip |
Interface des UserManager ?berarbeitet
Diffstat (limited to 'src/Server/UserManager.h')
-rw-r--r-- | src/Server/UserManager.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/Server/UserManager.h b/src/Server/UserManager.h index e33b678..3377727 100644 --- a/src/Server/UserManager.h +++ b/src/Server/UserManager.h @@ -23,6 +23,8 @@ #include <Common/UserInfo.h> #include <Common/GroupInfo.h> +#include <Net/Exception.h> + #include <map> #include <set> @@ -55,14 +57,14 @@ class UserManager : boost::noncopyable { backends.erase(backend); } - boost::shared_ptr<std::map<unsigned long, Common::UserInfo> > getUserList(); - boost::shared_ptr<Common::UserInfo> getUserInfo(unsigned long uid); + boost::shared_ptr<std::map<unsigned long, Common::UserInfo> > getUserList() throw(Net::Exception); + boost::shared_ptr<Common::UserInfo> getUserInfo(unsigned long uid) throw(Net::Exception); - boost::shared_ptr<std::map<unsigned long, Common::GroupInfo> > getGroupList(); + boost::shared_ptr<std::map<unsigned long, Common::GroupInfo> > getGroupList() throw(Net::Exception); - bool setPassword(unsigned long uid, const std::string &password); + void setPassword(unsigned long uid, const std::string &password) throw(Net::Exception); - bool addUser(const Common::UserInfo &userInfo); + void addUser(const Common::UserInfo &userInfo) throw(Net::Exception); static UserManager *get() { return &userManager; |