From a8ad2278025467f7cc9c9974d7e82be5752fb697 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 24 May 2009 15:09:24 +0200 Subject: Interface des UserManager ?berarbeitet --- src/Server/UserManager.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/Server/UserManager.h') 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 #include +#include + #include #include @@ -55,14 +57,14 @@ class UserManager : boost::noncopyable { backends.erase(backend); } - boost::shared_ptr > getUserList(); - boost::shared_ptr getUserInfo(unsigned long uid); + boost::shared_ptr > getUserList() throw(Net::Exception); + boost::shared_ptr getUserInfo(unsigned long uid) throw(Net::Exception); - boost::shared_ptr > getGroupList(); + boost::shared_ptr > 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; -- cgit v1.2.3