summaryrefslogtreecommitdiffstats
path: root/src/Common/Backends
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2009-08-18 15:58:17 +0200
committerMatthias Schiffer <matthias@gamezock.de>2009-08-18 15:58:17 +0200
commitdb5ad2e09a6b38e841463dbe7eb076492b62c948 (patch)
tree5907f6416e35cbd25432a5f1f6dc9664d36aa73c /src/Common/Backends
parent5da7b0847bac2a5abec95b9ac1701b74baae8964 (diff)
downloadmad-db5ad2e09a6b38e841463dbe7eb076492b62c948.tar
mad-db5ad2e09a6b38e841463dbe7eb076492b62c948.zip
Mad funktioniert jetzt unter Windows
Diffstat (limited to 'src/Common/Backends')
-rw-r--r--src/Common/Backends/CMakeLists.txt5
-rw-r--r--src/Common/Backends/NetworkUserBackend.h22
2 files changed, 12 insertions, 15 deletions
diff --git a/src/Common/Backends/CMakeLists.txt b/src/Common/Backends/CMakeLists.txt
deleted file mode 100644
index 631af52..0000000
--- a/src/Common/Backends/CMakeLists.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-include_directories(${INCLUDES})
-
-add_library(Backends STATIC
- NetworkUserBackend.cpp NetworkUserBackend.h
-)
diff --git a/src/Common/Backends/NetworkUserBackend.h b/src/Common/Backends/NetworkUserBackend.h
index 1ab0b58..6ae9747 100644
--- a/src/Common/Backends/NetworkUserBackend.h
+++ b/src/Common/Backends/NetworkUserBackend.h
@@ -20,6 +20,8 @@
#ifndef MAD_COMMON_BACKENDS_NETWORKUSERBACKEND_H_
#define MAD_COMMON_BACKENDS_NETWORKUSERBACKEND_H_
+#include "../export.h"
+
#include "../UserDBBackend.h"
#include "../Request.h"
@@ -27,9 +29,9 @@ namespace Mad {
namespace Common {
namespace Backends {
-class NetworkUserBackend : public UserDBBackend {
+class MAD_COMMON_EXPORT NetworkUserBackend : public UserDBBackend {
private:
- class SimpleUserRequest : public Request {
+ class MAD_COMMON_EXPORT SimpleUserRequest : public Request {
private:
std::string type;
boost::posix_time::ptime timestamp;
@@ -42,7 +44,7 @@ class NetworkUserBackend : public UserDBBackend {
: Request(application), type(type0), timestamp(timestamp0 ? *timestamp0 : boost::posix_time::not_a_date_time) {}
};
- class IdUserRequest : public Request {
+ class MAD_COMMON_EXPORT IdUserRequest : public Request {
private:
std::string type;
std::string idType;
@@ -57,7 +59,7 @@ class NetworkUserBackend : public UserDBBackend {
: Request(application), type(type0), idType(idType0), id(id0), timestamp(timestamp0 ? *timestamp0 : boost::posix_time::not_a_date_time) {}
};
- class NameUserRequest : public Request {
+ class MAD_COMMON_EXPORT NameUserRequest : public Request {
private:
std::string type;
std::string name;
@@ -71,7 +73,7 @@ class NetworkUserBackend : public UserDBBackend {
: Request(application), type(type0), name(name0), timestamp(timestamp0 ? *timestamp0 : boost::posix_time::not_a_date_time) {}
};
- class UserAddRequest : public Request {
+ class MAD_COMMON_EXPORT UserAddRequest : public Request {
private:
UserInfo userInfo;
bool check;
@@ -84,7 +86,7 @@ class NetworkUserBackend : public UserDBBackend {
: Request(application), userInfo(userInfo0), check(checkOnly) {}
};
- class UserUpdateRequest : public Request {
+ class MAD_COMMON_EXPORT UserUpdateRequest : public Request {
private:
unsigned long uid;
UserInfo userInfo;
@@ -97,7 +99,7 @@ class NetworkUserBackend : public UserDBBackend {
: Request(application), uid(uid0), userInfo(userInfo0) {}
};
- class GroupAddRequest : public Request {
+ class MAD_COMMON_EXPORT GroupAddRequest : public Request {
private:
GroupInfo groupInfo;
bool check;
@@ -110,7 +112,7 @@ class NetworkUserBackend : public UserDBBackend {
: Request(application), groupInfo(groupInfo0), check(checkOnly) {}
};
- class GroupUpdateRequest : public Request {
+ class MAD_COMMON_EXPORT GroupUpdateRequest : public Request {
private:
unsigned long gid;
GroupInfo groupInfo;
@@ -123,7 +125,7 @@ class NetworkUserBackend : public UserDBBackend {
: Request(application), gid(gid0), groupInfo(groupInfo0) {}
};
- class UserGroupRequest : public Request {
+ class MAD_COMMON_EXPORT UserGroupRequest : public Request {
private:
std::string type;
unsigned long uid;
@@ -137,7 +139,7 @@ class NetworkUserBackend : public UserDBBackend {
: Request(application), type(type0), uid(uid0), gid(gid0) {}
};
- class PasswordRequest : public Request {
+ class MAD_COMMON_EXPORT PasswordRequest : public Request {
private:
unsigned long uid;
std::string password;