summaryrefslogtreecommitdiffstats
path: root/src/Core/RequestHandlers
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2009-04-25 16:27:03 +0200
committerMatthias Schiffer <matthias@gamezock.de>2009-04-25 16:27:03 +0200
commit71dc41a9b7b0e939314a886383daa6fb2e297a55 (patch)
tree583d3b0ef8aeb01b94cb9b3297a3976705f99e6a /src/Core/RequestHandlers
parentc6f8a170e642b5b1a28bd85857f715846bbadbb4 (diff)
downloadmad-71dc41a9b7b0e939314a886383daa6fb2e297a55.tar
mad-71dc41a9b7b0e939314a886383daa6fb2e297a55.zip
SystemBackend und UserBackend in Backend und Manager aufgeteilt
Diffstat (limited to 'src/Core/RequestHandlers')
-rw-r--r--src/Core/RequestHandlers/UserInfoRequestHandler.cpp4
-rw-r--r--src/Core/RequestHandlers/UserListRequestHandler.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/Core/RequestHandlers/UserInfoRequestHandler.cpp b/src/Core/RequestHandlers/UserInfoRequestHandler.cpp
index d3a8aca..68356f8 100644
--- a/src/Core/RequestHandlers/UserInfoRequestHandler.cpp
+++ b/src/Core/RequestHandlers/UserInfoRequestHandler.cpp
@@ -18,7 +18,7 @@
*/
#include "UserInfoRequestHandler.h"
-#include "../UserBackend.h"
+#include "../UserManager.h"
#include <Common/Exception.h>
#include <Common/Logger.h>
@@ -42,7 +42,7 @@ void UserInfoRequestHandler::handlePacket(const Common::XmlPacket &packet) {
// TODO Require authentication
- if(!UserBackend::getUserInfo(packet["uid"], sigc::mem_fun(this, &UserInfoRequestHandler::userInfoHandler))) {
+ if(!UserManager::get()->getUserInfo(packet["uid"], sigc::mem_fun(this, &UserInfoRequestHandler::userInfoHandler))) {
Common::XmlPacket ret;
ret.setType("Error");
ret.add("ErrorCode", Common::Exception::NOT_IMPLEMENTED);
diff --git a/src/Core/RequestHandlers/UserListRequestHandler.cpp b/src/Core/RequestHandlers/UserListRequestHandler.cpp
index bb67df9..8a61cbd 100644
--- a/src/Core/RequestHandlers/UserListRequestHandler.cpp
+++ b/src/Core/RequestHandlers/UserListRequestHandler.cpp
@@ -18,7 +18,7 @@
*/
#include "UserListRequestHandler.h"
-#include "../UserBackend.h"
+#include "../UserManager.h"
#include <Common/Exception.h>
#include <Common/Logger.h>
@@ -42,7 +42,7 @@ void UserListRequestHandler::handlePacket(const Common::XmlPacket &packet) {
// TODO Require authentication
- if(!UserBackend::getUserList(sigc::mem_fun(this, &UserListRequestHandler::userListHandler))) {
+ if(!UserManager::get()->getUserList(sigc::mem_fun(this, &UserListRequestHandler::userListHandler))) {
Common::XmlPacket ret;
ret.setType("Error");
ret.add("ErrorCode", Common::Exception::NOT_IMPLEMENTED);