summaryrefslogtreecommitdiffstats
path: root/src/Server/UserBackend.h
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2009-05-21 00:42:57 +0200
committerMatthias Schiffer <matthias@gamezock.de>2009-05-21 00:42:57 +0200
commit9c076d2649ff8c6997c2dec1e1ef4f7359d404ec (patch)
tree2e73f262998fe27326459c69605554b150eb6c82 /src/Server/UserBackend.h
parent325ee09f8fa61185efd6ec8b64b6432686170ac8 (diff)
downloadmad-9c076d2649ff8c6997c2dec1e1ef4f7359d404ec.tar
mad-9c076d2649ff8c6997c2dec1e1ef4f7359d404ec.zip
UserBackend-Interface ueberarbeitet
Diffstat (limited to 'src/Server/UserBackend.h')
-rw-r--r--src/Server/UserBackend.h15
1 files changed, 8 insertions, 7 deletions
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 <map>
#include <string>
-#include <boost/signal.hpp>
+#include <boost/smart_ptr.hpp>
namespace Mad {
@@ -41,19 +41,20 @@ class UserBackend {
UserBackend() {}
- virtual bool getUserList(const boost::function1<void, const std::map<unsigned long, Common::UserInfo>& > &callback _UNUSED_PARAMETER_) {
- return false;
+ virtual boost::shared_ptr<std::map<unsigned long, Common::UserInfo> > getUserList() {
+ return boost::shared_ptr<std::map<unsigned long, Common::UserInfo> >();
}
- virtual bool getUserInfo(unsigned long uid _UNUSED_PARAMETER_, const boost::function1<void, const Common::UserInfo&> &callback _UNUSED_PARAMETER_) {
- return false;
+ virtual boost::shared_ptr<Common::UserInfo> getUserInfo(unsigned long uid _UNUSED_PARAMETER_) {
+ return boost::shared_ptr<Common::UserInfo>();
}
- virtual bool setPassword(unsigned long uid _UNUSED_PARAMETER_, const std::string&, const boost::function1<void, bool> &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<void, bool> &callback _UNUSED_PARAMETER_) {
+ virtual bool addUser(const Common::UserInfo &userInfo _UNUSED_PARAMETER_) {
return false;
}