From 9c076d2649ff8c6997c2dec1e1ef4f7359d404ec Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 21 May 2009 00:42:57 +0200 Subject: UserBackend-Interface ueberarbeitet --- src/Server/UserBackend.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/Server/UserBackend.h') diff --git a/src/Server/UserBackend.h b/src/Server/UserBackend.h index 6aac7bc..a673fa9 100644 --- a/src/Server/UserBackend.h +++ b/src/Server/UserBackend.h @@ -27,7 +27,7 @@ #include #include -#include +#include namespace Mad { @@ -41,19 +41,20 @@ class UserBackend { UserBackend() {} - virtual bool getUserList(const boost::function1& > &callback _UNUSED_PARAMETER_) { - return false; + virtual boost::shared_ptr > getUserList() { + return boost::shared_ptr >(); } - virtual bool getUserInfo(unsigned long uid _UNUSED_PARAMETER_, const boost::function1 &callback _UNUSED_PARAMETER_) { - return false; + virtual boost::shared_ptr getUserInfo(unsigned long uid _UNUSED_PARAMETER_) { + return boost::shared_ptr(); } - virtual bool setPassword(unsigned long uid _UNUSED_PARAMETER_, const std::string&, const boost::function1 &callback _UNUSED_PARAMETER_) { + // TODO Better interface... + virtual bool setPassword(unsigned long uid _UNUSED_PARAMETER_, const std::string &password _UNUSED_PARAMETER_) { return false; } - virtual bool addUser(const Common::UserInfo &userInfo _UNUSED_PARAMETER_, const boost::function1 &callback _UNUSED_PARAMETER_) { + virtual bool addUser(const Common::UserInfo &userInfo _UNUSED_PARAMETER_) { return false; } -- cgit v1.2.3