summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-05-08 17:18:21 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-05-08 17:22:18 (GMT)
commit09de88ddd4377a53a880b98d63bbe391eba982b9 (patch)
treebaa45c64b17eff11c22be25ba52271ee822268fd /Swiften/Parser/PayloadParsers/StorageParser.cpp
parentfc7c2dd9140b38df288450a4732297b53188e87a (diff)
downloadswift-09de88ddd4377a53a880b98d63bbe391eba982b9.zip
swift-09de88ddd4377a53a880b98d63bbe391eba982b9.tar.bz2
Renamed Conference->Room.
Diffstat (limited to 'Swiften/Parser/PayloadParsers/StorageParser.cpp')
-rw-r--r--Swiften/Parser/PayloadParsers/StorageParser.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/Swiften/Parser/PayloadParsers/StorageParser.cpp b/Swiften/Parser/PayloadParsers/StorageParser.cpp
index 660bdd0..c82b82c 100644
--- a/Swiften/Parser/PayloadParsers/StorageParser.cpp
+++ b/Swiften/Parser/PayloadParsers/StorageParser.cpp
@@ -16,11 +16,11 @@ StorageParser::StorageParser() : level(TopLevel) {
void StorageParser::handleStartElement(const String& element, const String&, const AttributeMap& attributes) {
if (level == BookmarkLevel) {
if (element == "conference") {
- assert(!conference);
- conference = Storage::Conference();
- conference->autoJoin = attributes.getBoolAttribute("autojoin", false);
- conference->jid = JID(attributes.getAttribute("jid"));
- conference->name = attributes.getAttribute("name");
+ assert(!room);
+ room = Storage::Room();
+ room->autoJoin = attributes.getBoolAttribute("autojoin", false);
+ room->jid = JID(attributes.getAttribute("jid"));
+ room->name = attributes.getAttribute("name");
}
else if (element == "url") {
assert(!url);
@@ -39,9 +39,9 @@ void StorageParser::handleEndElement(const String& element, const String&) {
--level;
if (level == BookmarkLevel) {
if (element == "conference") {
- assert(conference);
- getPayloadInternal()->addConference(*conference);
- conference.reset();
+ assert(room);
+ getPayloadInternal()->addRoom(*room);
+ room.reset();
}
else if (element == "url") {
assert(url);
@@ -49,12 +49,12 @@ void StorageParser::handleEndElement(const String& element, const String&) {
url.reset();
}
}
- else if (level == DetailLevel && conference) {
+ else if (level == DetailLevel && room) {
if (element == "nick") {
- conference->nick = currentText;
+ room->nick = currentText;
}
else if (element == "password") {
- conference->password = currentText;
+ room->password = currentText;
}
}
}