spectrum2/include/Swiften/Serializer/PayloadSerializers/BlockSerializer.cpp
2011-07-27 10:33:34 +02:00

28 lines
798 B
C++

/*
* Copyright (c) 2011 Jan Kaluza
* Licensed under the Simplified BSD license.
* See Documentation/Licenses/BSD-simplified.txt for more information.
*/
#include <Swiften/Serializer/PayloadSerializers/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 Swift {
// This payload is NOT part of ANY XEP and it is only
// libtransport related extension.
BlockSerializer::BlockSerializer() : GenericPayloadSerializer<BlockPayload>() {
}
std::string BlockSerializer::serializePayload(boost::shared_ptr<BlockPayload> attention) const {
XMLElement attentionElement("block", "urn:xmpp:block:0");
return attentionElement.serialize();
}
}