summaryrefslogtreecommitdiffstats
blob: 0bc382246062744737939d54542444a1f47934a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * Copyright (c) 2015 Isode Limited.
 * All rights reserved.
 * See the COPYING file for more information.
 */

#include <Swiften/Serializer/PayloadSerializers/CarbonsEnableSerializer.h>

#include <Swiften/Serializer/XML/XMLElement.h>

namespace Swift {
	CarbonsEnableSerializer::CarbonsEnableSerializer() : GenericPayloadSerializer<CarbonsEnable>() {
	}

	CarbonsEnableSerializer::~CarbonsEnableSerializer() {

	}

	std::string CarbonsEnableSerializer::serializePayload(boost::shared_ptr<CarbonsEnable>)	const {
		XMLElement element("enable", "urn:xmpp:carbons:2");
		return element.serialize();
	}
}