diff options
Diffstat (limited to 'Swiften/Parser/PayloadParsers/StorageParser.cpp')
-rw-r--r-- | Swiften/Parser/PayloadParsers/StorageParser.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Swiften/Parser/PayloadParsers/StorageParser.cpp b/Swiften/Parser/PayloadParsers/StorageParser.cpp index f6fd29d..660bdd0 100644 --- a/Swiften/Parser/PayloadParsers/StorageParser.cpp +++ b/Swiften/Parser/PayloadParsers/StorageParser.cpp @@ -22,6 +22,12 @@ void StorageParser::handleStartElement(const String& element, const String&, con conference->jid = JID(attributes.getAttribute("jid")); conference->name = attributes.getAttribute("name"); } + else if (element == "url") { + assert(!url); + url = Storage::URL(); + url->name = attributes.getAttribute("name"); + url->url = attributes.getAttribute("url"); + } } else if (level == DetailLevel) { currentText = ""; @@ -37,6 +43,11 @@ void StorageParser::handleEndElement(const String& element, const String&) { getPayloadInternal()->addConference(*conference); conference.reset(); } + else if (element == "url") { + assert(url); + getPayloadInternal()->addURL(*url); + url.reset(); + } } else if (level == DetailLevel && conference) { if (element == "nick") { |