summaryrefslogtreecommitdiffstats
path: root/src/modules/UserListManager/UserListManager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/UserListManager/UserListManager.h')
-rw-r--r--src/modules/UserListManager/UserListManager.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/modules/UserListManager/UserListManager.h b/src/modules/UserListManager/UserListManager.h
index 3f806e9..6d2599b 100644
--- a/src/modules/UserListManager/UserListManager.h
+++ b/src/modules/UserListManager/UserListManager.h
@@ -43,6 +43,7 @@ class UserListRequestHandlerGroup;
}
class UserList;
+class UserListDiff;
class MAD_MODULE_EXPORT UserListManager : private Core::Configurable, private boost::noncopyable {
private:
@@ -51,6 +52,7 @@ class MAD_MODULE_EXPORT UserListManager : private Core::Configurable, private bo
boost::shared_ptr<RequestHandlers::UserListRequestHandlerGroup> requestHandlerGroup;
std::set<std::string> userLists;
+ std::set<std::string> userListDiffs;
protected:
virtual void configFinished();
@@ -61,13 +63,24 @@ class MAD_MODULE_EXPORT UserListManager : private Core::Configurable, private bo
UserListManager(Server::Application *application0);
virtual ~UserListManager();
- const std::set<std::string>& getUserLists() const;
+ const std::set<std::string>& getUserLists() const {
+ return userLists;
+ }
bool existsUserList(const std::string &name);
boost::shared_ptr<UserList> loadUserList(const std::string &name);
void storeUserList(const std::string &name, const UserList *list);
void removeUserList(const std::string &name);
+ const std::set<std::string>& getUserListDiffs() const {
+ return userListDiffs;
+ }
+
+ bool existsUserListDiff(const std::string &name);
+ boost::shared_ptr<UserListDiff> loadUserListDiff(const std::string &name);
+ void storeUserListDiff(const std::string &name, const UserListDiff *list);
+ void removeUserListDiff(const std::string &name);
+
boost::shared_ptr<UserList> getCurrentUserList();
};