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/UserBackend.h | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'src/Server/UserBackend.h') 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 #include +#include + #include #include @@ -42,25 +44,25 @@ class UserBackend { UserBackend() {} - virtual boost::shared_ptr > getUserList() { - return boost::shared_ptr >(); + virtual boost::shared_ptr > getUserList() throw(Net::Exception) { + throw(Net::Exception(Net::Exception::NOT_IMPLEMENTED)); } - virtual boost::shared_ptr getUserInfo(unsigned long uid _UNUSED_PARAMETER_) { - return boost::shared_ptr(); + virtual boost::shared_ptr getUserInfo(unsigned long uid _UNUSED_PARAMETER_) throw(Net::Exception) { + throw(Net::Exception(Net::Exception::NOT_IMPLEMENTED)); } - virtual boost::shared_ptr > getGroupList() { - return boost::shared_ptr >(); + virtual boost::shared_ptr > 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 { -- cgit v1.2.3