diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2009-09-20 16:14:19 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2009-09-20 16:14:19 +0200 |
commit | d6844595c9b47dab1db4b970ff6cc7fb3f64f107 (patch) | |
tree | c334db5dba4ae65636ad0b57c8ed7814e08b823b /src/modules/UserListManager/UserListManager.cpp | |
parent | d0cc9153d53dd4bc8dadf8bbcbe4ac72dfbbb61e (diff) | |
download | mad-d6844595c9b47dab1db4b970ff6cc7fb3f64f107.tar mad-d6844595c9b47dab1db4b970ff6cc7fb3f64f107.zip |
UserListManager: Added copy and rename requests
Diffstat (limited to 'src/modules/UserListManager/UserListManager.cpp')
-rw-r--r-- | src/modules/UserListManager/UserListManager.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/modules/UserListManager/UserListManager.cpp b/src/modules/UserListManager/UserListManager.cpp index e947e24..deb6214 100644 --- a/src/modules/UserListManager/UserListManager.cpp +++ b/src/modules/UserListManager/UserListManager.cpp @@ -75,6 +75,14 @@ void UserListManager::storeUserList(const std::string &name, const UserList *lis application->getStorageManager()->store("UserList", name, &data); } +void UserListManager::copyUserList(const std::string &fromName, const std::string &toName) { + application->getStorageManager()->copy("UserList", fromName, toName); +} + +void UserListManager::renameUserList(const std::string &fromName, const std::string &toName) { + application->getStorageManager()->rename("UserList", fromName, toName); +} + void UserListManager::removeUserList(const std::string &name) { application->getStorageManager()->remove("UserList", name); } @@ -100,6 +108,14 @@ void UserListManager::storeUserListDiff(const std::string &name, const UserListD application->getStorageManager()->store("UserListDiff", name, &data); } +void UserListManager::copyUserListDiff(const std::string &fromName, const std::string &toName) { + application->getStorageManager()->copy("UserListDiff", fromName, toName); +} + +void UserListManager::renameUserListDiff(const std::string &fromName, const std::string &toName) { + application->getStorageManager()->rename("UserListDiff", fromName, toName); +} + void UserListManager::removeUserListDiff(const std::string &name) { application->getStorageManager()->remove("UserListDiff", name); } |