diff options
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; |