Files
@ 9b5ec6eedb5a
Branch filter:
Location: libtransport.git/include/Swiften/Parser/PayloadParsers/MUCPayloadParser.cpp - annotation
9b5ec6eedb5a
784 B
text/x-c++hdr
MySQLBackend: prepared statement results buffering, fixes #183
* cleanup unused code
* use mysql error constants instead of magic numbers
* cleanup unused code
* use mysql error constants instead of magic numbers
065127585a72 065127585a72 065127585a72 065127585a72 065127585a72 065127585a72 065127585a72 065127585a72 6b45e0e418ee 065127585a72 065127585a72 065127585a72 065127585a72 065127585a72 065127585a72 065127585a72 065127585a72 065127585a72 065127585a72 6b45e0e418ee 065127585a72 065127585a72 065127585a72 065127585a72 065127585a72 065127585a72 065127585a72 | /*
* Copyright (c) 2010 Kevin Smith
* Licensed under the GNU General Public License v3.
* See Documentation/Licenses/GPLv3.txt for more information.
*/
#include <Swiften/Parser/PayloadParsers/MUCPayloadParser.h>
#include <boost/foreach.hpp>
#include <boost/lexical_cast.hpp>
#include <Swiften/Parser/PayloadParserFactoryCollection.h>
#include <Swiften/Parser/PayloadParserFactory.h>
#include <Swiften/Elements/MUCOccupant.h>
#include <Swiften/Parser/Tree/TreeReparser.h>
namespace Swift {
void MUCPayloadParser::handleTree(ParserElement::ref root) {
BOOST_FOREACH (ParserElement::ref child, root->getAllChildren()) {
if (child->getName() == "password" && child->getNamespace() == root->getNamespace()) {
getPayloadInternal()->setPassword(child->getText());
}
}
}
}
|