summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-05-08 17:36:16 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-05-08 17:36:45 (GMT)
commit73ad73d896664a75e30063a6b96ed18a3b856786 (patch)
treec60a625c2a70501972c9c4a4cb45e903772c9fe9 /Swiften/Elements
parent09de88ddd4377a53a880b98d63bbe391eba982b9 (diff)
downloadswift-73ad73d896664a75e30063a6b96ed18a3b856786.zip
swift-73ad73d896664a75e30063a6b96ed18a3b856786.tar.bz2
Flush bookmarks.
Resolves: #335
Diffstat (limited to 'Swiften/Elements')
-rw-r--r--Swiften/Elements/Storage.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/Swiften/Elements/Storage.h b/Swiften/Elements/Storage.h
index 7d978d1..447ca2e 100644
--- a/Swiften/Elements/Storage.h
+++ b/Swiften/Elements/Storage.h
@@ -35,12 +35,17 @@ namespace Swift {
Storage() {
}
+
+ void clearRooms() {
+ rooms.clear();
+ }
+
const std::vector<Room>& getRooms() const {
- return conferences;
+ return rooms;
}
- void addRoom(const Room& conference) {
- conferences.push_back(conference);
+ void addRoom(const Room& room) {
+ rooms.push_back(room);
}
const std::vector<URL>& getURLs() const {
@@ -52,7 +57,7 @@ namespace Swift {
}
private:
- std::vector<Room> conferences;
+ std::vector<Room> rooms;
std::vector<URL> urls;
};
}