/* * Copyright (c) 2012 Jan Kaluza * Licensed under the Simplified BSD license. * See Documentation/Licenses/BSD-simplified.txt for more information. */ #include #include #include #include #include #include #include namespace Swift { void GatewayPayloadParser::handleTree(ParserElement::ref root) { BOOST_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()); } } } }