summaryrefslogtreecommitdiffstats
path: root/src/Common/Backends
diff options
context:
space:
mode:
Diffstat (limited to 'src/Common/Backends')
-rw-r--r--src/Common/Backends/NetworkUserBackend.cpp2
-rw-r--r--src/Common/Backends/NetworkUserBackend.h10
2 files changed, 10 insertions, 2 deletions
diff --git a/src/Common/Backends/NetworkUserBackend.cpp b/src/Common/Backends/NetworkUserBackend.cpp
index 6296581..39f4e5b 100644
--- a/src/Common/Backends/NetworkUserBackend.cpp
+++ b/src/Common/Backends/NetworkUserBackend.cpp
@@ -26,6 +26,8 @@ namespace Mad {
namespace Common {
namespace Backends {
+const std::string NetworkUserBackend::name("NetworkUserBackend");
+
void NetworkUserBackend::SimpleUserRequest::sendRequest() {
XmlPacket packet;
packet.setType(type);
diff --git a/src/Common/Backends/NetworkUserBackend.h b/src/Common/Backends/NetworkUserBackend.h
index 0567514..6c0e94d 100644
--- a/src/Common/Backends/NetworkUserBackend.h
+++ b/src/Common/Backends/NetworkUserBackend.h
@@ -20,14 +20,14 @@
#ifndef MAD_COMMON_BACKENDS_NETWORKUSERBACKEND_H_
#define MAD_COMMON_BACKENDS_NETWORKUSERBACKEND_H_
-#include "../UserBackend.h"
+#include "../UserDBBackend.h"
#include "../Request.h"
namespace Mad {
namespace Common {
namespace Backends {
-class NetworkUserBackend : public UserBackend {
+class NetworkUserBackend : public UserDBBackend {
private:
class SimpleUserRequest : public Request {
private:
@@ -110,6 +110,8 @@ class NetworkUserBackend : public UserBackend {
: Request(application), type(type0), uid(uid0), gid(gid0) {}
};
+ static const std::string name;
+
Application *application;
Connection *connection;
@@ -137,6 +139,10 @@ class NetworkUserBackend : public UserBackend {
public:
NetworkUserBackend(Application *application0, Connection *connection0) : application(application0), connection(connection0) {}
+
+ virtual const std::string& getName() {
+ return name;
+ }
};
}