summaryrefslogtreecommitdiffstats
path: root/src/Server/UserBackend.h
diff options
context:
space:
mode:
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;
}