summaryrefslogtreecommitdiffstats
path: root/src/Core/UserBackend.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Core/UserBackend.h')
-rw-r--r--src/Core/UserBackend.h21
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);
};