From 04363ca342914ba75e693edb876cbe535839fa79 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 13 Feb 2009 00:00:05 +0100 Subject: Einfache Abfrage der Benutzerdatenbank implementiert --- src/Core/UserBackend.h | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) (limited to 'src/Core/UserBackend.h') 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 + #include #include #include @@ -44,17 +46,6 @@ class UserBackend { static std::set backends; - public: - struct UserInfo { - unsigned long uid; - unsigned long gid; - - std::vector gids; - - std::string username; - std::string fullName; - }; - protected: UserBackend() {} @@ -66,11 +57,11 @@ class UserBackend { backends.erase(backend); } - virtual bool userList(const sigc::slot& >&) { + virtual bool userList(const sigc::slot& >&) { return false; } - virtual bool userInfo(unsigned long, const sigc::slot&) { + virtual bool userInfo(unsigned long, const sigc::slot&) { return false; } @@ -85,8 +76,8 @@ class UserBackend { public: virtual ~UserBackend() {} - static bool getUserList(const sigc::slot& > &callback); - static bool getUserInfo(unsigned long uid, const sigc::slot &callback); + static bool getUserList(const sigc::slot& > &callback); + static bool getUserInfo(unsigned long uid, const sigc::slot &callback); static bool setPassword(unsigned long uid, const std::string &password, const sigc::slot &callback); }; -- cgit v1.2.3