summaryrefslogtreecommitdiffstats
path: root/src/Server/UserListManager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Server/UserListManager.h')
-rw-r--r--src/Server/UserListManager.h33
1 files changed, 17 insertions, 16 deletions
diff --git a/src/Server/UserListManager.h b/src/Server/UserListManager.h
index 1651d42..65e8fdf 100644
--- a/src/Server/UserListManager.h
+++ b/src/Server/UserListManager.h
@@ -23,6 +23,7 @@
#include "export.h"
#include <Core/Configurable.h>
+#include <Core/String.h>
#include <boost/noncopyable.hpp>
#include <boost/shared_ptr.hpp>
@@ -52,8 +53,8 @@ class MAD_SERVER_EXPORT UserListManager : private Core::Configurable, private bo
boost::shared_ptr<RequestHandlers::UserListRequestHandlerGroup> requestHandlerGroup;
- std::set<std::string> userLists;
- std::set<std::string> userListDiffs;
+ std::set<Core::String> userLists;
+ std::set<Core::String> userListDiffs;
protected:
virtual void configFinished();
@@ -64,27 +65,27 @@ class MAD_SERVER_EXPORT UserListManager : private Core::Configurable, private bo
UserListManager(Application *application0);
virtual ~UserListManager();
- const std::set<std::string>& getUserLists() const {
+ const std::set<Core::String>& getUserLists() const {
return userLists;
}
- bool existsUserList(const std::string &name);
- boost::shared_ptr<Common::UserLists::UserList> loadUserList(const std::string &name);
- void storeUserList(const std::string &name, const Common::UserLists::UserList *list);
- void copyUserList(const std::string &fromName, const std::string &toName);
- void renameUserList(const std::string &fromName, const std::string &toName);
- void removeUserList(const std::string &name);
+ bool existsUserList(const Core::String &name);
+ boost::shared_ptr<Common::UserLists::UserList> loadUserList(const Core::String &name);
+ void storeUserList(const Core::String &name, const Common::UserLists::UserList *list);
+ void copyUserList(const Core::String &fromName, const Core::String &toName);
+ void renameUserList(const Core::String &fromName, const Core::String &toName);
+ void removeUserList(const Core::String &name);
- const std::set<std::string>& getUserListDiffs() const {
+ const std::set<Core::String>& getUserListDiffs() const {
return userListDiffs;
}
- bool existsUserListDiff(const std::string &name);
- boost::shared_ptr<Common::UserLists::UserListDiff> loadUserListDiff(const std::string &name);
- void storeUserListDiff(const std::string &name, const Common::UserLists::UserListDiff *list);
- void copyUserListDiff(const std::string &fromName, const std::string &toName);
- void renameUserListDiff(const std::string &fromName, const std::string &toName);
- void removeUserListDiff(const std::string &name);
+ bool existsUserListDiff(const Core::String &name);
+ boost::shared_ptr<Common::UserLists::UserListDiff> loadUserListDiff(const Core::String &name);
+ void storeUserListDiff(const Core::String &name, const Common::UserLists::UserListDiff *list);
+ void copyUserListDiff(const Core::String &fromName, const Core::String &toName);
+ void renameUserListDiff(const Core::String &fromName, const Core::String &toName);
+ void removeUserListDiff(const Core::String &name);
boost::shared_ptr<Common::UserLists::UserList> getCurrentUserList();
};