diff options
author | Tobias Markmann <tm@ayena.de> | 2014-10-24 09:57:13 (GMT) |
---|---|---|
committer | Swift Review <review@swift.im> | 2014-10-30 18:55:14 (GMT) |
commit | 8096f80861667381b777af774cfd446d6fc8cda8 (patch) | |
tree | 46d050b1e678609c241d162b06cc511fba698888 /Swiften/Serializer/PayloadSerializers/MAMFinSerializer.h | |
parent | 5cf50d46aed4d2dac333e5e3b3bc2f57f7a1b835 (diff) | |
download | swift-8096f80861667381b777af774cfd446d6fc8cda8.zip swift-8096f80861667381b777af774cfd446d6fc8cda8.tar.bz2 |
Brining XEP-0313 (MAM) implementation in line with version 3.0.
Added support for <fin/> element, including serializer/parsers and unit tests for
them. Added more unit tests based on XEP examples for existing parsers. Removed
unneccesarry includes from existing MAM implementation.
Test-Information:
Existing and new unit tests pass successfully.
Change-Id: I7e6bf85e0961d59801b452e4559cc1db9e9e6ed8
Diffstat (limited to 'Swiften/Serializer/PayloadSerializers/MAMFinSerializer.h')
-rw-r--r-- | Swiften/Serializer/PayloadSerializers/MAMFinSerializer.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Swiften/Serializer/PayloadSerializers/MAMFinSerializer.h b/Swiften/Serializer/PayloadSerializers/MAMFinSerializer.h new file mode 100644 index 0000000..e07bf46 --- /dev/null +++ b/Swiften/Serializer/PayloadSerializers/MAMFinSerializer.h @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2014 Kevin Smith and Remko Tronçon + * Licensed under the GNU General Public License v3. + * See Documentation/Licenses/GPLv3.txt for more information. + */ + +#pragma once + +#include <boost/shared_ptr.hpp> +#include <Swiften/Base/Override.h> +#include <Swiften/Base/API.h> +#include <Swiften/Elements/MAMFin.h> +#include <Swiften/Serializer/GenericPayloadSerializer.h> + +namespace Swift { + class PayloadSerializerCollection; + + class SWIFTEN_API MAMFinSerializer : public GenericPayloadSerializer<MAMFin> { + public: + MAMFinSerializer(); + virtual ~MAMFinSerializer(); + + virtual std::string serializePayload(boost::shared_ptr<MAMFin>) const SWIFTEN_OVERRIDE; + }; +} |