diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2009-02-13 00:00:05 +0100 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2009-02-13 00:00:05 +0100 |
commit | 04363ca342914ba75e693edb876cbe535839fa79 (patch) | |
tree | d1309d7b0f6288a8250e972e5cab2546f2a77609 /src/Core/UserBackend.h | |
parent | 2ab1fbd763ad8692ea3ca29705a4fe821ccb1309 (diff) | |
download | mad-04363ca342914ba75e693edb876cbe535839fa79.tar mad-04363ca342914ba75e693edb876cbe535839fa79.zip |
Einfache Abfrage der Benutzerdatenbank implementiert
Diffstat (limited to 'src/Core/UserBackend.h')
-rw-r--r-- | src/Core/UserBackend.h | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/src/Core/UserBackend.h b/src/Core/UserBackend.h index 6031d2f..aad9ace 100644 --- a/src/Core/UserBackend.h +++ b/src/Core/UserBackend.h @@ -20,6 +20,8 @@ #ifndef MAD_CORE_USERBACKEND_H_ #define MAD_CORE_USERBACKEND_H_ +#include <Common/UserInfo.h> + #include <map> #include <set> #include <string> @@ -44,17 +46,6 @@ class UserBackend { static std::set<UserBackend*, Compare> backends; - public: - struct UserInfo { - unsigned long uid; - unsigned long gid; - - std::vector<unsigned long> gids; - - std::string username; - std::string fullName; - }; - protected: UserBackend() {} @@ -66,11 +57,11 @@ class UserBackend { backends.erase(backend); } - virtual bool userList(const sigc::slot<void, const std::map<unsigned long, UserInfo>& >&) { + virtual bool userList(const sigc::slot<void, const std::map<unsigned long, Common::UserInfo>& >&) { return false; } - virtual bool userInfo(unsigned long, const sigc::slot<void, const UserInfo&>&) { + virtual bool userInfo(unsigned long, const sigc::slot<void, const Common::UserInfo&>&) { return false; } @@ -85,8 +76,8 @@ class UserBackend { public: virtual ~UserBackend() {} - static bool getUserList(const sigc::slot<void, const std::map<unsigned long, UserInfo>& > &callback); - static bool getUserInfo(unsigned long uid, const sigc::slot<void, const UserInfo&> &callback); + static bool getUserList(const sigc::slot<void, const std::map<unsigned long, Common::UserInfo>& > &callback); + static bool getUserInfo(unsigned long uid, const sigc::slot<void, const Common::UserInfo&> &callback); static bool setPassword(unsigned long uid, const std::string &password, const sigc::slot<void, bool> &callback); }; |