diff options
Diffstat (limited to 'src/Server/UserBackend.h')
-rw-r--r-- | src/Server/UserBackend.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/src/Server/UserBackend.h b/src/Server/UserBackend.h index 6d59615..2a51d1b 100644 --- a/src/Server/UserBackend.h +++ b/src/Server/UserBackend.h @@ -25,6 +25,8 @@ #include <Common/UserInfo.h> #include <Common/GroupInfo.h> +#include <Net/Exception.h> + #include <map> #include <string> @@ -42,25 +44,25 @@ class UserBackend { UserBackend() {} - virtual boost::shared_ptr<std::map<unsigned long, Common::UserInfo> > getUserList() { - return boost::shared_ptr<std::map<unsigned long, Common::UserInfo> >(); + virtual boost::shared_ptr<std::map<unsigned long, Common::UserInfo> > getUserList() throw(Net::Exception) { + throw(Net::Exception(Net::Exception::NOT_IMPLEMENTED)); } - virtual boost::shared_ptr<Common::UserInfo> getUserInfo(unsigned long uid _UNUSED_PARAMETER_) { - return boost::shared_ptr<Common::UserInfo>(); + virtual boost::shared_ptr<Common::UserInfo> getUserInfo(unsigned long uid _UNUSED_PARAMETER_) throw(Net::Exception) { + throw(Net::Exception(Net::Exception::NOT_IMPLEMENTED)); } - virtual boost::shared_ptr<std::map<unsigned long, Common::GroupInfo> > getGroupList() { - return boost::shared_ptr<std::map<unsigned long, Common::GroupInfo> >(); + virtual boost::shared_ptr<std::map<unsigned long, Common::GroupInfo> > getGroupList() throw(Net::Exception) { + throw(Net::Exception(Net::Exception::NOT_IMPLEMENTED)); } // TODO Better interface... - virtual bool setPassword(unsigned long uid _UNUSED_PARAMETER_, const std::string &password _UNUSED_PARAMETER_) { - return false; + virtual void setPassword(unsigned long uid _UNUSED_PARAMETER_, const std::string &password _UNUSED_PARAMETER_) throw(Net::Exception) { + throw(Net::Exception(Net::Exception::NOT_IMPLEMENTED)); } - virtual bool addUser(const Common::UserInfo &userInfo _UNUSED_PARAMETER_) { - return false; + virtual void addUser(const Common::UserInfo &userInfo _UNUSED_PARAMETER_) throw(Net::Exception) { + throw(Net::Exception(Net::Exception::NOT_IMPLEMENTED)); } virtual int getPriority() const { |