Files
@ de8114d2da06
Branch filter:
Location: libtransport.git/spectrum/src/frontends/xmpp/BlockSerializer.cpp - annotation
de8114d2da06
778 B
text/x-c++hdr
Libpurple: Do not change the nickname when joining the room when it is the same as the one used by the user
8ee031044843 8ee031044843 8ee031044843 8ee031044843 8ee031044843 8ee031044843 fe47e0979be9 8ee031044843 8ee031044843 8ee031044843 8ee031044843 8ee031044843 8ee031044843 8ee031044843 b3725b47c4ba 8ee031044843 8ee031044843 8ee031044843 91aa5e9c77d1 8ee031044843 8ee031044843 8ee031044843 b3725b47c4ba 8ee031044843 8ee031044843 8ee031044843 8ee031044843 8ee031044843 | /*
* Copyright (c) 2011 Jan Kaluza
* Licensed under the Simplified BSD license.
* See Documentation/Licenses/BSD-simplified.txt for more information.
*/
#include <BlockSerializer.h>
#include <boost/shared_ptr.hpp>
#include <Swiften/Serializer/XML/XMLTextNode.h>
#include <Swiften/Serializer/XML/XMLRawTextNode.h>
#include <Swiften/Serializer/XML/XMLElement.h>
namespace Transport {
// This payload is NOT part of ANY XEP and it is only
// libtransport related extension.
BlockSerializer::BlockSerializer() : Swift::GenericPayloadSerializer<BlockPayload>() {
}
std::string BlockSerializer::serializePayload(boost::shared_ptr<BlockPayload> attention) const {
Swift::XMLElement attentionElement("block", "urn:xmpp:block:0");
return attentionElement.serialize();
}
}
|