summaryrefslogtreecommitdiffstats
path: root/src/modules/UserBackendMysql
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2009-06-19 18:21:03 +0200
committerMatthias Schiffer <matthias@gamezock.de>2009-06-19 18:21:03 +0200
commit37c8bed9a5f2ae9141c461202fec5baa6fa21389 (patch)
treed29b6a74b4da709350beec3c12c91426bcd4dea8 /src/modules/UserBackendMysql
parent7234fe326d16d6bf9f4374a09ddc6ef790e6723f (diff)
downloadmad-37c8bed9a5f2ae9141c461202fec5baa6fa21389.tar
mad-37c8bed9a5f2ae9141c461202fec5baa6fa21389.zip
UserManager nach Common verschoben
Diffstat (limited to 'src/modules/UserBackendMysql')
-rw-r--r--src/modules/UserBackendMysql/Module.h13
-rw-r--r--src/modules/UserBackendMysql/UserBackendMysql.h5
2 files changed, 5 insertions, 13 deletions
diff --git a/src/modules/UserBackendMysql/Module.h b/src/modules/UserBackendMysql/Module.h
index 31f6692..96be5a7 100644
--- a/src/modules/UserBackendMysql/Module.h
+++ b/src/modules/UserBackendMysql/Module.h
@@ -22,8 +22,7 @@
#include "UserBackendMysql.h"
-#include <Server/Application.h>
-#include <Server/UserManager.h>
+#include <Common/UserManager.h>
#include <Common/Module.h>
namespace Mad {
@@ -38,17 +37,11 @@ class Module : public Common::Module {
public:
Module(Common::Application *application0) : application(application0), backend(new UserBackendMysql(application)) {
- Server::Application *app = dynamic_cast<Server::Application*>(application);
-
- if(app)
- app->getUserManager()->registerBackend(backend);
+ application->getUserManager()->registerBackend(backend);
}
virtual ~Module() {
- Server::Application *app = dynamic_cast<Server::Application*>(application);
-
- if(app)
- app->getUserManager()->unregisterBackend(backend);
+ application->getUserManager()->unregisterBackend(backend);
}
};
diff --git a/src/modules/UserBackendMysql/UserBackendMysql.h b/src/modules/UserBackendMysql/UserBackendMysql.h
index aa141da..77f0700 100644
--- a/src/modules/UserBackendMysql/UserBackendMysql.h
+++ b/src/modules/UserBackendMysql/UserBackendMysql.h
@@ -20,8 +20,7 @@
#ifndef MAD_MODULES_USERBACKENDMYSQL_USERBACKENDMYSQL_H_
#define MAD_MODULES_USERBACKENDMYSQL_USERBACKENDMYSQL_H_
-#include <Server/UserBackend.h>
-
+#include <Common/UserBackend.h>
#include <Common/Application.h>
#include <Core/Configurable.h>
@@ -33,7 +32,7 @@ namespace Mad {
namespace Modules {
namespace UserBackendMysql {
-class UserBackendMysql : public Server::UserBackend, private Core::Configurable {
+class UserBackendMysql : public Common::UserBackend, private Core::Configurable {
private:
Common::Application *application;