Files
@ 7c3533cd0cf3
Branch filter:
Location: libtransport.git/include/Swiften/Parser/PayloadParsers/GatewayPayloadParser.cpp - annotation
7c3533cd0cf3
931 B
text/x-c++hdr
Merge branch 'master' of github.com:hanzz/libtransport
54dff8d28067 54dff8d28067 54dff8d28067 54dff8d28067 54dff8d28067 54dff8d28067 54dff8d28067 54dff8d28067 54dff8d28067 54dff8d28067 54dff8d28067 54dff8d28067 54dff8d28067 54dff8d28067 54dff8d28067 54dff8d28067 54dff8d28067 54dff8d28067 54dff8d28067 54dff8d28067 54dff8d28067 54dff8d28067 54dff8d28067 54dff8d28067 54dff8d28067 54dff8d28067 54dff8d28067 54dff8d28067 54dff8d28067 54dff8d28067 54dff8d28067 54dff8d28067 54dff8d28067 | /*
* Copyright (c) 2012 Jan Kaluza
* Licensed under the Simplified BSD license.
* See Documentation/Licenses/BSD-simplified.txt for more information.
*/
#include <Swiften/Parser/PayloadParsers/GatewayPayloadParser.h>
#include <boost/lexical_cast.hpp>
#include <Swiften/Parser/PayloadParserFactoryCollection.h>
#include <Swiften/Parser/PayloadParserFactory.h>
#include <Swiften/Base/foreach.h>
#include <Swiften/Elements/MUCOccupant.h>
#include <Swiften/Parser/Tree/TreeReparser.h>
namespace Swift {
void GatewayPayloadParser::handleTree(ParserElement::ref root) {
foreach (ParserElement::ref child, root->getAllChildren()) {
if (child->getName() == "desc") {
getPayloadInternal()->setDesc(child->getText());
}
else if (child->getName() == "prompt") {
getPayloadInternal()->setPrompt(child->getText());
}
else if (child->getName() == "jid") {
getPayloadInternal()->setJID(child->getText());
}
}
}
}
|