diff options
| author | Tobias Markmann <tm@ayena.de> | 2015-06-07 22:34:19 (GMT) |
|---|---|---|
| committer | Tobias Markmann <tm@ayena.de> | 2015-06-08 09:37:53 (GMT) |
| commit | b6b0695643f932827add43b9de0e09ed74eb6799 (patch) | |
| tree | 72456efba9fab6fbc6004a98f0a61b7a8167f791 /Swiften/Serializer | |
| parent | 3741c9ad5c0cc6f92e4ed913d67b3b530882334e (diff) | |
| download | swift-b6b0695643f932827add43b9de0e09ed74eb6799.zip swift-b6b0695643f932827add43b9de0e09ed74eb6799.tar.bz2 | |
Add missing SWIFTEN_API annotations to public Swiften API
Test-Information:
Tested build on Windows 8 with VS 2014 and ran unit tests.
Change-Id: I3d8096df4801be6901f22564e36eecba0e7310c4
Diffstat (limited to 'Swiften/Serializer')
55 files changed, 196 insertions, 107 deletions
diff --git a/Swiften/Serializer/AuthFailureSerializer.h b/Swiften/Serializer/AuthFailureSerializer.h index b4fa6a0..9c1d66e 100644 --- a/Swiften/Serializer/AuthFailureSerializer.h +++ b/Swiften/Serializer/AuthFailureSerializer.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010-2014 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| @@ -8,12 +8,13 @@ | |||
| 8 | 8 | ||
| 9 | #include <boost/shared_ptr.hpp> | 9 | #include <boost/shared_ptr.hpp> |
| 10 | 10 | ||
| 11 | #include <Swiften/Base/API.h> | ||
| 11 | #include <Swiften/Elements/AuthFailure.h> | 12 | #include <Swiften/Elements/AuthFailure.h> |
| 12 | #include <Swiften/Serializer/GenericElementSerializer.h> | 13 | #include <Swiften/Serializer/GenericElementSerializer.h> |
| 13 | #include <Swiften/Serializer/XML/XMLElement.h> | 14 | #include <Swiften/Serializer/XML/XMLElement.h> |
| 14 | 15 | ||
| 15 | namespace Swift { | 16 | namespace Swift { |
| 16 | class AuthFailureSerializer : public GenericElementSerializer<AuthFailure> { | 17 | class SWIFTEN_API AuthFailureSerializer : public GenericElementSerializer<AuthFailure> { |
| 17 | public: | 18 | public: |
| 18 | AuthFailureSerializer() : GenericElementSerializer<AuthFailure>() { | 19 | AuthFailureSerializer() : GenericElementSerializer<AuthFailure>() { |
| 19 | } | 20 | } |
diff --git a/Swiften/Serializer/ComponentHandshakeSerializer.h b/Swiften/Serializer/ComponentHandshakeSerializer.h index 08b0798..0d102e2 100644 --- a/Swiften/Serializer/ComponentHandshakeSerializer.h +++ b/Swiften/Serializer/ComponentHandshakeSerializer.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010-2014 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| @@ -8,11 +8,12 @@ | |||
| 8 | 8 | ||
| 9 | #include <boost/shared_ptr.hpp> | 9 | #include <boost/shared_ptr.hpp> |
| 10 | 10 | ||
| 11 | #include <Swiften/Base/API.h> | ||
| 11 | #include <Swiften/Elements/ComponentHandshake.h> | 12 | #include <Swiften/Elements/ComponentHandshake.h> |
| 12 | #include <Swiften/Serializer/GenericElementSerializer.h> | 13 | #include <Swiften/Serializer/GenericElementSerializer.h> |
| 13 | 14 | ||
| 14 | namespace Swift { | 15 | namespace Swift { |
| 15 | class ComponentHandshakeSerializer : public GenericElementSerializer<ComponentHandshake> { | 16 | class SWIFTEN_API ComponentHandshakeSerializer : public GenericElementSerializer<ComponentHandshake> { |
| 16 | public: | 17 | public: |
| 17 | ComponentHandshakeSerializer(); | 18 | ComponentHandshakeSerializer(); |
| 18 | 19 | ||
diff --git a/Swiften/Serializer/CompressFailureSerializer.h b/Swiften/Serializer/CompressFailureSerializer.h index 06b1be3..e20d458 100644 --- a/Swiften/Serializer/CompressFailureSerializer.h +++ b/Swiften/Serializer/CompressFailureSerializer.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010-2014 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| @@ -8,12 +8,13 @@ | |||
| 8 | 8 | ||
| 9 | #include <boost/shared_ptr.hpp> | 9 | #include <boost/shared_ptr.hpp> |
| 10 | 10 | ||
| 11 | #include <Swiften/Base/API.h> | ||
| 11 | #include <Swiften/Elements/CompressFailure.h> | 12 | #include <Swiften/Elements/CompressFailure.h> |
| 12 | #include <Swiften/Serializer/GenericElementSerializer.h> | 13 | #include <Swiften/Serializer/GenericElementSerializer.h> |
| 13 | #include <Swiften/Serializer/XML/XMLElement.h> | 14 | #include <Swiften/Serializer/XML/XMLElement.h> |
| 14 | 15 | ||
| 15 | namespace Swift { | 16 | namespace Swift { |
| 16 | class CompressFailureSerializer : public GenericElementSerializer<CompressFailure> { | 17 | class SWIFTEN_API CompressFailureSerializer : public GenericElementSerializer<CompressFailure> { |
| 17 | public: | 18 | public: |
| 18 | CompressFailureSerializer() : GenericElementSerializer<CompressFailure>() { | 19 | CompressFailureSerializer() : GenericElementSerializer<CompressFailure>() { |
| 19 | } | 20 | } |
diff --git a/Swiften/Serializer/CompressRequestSerializer.h b/Swiften/Serializer/CompressRequestSerializer.h index 619c402..2ff349d 100644 --- a/Swiften/Serializer/CompressRequestSerializer.h +++ b/Swiften/Serializer/CompressRequestSerializer.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010-2014 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| @@ -8,10 +8,11 @@ | |||
| 8 | 8 | ||
| 9 | #include <boost/shared_ptr.hpp> | 9 | #include <boost/shared_ptr.hpp> |
| 10 | 10 | ||
| 11 | #include <Swiften/Base/API.h> | ||
| 11 | #include <Swiften/Serializer/ElementSerializer.h> | 12 | #include <Swiften/Serializer/ElementSerializer.h> |
| 12 | 13 | ||
| 13 | namespace Swift { | 14 | namespace Swift { |
| 14 | class CompressRequestSerializer : public ElementSerializer { | 15 | class SWIFTEN_API CompressRequestSerializer : public ElementSerializer { |
| 15 | public: | 16 | public: |
| 16 | CompressRequestSerializer(); | 17 | CompressRequestSerializer(); |
| 17 | 18 | ||
diff --git a/Swiften/Serializer/EnableStreamManagementSerializer.h b/Swiften/Serializer/EnableStreamManagementSerializer.h index 0494835..f837e9f 100644 --- a/Swiften/Serializer/EnableStreamManagementSerializer.h +++ b/Swiften/Serializer/EnableStreamManagementSerializer.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010-2014 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| @@ -8,12 +8,13 @@ | |||
| 8 | 8 | ||
| 9 | #include <boost/shared_ptr.hpp> | 9 | #include <boost/shared_ptr.hpp> |
| 10 | 10 | ||
| 11 | #include <Swiften/Base/API.h> | ||
| 11 | #include <Swiften/Elements/EnableStreamManagement.h> | 12 | #include <Swiften/Elements/EnableStreamManagement.h> |
| 12 | #include <Swiften/Serializer/GenericElementSerializer.h> | 13 | #include <Swiften/Serializer/GenericElementSerializer.h> |
| 13 | #include <Swiften/Serializer/XML/XMLElement.h> | 14 | #include <Swiften/Serializer/XML/XMLElement.h> |
| 14 | 15 | ||
| 15 | namespace Swift { | 16 | namespace Swift { |
| 16 | class EnableStreamManagementSerializer : public GenericElementSerializer<EnableStreamManagement> { | 17 | class SWIFTEN_API EnableStreamManagementSerializer : public GenericElementSerializer<EnableStreamManagement> { |
| 17 | public: | 18 | public: |
| 18 | EnableStreamManagementSerializer() : GenericElementSerializer<EnableStreamManagement>() { | 19 | EnableStreamManagementSerializer() : GenericElementSerializer<EnableStreamManagement>() { |
| 19 | } | 20 | } |
diff --git a/Swiften/Serializer/GenericElementSerializer.h b/Swiften/Serializer/GenericElementSerializer.h index 868592b..40ecb0f 100644 --- a/Swiften/Serializer/GenericElementSerializer.h +++ b/Swiften/Serializer/GenericElementSerializer.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010-2014 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| @@ -8,11 +8,12 @@ | |||
| 8 | 8 | ||
| 9 | #include <boost/shared_ptr.hpp> | 9 | #include <boost/shared_ptr.hpp> |
| 10 | 10 | ||
| 11 | #include <Swiften/Base/API.h> | ||
| 11 | #include <Swiften/Serializer/ElementSerializer.h> | 12 | #include <Swiften/Serializer/ElementSerializer.h> |
| 12 | 13 | ||
| 13 | namespace Swift { | 14 | namespace Swift { |
| 14 | template<typename T> | 15 | template<typename T> |
| 15 | class GenericElementSerializer : public ElementSerializer { | 16 | class SWIFTEN_API GenericElementSerializer : public ElementSerializer { |
| 16 | public: | 17 | public: |
| 17 | virtual SafeByteArray serialize(boost::shared_ptr<ToplevelElement> element) const = 0; | 18 | virtual SafeByteArray serialize(boost::shared_ptr<ToplevelElement> element) const = 0; |
| 18 | 19 | ||
diff --git a/Swiften/Serializer/GenericPayloadSerializer.h b/Swiften/Serializer/GenericPayloadSerializer.h index cfe8c98..e964d80 100644 --- a/Swiften/Serializer/GenericPayloadSerializer.h +++ b/Swiften/Serializer/GenericPayloadSerializer.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010-2014 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| @@ -8,11 +8,12 @@ | |||
| 8 | 8 | ||
| 9 | #include <boost/shared_ptr.hpp> | 9 | #include <boost/shared_ptr.hpp> |
| 10 | 10 | ||
| 11 | #include <Swiften/Base/API.h> | ||
| 11 | #include <Swiften/Serializer/PayloadSerializer.h> | 12 | #include <Swiften/Serializer/PayloadSerializer.h> |
| 12 | 13 | ||
| 13 | namespace Swift { | 14 | namespace Swift { |
| 14 | template<typename PAYLOAD_TYPE> | 15 | template<typename PAYLOAD_TYPE> |
| 15 | class GenericPayloadSerializer : public PayloadSerializer { | 16 | class SWIFTEN_API GenericPayloadSerializer : public PayloadSerializer { |
| 16 | public: | 17 | public: |
| 17 | virtual std::string serialize(boost::shared_ptr<Payload> element) const { | 18 | virtual std::string serialize(boost::shared_ptr<Payload> element) const { |
| 18 | return serializePayload(boost::dynamic_pointer_cast<PAYLOAD_TYPE>(element)); | 19 | return serializePayload(boost::dynamic_pointer_cast<PAYLOAD_TYPE>(element)); |
diff --git a/Swiften/Serializer/GenericStanzaSerializer.h b/Swiften/Serializer/GenericStanzaSerializer.h index 3b33d55..319ea67 100644 --- a/Swiften/Serializer/GenericStanzaSerializer.h +++ b/Swiften/Serializer/GenericStanzaSerializer.h | |||
| @@ -1,16 +1,17 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010-2014 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #pragma once | 7 | #pragma once |
| 8 | 8 | ||
| 9 | #include <Swiften/Base/API.h> | ||
| 9 | #include <Swiften/Serializer/StanzaSerializer.h> | 10 | #include <Swiften/Serializer/StanzaSerializer.h> |
| 10 | 11 | ||
| 11 | namespace Swift { | 12 | namespace Swift { |
| 12 | template<typename STANZA_TYPE> | 13 | template<typename STANZA_TYPE> |
| 13 | class GenericStanzaSerializer : public StanzaSerializer { | 14 | class SWIFTEN_API GenericStanzaSerializer : public StanzaSerializer { |
| 14 | public: | 15 | public: |
| 15 | GenericStanzaSerializer(const std::string& tag, PayloadSerializerCollection* payloadSerializers, const boost::optional<std::string>& explicitNS = boost::optional<std::string>()) : StanzaSerializer(tag, payloadSerializers, explicitNS) {} | 16 | GenericStanzaSerializer(const std::string& tag, PayloadSerializerCollection* payloadSerializers, const boost::optional<std::string>& explicitNS = boost::optional<std::string>()) : StanzaSerializer(tag, payloadSerializers, explicitNS) {} |
| 16 | 17 | ||
diff --git a/Swiften/Serializer/IQSerializer.h b/Swiften/Serializer/IQSerializer.h index 67a5ac6..055ff86 100644 --- a/Swiften/Serializer/IQSerializer.h +++ b/Swiften/Serializer/IQSerializer.h | |||
| @@ -1,11 +1,12 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010-2014 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #pragma once | 7 | #pragma once |
| 8 | 8 | ||
| 9 | #include <Swiften/Base/API.h> | ||
| 9 | #include <Swiften/Serializer/GenericStanzaSerializer.h> | 10 | #include <Swiften/Serializer/GenericStanzaSerializer.h> |
| 10 | #include <Swiften/Elements/IQ.h> | 11 | #include <Swiften/Elements/IQ.h> |
| 11 | #include <Swiften/Serializer/XML/XMLElement.h> | 12 | #include <Swiften/Serializer/XML/XMLElement.h> |
| @@ -13,7 +14,7 @@ | |||
| 13 | #include <boost/optional.hpp> | 14 | #include <boost/optional.hpp> |
| 14 | 15 | ||
| 15 | namespace Swift { | 16 | namespace Swift { |
| 16 | class IQSerializer : public GenericStanzaSerializer<IQ> { | 17 | class SWIFTEN_API IQSerializer : public GenericStanzaSerializer<IQ> { |
| 17 | public: | 18 | public: |
| 18 | IQSerializer(PayloadSerializerCollection* payloadSerializers, const boost::optional<std::string>& explicitNS = boost::optional<std::string>()) : | 19 | IQSerializer(PayloadSerializerCollection* payloadSerializers, const boost::optional<std::string>& explicitNS = boost::optional<std::string>()) : |
| 19 | GenericStanzaSerializer<IQ>("iq", payloadSerializers, explicitNS) { | 20 | GenericStanzaSerializer<IQ>("iq", payloadSerializers, explicitNS) { |
diff --git a/Swiften/Serializer/MessageSerializer.h b/Swiften/Serializer/MessageSerializer.h index b993b0e..25adc52 100644 --- a/Swiften/Serializer/MessageSerializer.h +++ b/Swiften/Serializer/MessageSerializer.h | |||
| @@ -1,11 +1,12 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010-2014 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #pragma once | 7 | #pragma once |
| 8 | 8 | ||
| 9 | #include <Swiften/Base/API.h> | ||
| 9 | #include <Swiften/Serializer/GenericStanzaSerializer.h> | 10 | #include <Swiften/Serializer/GenericStanzaSerializer.h> |
| 10 | #include <Swiften/Elements/Message.h> | 11 | #include <Swiften/Elements/Message.h> |
| 11 | 12 | ||
| @@ -14,7 +15,7 @@ | |||
| 14 | namespace Swift { | 15 | namespace Swift { |
| 15 | class XMLElement; | 16 | class XMLElement; |
| 16 | 17 | ||
| 17 | class MessageSerializer : public GenericStanzaSerializer<Message> { | 18 | class SWIFTEN_API MessageSerializer : public GenericStanzaSerializer<Message> { |
| 18 | public: | 19 | public: |
| 19 | MessageSerializer(PayloadSerializerCollection* payloadSerializers, const boost::optional<std::string>& explitNS = boost::optional<std::string>()); | 20 | MessageSerializer(PayloadSerializerCollection* payloadSerializers, const boost::optional<std::string>& explitNS = boost::optional<std::string>()); |
| 20 | 21 | ||
diff --git a/Swiften/Serializer/PayloadSerializers/BlockSerializer.h b/Swiften/Serializer/PayloadSerializers/BlockSerializer.h index dfc5f3e..48c8004 100644 --- a/Swiften/Serializer/PayloadSerializers/BlockSerializer.h +++ b/Swiften/Serializer/PayloadSerializers/BlockSerializer.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010-2013 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| @@ -8,13 +8,14 @@ | |||
| 8 | 8 | ||
| 9 | #include <boost/smart_ptr/make_shared.hpp> | 9 | #include <boost/smart_ptr/make_shared.hpp> |
| 10 | 10 | ||
| 11 | #include <Swiften/Base/API.h> | ||
| 11 | #include <Swiften/JID/JID.h> | 12 | #include <Swiften/JID/JID.h> |
| 12 | #include <Swiften/Serializer/GenericPayloadSerializer.h> | 13 | #include <Swiften/Serializer/GenericPayloadSerializer.h> |
| 13 | #include <Swiften/Serializer/XML/XMLElement.h> | 14 | #include <Swiften/Serializer/XML/XMLElement.h> |
| 14 | 15 | ||
| 15 | namespace Swift { | 16 | namespace Swift { |
| 16 | template<typename BLOCK_ELEMENT> | 17 | template<typename BLOCK_ELEMENT> |
| 17 | class BlockSerializer : public GenericPayloadSerializer<BLOCK_ELEMENT> { | 18 | class SWIFTEN_API BlockSerializer : public GenericPayloadSerializer<BLOCK_ELEMENT> { |
| 18 | public: | 19 | public: |
| 19 | BlockSerializer(std::string tag) : GenericPayloadSerializer<BLOCK_ELEMENT>(), tag(tag) { | 20 | BlockSerializer(std::string tag) : GenericPayloadSerializer<BLOCK_ELEMENT>(), tag(tag) { |
| 20 | } | 21 | } |
diff --git a/Swiften/Serializer/PayloadSerializers/BodySerializer.h b/Swiften/Serializer/PayloadSerializers/BodySerializer.h index def92f3..9ecc434 100644 --- a/Swiften/Serializer/PayloadSerializers/BodySerializer.h +++ b/Swiften/Serializer/PayloadSerializers/BodySerializer.h | |||
| @@ -1,17 +1,18 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #pragma once | 7 | #pragma once |
| 8 | 8 | ||
| 9 | #include <Swiften/Base/API.h> | ||
| 9 | #include <Swiften/Serializer/GenericPayloadSerializer.h> | 10 | #include <Swiften/Serializer/GenericPayloadSerializer.h> |
| 10 | #include <Swiften/Serializer/XML/XMLTextNode.h> | 11 | #include <Swiften/Serializer/XML/XMLTextNode.h> |
| 11 | #include <Swiften/Elements/Body.h> | 12 | #include <Swiften/Elements/Body.h> |
| 12 | 13 | ||
| 13 | namespace Swift { | 14 | namespace Swift { |
| 14 | class BodySerializer : public GenericPayloadSerializer<Body> { | 15 | class SWIFTEN_API BodySerializer : public GenericPayloadSerializer<Body> { |
| 15 | public: | 16 | public: |
| 16 | BodySerializer() : GenericPayloadSerializer<Body>() {} | 17 | BodySerializer() : GenericPayloadSerializer<Body>() {} |
| 17 | 18 | ||
diff --git a/Swiften/Serializer/PayloadSerializers/BytestreamsSerializer.h b/Swiften/Serializer/PayloadSerializers/BytestreamsSerializer.h index 76e7127..561a38f 100644 --- a/Swiften/Serializer/PayloadSerializers/BytestreamsSerializer.h +++ b/Swiften/Serializer/PayloadSerializers/BytestreamsSerializer.h | |||
| @@ -1,18 +1,19 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #pragma once | 7 | #pragma once |
| 8 | 8 | ||
| 9 | #include <Swiften/Base/API.h> | ||
| 9 | #include <Swiften/Serializer/GenericPayloadSerializer.h> | 10 | #include <Swiften/Serializer/GenericPayloadSerializer.h> |
| 10 | #include <Swiften/Elements/Bytestreams.h> | 11 | #include <Swiften/Elements/Bytestreams.h> |
| 11 | 12 | ||
| 12 | namespace Swift { | 13 | namespace Swift { |
| 13 | class PayloadSerializerCollection; | 14 | class PayloadSerializerCollection; |
| 14 | 15 | ||
| 15 | class BytestreamsSerializer : public GenericPayloadSerializer<Bytestreams> { | 16 | class SWIFTEN_API BytestreamsSerializer : public GenericPayloadSerializer<Bytestreams> { |
| 16 | public: | 17 | public: |
| 17 | BytestreamsSerializer(); | 18 | BytestreamsSerializer(); |
| 18 | 19 | ||
diff --git a/Swiften/Serializer/PayloadSerializers/ChatStateSerializer.h b/Swiften/Serializer/PayloadSerializers/ChatStateSerializer.h index b60079d..26b6d68 100644 --- a/Swiften/Serializer/PayloadSerializers/ChatStateSerializer.h +++ b/Swiften/Serializer/PayloadSerializers/ChatStateSerializer.h | |||
| @@ -1,16 +1,17 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #pragma once | 7 | #pragma once |
| 8 | 8 | ||
| 9 | #include <Swiften/Base/API.h> | ||
| 9 | #include <Swiften/Serializer/GenericPayloadSerializer.h> | 10 | #include <Swiften/Serializer/GenericPayloadSerializer.h> |
| 10 | #include <Swiften/Elements/ChatState.h> | 11 | #include <Swiften/Elements/ChatState.h> |
| 11 | 12 | ||
| 12 | namespace Swift { | 13 | namespace Swift { |
| 13 | class ChatStateSerializer : public GenericPayloadSerializer<ChatState> { | 14 | class SWIFTEN_API ChatStateSerializer : public GenericPayloadSerializer<ChatState> { |
| 14 | public: | 15 | public: |
| 15 | ChatStateSerializer(); | 16 | ChatStateSerializer(); |
| 16 | 17 | ||
diff --git a/Swiften/Serializer/PayloadSerializers/CommandSerializer.h b/Swiften/Serializer/PayloadSerializers/CommandSerializer.h index 465c11c..34b8d17 100644 --- a/Swiften/Serializer/PayloadSerializers/CommandSerializer.h +++ b/Swiften/Serializer/PayloadSerializers/CommandSerializer.h | |||
| @@ -1,16 +1,17 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #pragma once | 7 | #pragma once |
| 8 | 8 | ||
| 9 | #include <Swiften/Base/API.h> | ||
| 9 | #include <Swiften/Serializer/GenericPayloadSerializer.h> | 10 | #include <Swiften/Serializer/GenericPayloadSerializer.h> |
| 10 | #include <Swiften/Elements/Command.h> | 11 | #include <Swiften/Elements/Command.h> |
| 11 | 12 | ||
| 12 | namespace Swift { | 13 | namespace Swift { |
| 13 | class CommandSerializer : public GenericPayloadSerializer<Command> { | 14 | class SWIFTEN_API CommandSerializer : public GenericPayloadSerializer<Command> { |
| 14 | public: | 15 | public: |
| 15 | CommandSerializer(); | 16 | CommandSerializer(); |
| 16 | 17 | ||
diff --git a/Swiften/Serializer/PayloadSerializers/DelaySerializer.h b/Swiften/Serializer/PayloadSerializers/DelaySerializer.h index df07716..bfe53c3 100644 --- a/Swiften/Serializer/PayloadSerializers/DelaySerializer.h +++ b/Swiften/Serializer/PayloadSerializers/DelaySerializer.h | |||
| @@ -1,16 +1,17 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #pragma once | 7 | #pragma once |
| 8 | 8 | ||
| 9 | #include <Swiften/Base/API.h> | ||
| 9 | #include <Swiften/Serializer/GenericPayloadSerializer.h> | 10 | #include <Swiften/Serializer/GenericPayloadSerializer.h> |
| 10 | #include <Swiften/Elements/Delay.h> | 11 | #include <Swiften/Elements/Delay.h> |
| 11 | 12 | ||
| 12 | namespace Swift { | 13 | namespace Swift { |
| 13 | class DelaySerializer : public GenericPayloadSerializer<Delay> { | 14 | class SWIFTEN_API DelaySerializer : public GenericPayloadSerializer<Delay> { |
| 14 | public: | 15 | public: |
| 15 | DelaySerializer(); | 16 | DelaySerializer(); |
| 16 | 17 | ||
diff --git a/Swiften/Serializer/PayloadSerializers/DiscoItemsSerializer.h b/Swiften/Serializer/PayloadSerializers/DiscoItemsSerializer.h index 0cabe49..8af94d6 100644 --- a/Swiften/Serializer/PayloadSerializers/DiscoItemsSerializer.h +++ b/Swiften/Serializer/PayloadSerializers/DiscoItemsSerializer.h | |||
| @@ -1,16 +1,17 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #pragma once | 7 | #pragma once |
| 8 | 8 | ||
| 9 | #include <Swiften/Base/API.h> | ||
| 9 | #include <Swiften/Serializer/GenericPayloadSerializer.h> | 10 | #include <Swiften/Serializer/GenericPayloadSerializer.h> |
| 10 | #include <Swiften/Elements/DiscoItems.h> | 11 | #include <Swiften/Elements/DiscoItems.h> |
| 11 | 12 | ||
| 12 | namespace Swift { | 13 | namespace Swift { |
| 13 | class DiscoItemsSerializer : public GenericPayloadSerializer<DiscoItems> { | 14 | class SWIFTEN_API DiscoItemsSerializer : public GenericPayloadSerializer<DiscoItems> { |
| 14 | public: | 15 | public: |
| 15 | DiscoItemsSerializer(); | 16 | DiscoItemsSerializer(); |
| 16 | 17 | ||
diff --git a/Swiften/Serializer/PayloadSerializers/IBBSerializer.h b/Swiften/Serializer/PayloadSerializers/IBBSerializer.h index 34ec10c..06e658a 100644 --- a/Swiften/Serializer/PayloadSerializers/IBBSerializer.h +++ b/Swiften/Serializer/PayloadSerializers/IBBSerializer.h | |||
| @@ -1,16 +1,17 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #pragma once | 7 | #pragma once |
| 8 | 8 | ||
| 9 | #include <Swiften/Base/API.h> | ||
| 9 | #include <Swiften/Serializer/GenericPayloadSerializer.h> | 10 | #include <Swiften/Serializer/GenericPayloadSerializer.h> |
| 10 | #include <Swiften/Elements/IBB.h> | 11 | #include <Swiften/Elements/IBB.h> |
| 11 | 12 | ||
| 12 | namespace Swift { | 13 | namespace Swift { |
| 13 | class IBBSerializer : public GenericPayloadSerializer<IBB> { | 14 | class SWIFTEN_API IBBSerializer : public GenericPayloadSerializer<IBB> { |
| 14 | public: | 15 | public: |
| 15 | IBBSerializer(); | 16 | IBBSerializer(); |
| 16 | 17 | ||
diff --git a/Swiften/Serializer/PayloadSerializers/IdleSerializer.h b/Swiften/Serializer/PayloadSerializers/IdleSerializer.h index 45f9da4..2c4150e 100644 --- a/Swiften/Serializer/PayloadSerializers/IdleSerializer.h +++ b/Swiften/Serializer/PayloadSerializers/IdleSerializer.h | |||
| @@ -4,14 +4,21 @@ | |||
| 4 | * See Documentation/Licenses/BSD-simplified.txt for more information. | 4 | * See Documentation/Licenses/BSD-simplified.txt for more information. |
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | /* | ||
| 8 | * Copyright (c) 2015 Isode Limited. | ||
| 9 | * All rights reserved. | ||
| 10 | * See the COPYING file for more information. | ||
| 11 | */ | ||
| 12 | |||
| 7 | #pragma once | 13 | #pragma once |
| 8 | 14 | ||
| 15 | #include <Swiften/Base/API.h> | ||
| 9 | #include <Swiften/Serializer/GenericPayloadSerializer.h> | 16 | #include <Swiften/Serializer/GenericPayloadSerializer.h> |
| 10 | #include <Swiften/Elements/Idle.h> | 17 | #include <Swiften/Elements/Idle.h> |
| 11 | #include <Swiften/Base/DateTime.h> | 18 | #include <Swiften/Base/DateTime.h> |
| 12 | 19 | ||
| 13 | namespace Swift { | 20 | namespace Swift { |
| 14 | class IdleSerializer : public GenericPayloadSerializer<Idle> { | 21 | class SWIFTEN_API IdleSerializer : public GenericPayloadSerializer<Idle> { |
| 15 | public: | 22 | public: |
| 16 | IdleSerializer() : GenericPayloadSerializer<Idle>() {} | 23 | IdleSerializer() : GenericPayloadSerializer<Idle>() {} |
| 17 | 24 | ||
diff --git a/Swiften/Serializer/PayloadSerializers/JingleContentPayloadSerializer.h b/Swiften/Serializer/PayloadSerializers/JingleContentPayloadSerializer.h index 2de0064..4c74122 100644 --- a/Swiften/Serializer/PayloadSerializers/JingleContentPayloadSerializer.h +++ b/Swiften/Serializer/PayloadSerializers/JingleContentPayloadSerializer.h | |||
| @@ -4,16 +4,23 @@ | |||
| 4 | * See Documentation/Licenses/BSD-simplified.txt for more information. | 4 | * See Documentation/Licenses/BSD-simplified.txt for more information. |
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | /* | ||
| 8 | * Copyright (c) 2015 Isode Limited. | ||
| 9 | * All rights reserved. | ||
| 10 | * See the COPYING file for more information. | ||
| 11 | */ | ||
| 12 | |||
| 7 | 13 | ||
| 8 | #pragma once | 14 | #pragma once |
| 9 | 15 | ||
| 16 | #include <Swiften/Base/API.h> | ||
| 10 | #include <Swiften/Serializer/GenericPayloadSerializer.h> | 17 | #include <Swiften/Serializer/GenericPayloadSerializer.h> |
| 11 | #include <Swiften/Elements/JingleContentPayload.h> | 18 | #include <Swiften/Elements/JingleContentPayload.h> |
| 12 | 19 | ||
| 13 | namespace Swift { | 20 | namespace Swift { |
| 14 | class PayloadSerializerCollection; | 21 | class PayloadSerializerCollection; |
| 15 | 22 | ||
| 16 | class JingleContentPayloadSerializer : public GenericPayloadSerializer<JingleContentPayload> { | 23 | class SWIFTEN_API JingleContentPayloadSerializer : public GenericPayloadSerializer<JingleContentPayload> { |
| 17 | public: | 24 | public: |
| 18 | JingleContentPayloadSerializer(); | 25 | JingleContentPayloadSerializer(); |
| 19 | 26 | ||
diff --git a/Swiften/Serializer/PayloadSerializers/JingleFileTransferHashSerializer.h b/Swiften/Serializer/PayloadSerializers/JingleFileTransferHashSerializer.h index 7fa6ac5..2e75758 100644 --- a/Swiften/Serializer/PayloadSerializers/JingleFileTransferHashSerializer.h +++ b/Swiften/Serializer/PayloadSerializers/JingleFileTransferHashSerializer.h | |||
| @@ -4,9 +4,16 @@ | |||
| 4 | * See Documentation/Licenses/BSD-simplified.txt for more information. | 4 | * See Documentation/Licenses/BSD-simplified.txt for more information. |
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | /* | ||
| 8 | * Copyright (c) 2015 Isode Limited. | ||
| 9 | * All rights reserved. | ||
| 10 | * See the COPYING file for more information. | ||
| 11 | */ | ||
| 12 | |||
| 7 | 13 | ||
| 8 | #pragma once | 14 | #pragma once |
| 9 | 15 | ||
| 16 | #include <Swiften/Base/API.h> | ||
| 10 | #include <Swiften/Serializer/GenericPayloadSerializer.h> | 17 | #include <Swiften/Serializer/GenericPayloadSerializer.h> |
| 11 | #include <Swiften/Elements/JingleFileTransferHash.h> | 18 | #include <Swiften/Elements/JingleFileTransferHash.h> |
| 12 | 19 | ||
| @@ -14,7 +21,7 @@ namespace Swift { | |||
| 14 | class PayloadSerializerCollection; | 21 | class PayloadSerializerCollection; |
| 15 | class XMLElement; | 22 | class XMLElement; |
| 16 | 23 | ||
| 17 | class JingleFileTransferHashSerializer : public GenericPayloadSerializer<JingleFileTransferHash> { | 24 | class SWIFTEN_API JingleFileTransferHashSerializer : public GenericPayloadSerializer<JingleFileTransferHash> { |
| 18 | public: | 25 | public: |
| 19 | JingleFileTransferHashSerializer(); | 26 | JingleFileTransferHashSerializer(); |
| 20 | 27 | ||
diff --git a/Swiften/Serializer/PayloadSerializers/JingleIBBTransportPayloadSerializer.h b/Swiften/Serializer/PayloadSerializers/JingleIBBTransportPayloadSerializer.h index ac9cba9..42765ab 100644 --- a/Swiften/Serializer/PayloadSerializers/JingleIBBTransportPayloadSerializer.h +++ b/Swiften/Serializer/PayloadSerializers/JingleIBBTransportPayloadSerializer.h | |||
| @@ -4,19 +4,24 @@ | |||
| 4 | * See Documentation/Licenses/BSD-simplified.txt for more information. | 4 | * See Documentation/Licenses/BSD-simplified.txt for more information. |
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | /* | ||
| 8 | * Copyright (c) 2015 Isode Limited. | ||
| 9 | * All rights reserved. | ||
| 10 | * See the COPYING file for more information. | ||
| 11 | */ | ||
| 12 | |||
| 7 | 13 | ||
| 8 | #pragma once | 14 | #pragma once |
| 9 | 15 | ||
| 16 | #include <Swiften/Base/API.h> | ||
| 10 | #include <Swiften/Serializer/GenericPayloadSerializer.h> | 17 | #include <Swiften/Serializer/GenericPayloadSerializer.h> |
| 11 | #include <Swiften/Elements/JingleIBBTransportPayload.h> | 18 | #include <Swiften/Elements/JingleIBBTransportPayload.h> |
| 12 | 19 | ||
| 13 | |||
| 14 | |||
| 15 | namespace Swift { | 20 | namespace Swift { |
| 16 | class PayloadSerializerCollection; | 21 | class PayloadSerializerCollection; |
| 17 | class XMLElement; | 22 | class XMLElement; |
| 18 | 23 | ||
| 19 | class JingleIBBTransportPayloadSerializer : public GenericPayloadSerializer<JingleIBBTransportPayload> { | 24 | class SWIFTEN_API JingleIBBTransportPayloadSerializer : public GenericPayloadSerializer<JingleIBBTransportPayload> { |
| 20 | public: | 25 | public: |
| 21 | JingleIBBTransportPayloadSerializer(); | 26 | JingleIBBTransportPayloadSerializer(); |
| 22 | 27 | ||
diff --git a/Swiften/Serializer/PayloadSerializers/JingleS5BTransportPayloadSerializer.h b/Swiften/Serializer/PayloadSerializers/JingleS5BTransportPayloadSerializer.h index 210688d..d857129 100644 --- a/Swiften/Serializer/PayloadSerializers/JingleS5BTransportPayloadSerializer.h +++ b/Swiften/Serializer/PayloadSerializers/JingleS5BTransportPayloadSerializer.h | |||
| @@ -4,9 +4,16 @@ | |||
| 4 | * See Documentation/Licenses/BSD-simplified.txt for more information. | 4 | * See Documentation/Licenses/BSD-simplified.txt for more information. |
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | /* | ||
| 8 | * Copyright (c) 2015 Isode Limited. | ||
| 9 | * All rights reserved. | ||
| 10 | * See the COPYING file for more information. | ||
| 11 | */ | ||
| 12 | |||
| 7 | 13 | ||
| 8 | #pragma once | 14 | #pragma once |
| 9 | 15 | ||
| 16 | #include <Swiften/Base/API.h> | ||
| 10 | #include <Swiften/Serializer/GenericPayloadSerializer.h> | 17 | #include <Swiften/Serializer/GenericPayloadSerializer.h> |
| 11 | #include <Swiften/Elements/JingleS5BTransportPayload.h> | 18 | #include <Swiften/Elements/JingleS5BTransportPayload.h> |
| 12 | 19 | ||
| @@ -14,7 +21,7 @@ namespace Swift { | |||
| 14 | class PayloadSerializerCollection; | 21 | class PayloadSerializerCollection; |
| 15 | class XMLElement; | 22 | class XMLElement; |
| 16 | 23 | ||
| 17 | class JingleS5BTransportPayloadSerializer : public GenericPayloadSerializer<JingleS5BTransportPayload> { | 24 | class SWIFTEN_API JingleS5BTransportPayloadSerializer : public GenericPayloadSerializer<JingleS5BTransportPayload> { |
| 18 | public: | 25 | public: |
| 19 | JingleS5BTransportPayloadSerializer(); | 26 | JingleS5BTransportPayloadSerializer(); |
| 20 | 27 | ||
diff --git a/Swiften/Serializer/PayloadSerializers/LastSerializer.h b/Swiften/Serializer/PayloadSerializers/LastSerializer.h index dd9ff9b..ac0fb8f 100644 --- a/Swiften/Serializer/PayloadSerializers/LastSerializer.h +++ b/Swiften/Serializer/PayloadSerializers/LastSerializer.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2011 Isode Limited. | 2 | * Copyright (c) 2011-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| @@ -8,11 +8,12 @@ | |||
| 8 | 8 | ||
| 9 | #include <boost/lexical_cast.hpp> | 9 | #include <boost/lexical_cast.hpp> |
| 10 | 10 | ||
| 11 | #include <Swiften/Base/API.h> | ||
| 11 | #include <Swiften/Serializer/GenericPayloadSerializer.h> | 12 | #include <Swiften/Serializer/GenericPayloadSerializer.h> |
| 12 | #include <Swiften/Elements/Last.h> | 13 | #include <Swiften/Elements/Last.h> |
| 13 | 14 | ||
| 14 | namespace Swift { | 15 | namespace Swift { |
| 15 | class LastSerializer : public GenericPayloadSerializer<Last> { | 16 | class SWIFTEN_API LastSerializer : public GenericPayloadSerializer<Last> { |
| 16 | public: | 17 | public: |
| 17 | LastSerializer() : GenericPayloadSerializer<Last>() {} | 18 | LastSerializer() : GenericPayloadSerializer<Last>() {} |
| 18 | 19 | ||
diff --git a/Swiften/Serializer/PayloadSerializers/MUCDestroyPayloadSerializer.h b/Swiften/Serializer/PayloadSerializers/MUCDestroyPayloadSerializer.h index 689987c..dcbf68c 100644 --- a/Swiften/Serializer/PayloadSerializers/MUCDestroyPayloadSerializer.h +++ b/Swiften/Serializer/PayloadSerializers/MUCDestroyPayloadSerializer.h | |||
| @@ -1,17 +1,18 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2011 Isode Limited. | 2 | * Copyright (c) 2011-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #pragma once | 7 | #pragma once |
| 8 | 8 | ||
| 9 | #include <Swiften/Base/API.h> | ||
| 9 | #include <Swiften/Serializer/GenericPayloadSerializer.h> | 10 | #include <Swiften/Serializer/GenericPayloadSerializer.h> |
| 10 | #include <Swiften/Elements/MUCDestroyPayload.h> | 11 | #include <Swiften/Elements/MUCDestroyPayload.h> |
| 11 | 12 | ||
| 12 | namespace Swift { | 13 | namespace Swift { |
| 13 | class PayloadSerializerCollection; | 14 | class PayloadSerializerCollection; |
| 14 | class MUCDestroyPayloadSerializer : public GenericPayloadSerializer<MUCDestroyPayload> { | 15 | class SWIFTEN_API MUCDestroyPayloadSerializer : public GenericPayloadSerializer<MUCDestroyPayload> { |
| 15 | public: | 16 | public: |
| 16 | MUCDestroyPayloadSerializer(); | 17 | MUCDestroyPayloadSerializer(); |
| 17 | virtual std::string serializePayload(boost::shared_ptr<MUCDestroyPayload> version) const; | 18 | virtual std::string serializePayload(boost::shared_ptr<MUCDestroyPayload> version) const; |
diff --git a/Swiften/Serializer/PayloadSerializers/MUCInvitationPayloadSerializer.h b/Swiften/Serializer/PayloadSerializers/MUCInvitationPayloadSerializer.h index 1f6e396..f395a4e 100644 --- a/Swiften/Serializer/PayloadSerializers/MUCInvitationPayloadSerializer.h +++ b/Swiften/Serializer/PayloadSerializers/MUCInvitationPayloadSerializer.h | |||
| @@ -1,16 +1,17 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2011 Isode Limited. | 2 | * Copyright (c) 2011-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #pragma once | 7 | #pragma once |
| 8 | 8 | ||
| 9 | #include <Swiften/Base/API.h> | ||
| 9 | #include <Swiften/Serializer/GenericPayloadSerializer.h> | 10 | #include <Swiften/Serializer/GenericPayloadSerializer.h> |
| 10 | #include <Swiften/Elements/MUCInvitationPayload.h> | 11 | #include <Swiften/Elements/MUCInvitationPayload.h> |
| 11 | 12 | ||
| 12 | namespace Swift { | 13 | namespace Swift { |
| 13 | class MUCInvitationPayloadSerializer : public GenericPayloadSerializer<MUCInvitationPayload> { | 14 | class SWIFTEN_API MUCInvitationPayloadSerializer : public GenericPayloadSerializer<MUCInvitationPayload> { |
| 14 | public: | 15 | public: |
| 15 | MUCInvitationPayloadSerializer(); | 16 | MUCInvitationPayloadSerializer(); |
| 16 | 17 | ||
diff --git a/Swiften/Serializer/PayloadSerializers/MUCOwnerPayloadSerializer.h b/Swiften/Serializer/PayloadSerializers/MUCOwnerPayloadSerializer.h index 7c35df1..ff55b78 100644 --- a/Swiften/Serializer/PayloadSerializers/MUCOwnerPayloadSerializer.h +++ b/Swiften/Serializer/PayloadSerializers/MUCOwnerPayloadSerializer.h | |||
| @@ -1,17 +1,18 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #pragma once | 7 | #pragma once |
| 8 | 8 | ||
| 9 | #include <Swiften/Base/API.h> | ||
| 9 | #include <Swiften/Serializer/GenericPayloadSerializer.h> | 10 | #include <Swiften/Serializer/GenericPayloadSerializer.h> |
| 10 | #include <Swiften/Elements/MUCOwnerPayload.h> | 11 | #include <Swiften/Elements/MUCOwnerPayload.h> |
| 11 | 12 | ||
| 12 | namespace Swift { | 13 | namespace Swift { |
| 13 | class PayloadSerializerCollection; | 14 | class PayloadSerializerCollection; |
| 14 | class MUCOwnerPayloadSerializer : public GenericPayloadSerializer<MUCOwnerPayload> { | 15 | class SWIFTEN_API MUCOwnerPayloadSerializer : public GenericPayloadSerializer<MUCOwnerPayload> { |
| 15 | public: | 16 | public: |
| 16 | MUCOwnerPayloadSerializer(PayloadSerializerCollection* serializers); | 17 | MUCOwnerPayloadSerializer(PayloadSerializerCollection* serializers); |
| 17 | virtual std::string serializePayload(boost::shared_ptr<MUCOwnerPayload> version) const; | 18 | virtual std::string serializePayload(boost::shared_ptr<MUCOwnerPayload> version) const; |
diff --git a/Swiften/Serializer/PayloadSerializers/MUCPayloadSerializer.h b/Swiften/Serializer/PayloadSerializers/MUCPayloadSerializer.h index 9a97f76..77eba1c 100644 --- a/Swiften/Serializer/PayloadSerializers/MUCPayloadSerializer.h +++ b/Swiften/Serializer/PayloadSerializers/MUCPayloadSerializer.h | |||
| @@ -1,16 +1,17 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #pragma once | 7 | #pragma once |
| 8 | 8 | ||
| 9 | #include <Swiften/Base/API.h> | ||
| 9 | #include <Swiften/Serializer/GenericPayloadSerializer.h> | 10 | #include <Swiften/Serializer/GenericPayloadSerializer.h> |
| 10 | #include <Swiften/Elements/MUCPayload.h> | 11 | #include <Swiften/Elements/MUCPayload.h> |
| 11 | 12 | ||
| 12 | namespace Swift { | 13 | namespace Swift { |
| 13 | class MUCPayloadSerializer : public GenericPayloadSerializer<MUCPayload> { | 14 | class SWIFTEN_API MUCPayloadSerializer : public GenericPayloadSerializer<MUCPayload> { |
| 14 | public: | 15 | public: |
| 15 | MUCPayloadSerializer(); | 16 | MUCPayloadSerializer(); |
| 16 | virtual std::string serializePayload(boost::shared_ptr<MUCPayload> version) const; | 17 | virtual std::string serializePayload(boost::shared_ptr<MUCPayload> version) const; |
diff --git a/Swiften/Serializer/PayloadSerializers/MUCUserPayloadSerializer.h b/Swiften/Serializer/PayloadSerializers/MUCUserPayloadSerializer.h index 98aff53..2d1b1e5 100644 --- a/Swiften/Serializer/PayloadSerializers/MUCUserPayloadSerializer.h +++ b/Swiften/Serializer/PayloadSerializers/MUCUserPayloadSerializer.h | |||
| @@ -1,17 +1,18 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #pragma once | 7 | #pragma once |
| 8 | 8 | ||
| 9 | #include <Swiften/Base/API.h> | ||
| 9 | #include <Swiften/Serializer/GenericPayloadSerializer.h> | 10 | #include <Swiften/Serializer/GenericPayloadSerializer.h> |
| 10 | #include <Swiften/Elements/MUCUserPayload.h> | 11 | #include <Swiften/Elements/MUCUserPayload.h> |
| 11 | 12 | ||
| 12 | namespace Swift { | 13 | namespace Swift { |
| 13 | class PayloadSerializerCollection; | 14 | class PayloadSerializerCollection; |
| 14 | class MUCUserPayloadSerializer : public GenericPayloadSerializer<MUCUserPayload> { | 15 | class SWIFTEN_API MUCUserPayloadSerializer : public GenericPayloadSerializer<MUCUserPayload> { |
| 15 | public: | 16 | public: |
| 16 | MUCUserPayloadSerializer(PayloadSerializerCollection* serializers); | 17 | MUCUserPayloadSerializer(PayloadSerializerCollection* serializers); |
| 17 | 18 | ||
diff --git a/Swiften/Serializer/PayloadSerializers/NicknameSerializer.h b/Swiften/Serializer/PayloadSerializers/NicknameSerializer.h index a260a7b..f1a6c9c 100644 --- a/Swiften/Serializer/PayloadSerializers/NicknameSerializer.h +++ b/Swiften/Serializer/PayloadSerializers/NicknameSerializer.h | |||
| @@ -1,16 +1,17 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #pragma once | 7 | #pragma once |
| 8 | 8 | ||
| 9 | #include <Swiften/Base/API.h> | ||
| 9 | #include <Swiften/Serializer/GenericPayloadSerializer.h> | 10 | #include <Swiften/Serializer/GenericPayloadSerializer.h> |
| 10 | #include <Swiften/Elements/Nickname.h> | 11 | #include <Swiften/Elements/Nickname.h> |
| 11 | 12 | ||
| 12 | namespace Swift { | 13 | namespace Swift { |
| 13 | class NicknameSerializer : public GenericPayloadSerializer<Nickname> { | 14 | class SWIFTEN_API NicknameSerializer : public GenericPayloadSerializer<Nickname> { |
| 14 | public: | 15 | public: |
| 15 | NicknameSerializer(); | 16 | NicknameSerializer(); |
| 16 | 17 | ||
diff --git a/Swiften/Serializer/PayloadSerializers/PrioritySerializer.h b/Swiften/Serializer/PayloadSerializers/PrioritySerializer.h index d24a2cc..bda5b2d 100644 --- a/Swiften/Serializer/PayloadSerializers/PrioritySerializer.h +++ b/Swiften/Serializer/PayloadSerializers/PrioritySerializer.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| @@ -8,11 +8,12 @@ | |||
| 8 | 8 | ||
| 9 | #include <boost/lexical_cast.hpp> | 9 | #include <boost/lexical_cast.hpp> |
| 10 | 10 | ||
| 11 | #include <Swiften/Base/API.h> | ||
| 11 | #include <Swiften/Serializer/GenericPayloadSerializer.h> | 12 | #include <Swiften/Serializer/GenericPayloadSerializer.h> |
| 12 | #include <Swiften/Elements/Priority.h> | 13 | #include <Swiften/Elements/Priority.h> |
| 13 | 14 | ||
| 14 | namespace Swift { | 15 | namespace Swift { |
| 15 | class PrioritySerializer : public GenericPayloadSerializer<Priority> { | 16 | class SWIFTEN_API PrioritySerializer : public GenericPayloadSerializer<Priority> { |
| 16 | public: | 17 | public: |
| 17 | PrioritySerializer() : GenericPayloadSerializer<Priority>() {} | 18 | PrioritySerializer() : GenericPayloadSerializer<Priority>() {} |
| 18 | 19 | ||
diff --git a/Swiften/Serializer/PayloadSerializers/PrivateStorageSerializer.h b/Swiften/Serializer/PayloadSerializers/PrivateStorageSerializer.h index 4b8ecaa..b11b60b 100644 --- a/Swiften/Serializer/PayloadSerializers/PrivateStorageSerializer.h +++ b/Swiften/Serializer/PayloadSerializers/PrivateStorageSerializer.h | |||
| @@ -1,18 +1,19 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #pragma once | 7 | #pragma once |
| 8 | 8 | ||
| 9 | #include <Swiften/Base/API.h> | ||
| 9 | #include <Swiften/Serializer/GenericPayloadSerializer.h> | 10 | #include <Swiften/Serializer/GenericPayloadSerializer.h> |
| 10 | #include <Swiften/Elements/PrivateStorage.h> | 11 | #include <Swiften/Elements/PrivateStorage.h> |
| 11 | 12 | ||
| 12 | namespace Swift { | 13 | namespace Swift { |
| 13 | class PayloadSerializerCollection; | 14 | class PayloadSerializerCollection; |
| 14 | 15 | ||
| 15 | class PrivateStorageSerializer : public GenericPayloadSerializer<PrivateStorage> { | 16 | class SWIFTEN_API PrivateStorageSerializer : public GenericPayloadSerializer<PrivateStorage> { |
| 16 | public: | 17 | public: |
| 17 | PrivateStorageSerializer(PayloadSerializerCollection* serializers); | 18 | PrivateStorageSerializer(PayloadSerializerCollection* serializers); |
| 18 | 19 | ||
diff --git a/Swiften/Serializer/PayloadSerializers/RawXMLPayloadSerializer.h b/Swiften/Serializer/PayloadSerializers/RawXMLPayloadSerializer.h index da161cc..08314a5 100644 --- a/Swiften/Serializer/PayloadSerializers/RawXMLPayloadSerializer.h +++ b/Swiften/Serializer/PayloadSerializers/RawXMLPayloadSerializer.h | |||
| @@ -1,16 +1,17 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #pragma once | 7 | #pragma once |
| 8 | 8 | ||
| 9 | #include <Swiften/Base/API.h> | ||
| 9 | #include <Swiften/Serializer/GenericPayloadSerializer.h> | 10 | #include <Swiften/Serializer/GenericPayloadSerializer.h> |
| 10 | #include <Swiften/Elements/RawXMLPayload.h> | 11 | #include <Swiften/Elements/RawXMLPayload.h> |
| 11 | 12 | ||
| 12 | namespace Swift { | 13 | namespace Swift { |
| 13 | class RawXMLPayloadSerializer : public GenericPayloadSerializer<RawXMLPayload> { | 14 | class SWIFTEN_API RawXMLPayloadSerializer : public GenericPayloadSerializer<RawXMLPayload> { |
| 14 | public: | 15 | public: |
| 15 | RawXMLPayloadSerializer() : GenericPayloadSerializer<RawXMLPayload>() {} | 16 | RawXMLPayloadSerializer() : GenericPayloadSerializer<RawXMLPayload>() {} |
| 16 | 17 | ||
diff --git a/Swiften/Serializer/PayloadSerializers/ReplaceSerializer.h b/Swiften/Serializer/PayloadSerializers/ReplaceSerializer.h index 4942ce3..9528964 100644 --- a/Swiften/Serializer/PayloadSerializers/ReplaceSerializer.h +++ b/Swiften/Serializer/PayloadSerializers/ReplaceSerializer.h | |||
| @@ -5,19 +5,20 @@ | |||
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | /* | 7 | /* |
| 8 | * Copyright (c) 2012 Isode Limited. | 8 | * Copyright (c) 2012-2015 Isode Limited. |
| 9 | * All rights reserved. | 9 | * All rights reserved. |
| 10 | * See the COPYING file for more information. | 10 | * See the COPYING file for more information. |
| 11 | */ | 11 | */ |
| 12 | 12 | ||
| 13 | #pragma once | 13 | #pragma once |
| 14 | 14 | ||
| 15 | #include <Swiften/Base/API.h> | ||
| 15 | #include <Swiften/Serializer/GenericPayloadSerializer.h> | 16 | #include <Swiften/Serializer/GenericPayloadSerializer.h> |
| 16 | #include <Swiften/Serializer/XML/XMLTextNode.h> | 17 | #include <Swiften/Serializer/XML/XMLTextNode.h> |
| 17 | #include <Swiften/Elements/Replace.h> | 18 | #include <Swiften/Elements/Replace.h> |
| 18 | 19 | ||
| 19 | namespace Swift { | 20 | namespace Swift { |
| 20 | class ReplaceSerializer : public GenericPayloadSerializer<Replace> { | 21 | class SWIFTEN_API ReplaceSerializer : public GenericPayloadSerializer<Replace> { |
| 21 | public: | 22 | public: |
| 22 | ReplaceSerializer() : GenericPayloadSerializer<Replace>() {} | 23 | ReplaceSerializer() : GenericPayloadSerializer<Replace>() {} |
| 23 | 24 | ||
diff --git a/Swiften/Serializer/PayloadSerializers/S5BProxyRequestSerializer.h b/Swiften/Serializer/PayloadSerializers/S5BProxyRequestSerializer.h index e7cdbe8..062e7c6 100644 --- a/Swiften/Serializer/PayloadSerializers/S5BProxyRequestSerializer.h +++ b/Swiften/Serializer/PayloadSerializers/S5BProxyRequestSerializer.h | |||
| @@ -15,6 +15,7 @@ | |||
| 15 | #include <boost/lexical_cast.hpp> | 15 | #include <boost/lexical_cast.hpp> |
| 16 | #include <boost/smart_ptr/make_shared.hpp> | 16 | #include <boost/smart_ptr/make_shared.hpp> |
| 17 | 17 | ||
| 18 | #include <Swiften/Base/API.h> | ||
| 18 | #include <Swiften/Elements/S5BProxyRequest.h> | 19 | #include <Swiften/Elements/S5BProxyRequest.h> |
| 19 | #include <Swiften/Serializer/GenericPayloadSerializer.h> | 20 | #include <Swiften/Serializer/GenericPayloadSerializer.h> |
| 20 | #include <Swiften/Serializer/XML/XMLElement.h> | 21 | #include <Swiften/Serializer/XML/XMLElement.h> |
| @@ -22,7 +23,7 @@ | |||
| 22 | namespace Swift { | 23 | namespace Swift { |
| 23 | class PayloadSerializerCollection; | 24 | class PayloadSerializerCollection; |
| 24 | 25 | ||
| 25 | class S5BProxyRequestSerializer : public GenericPayloadSerializer<S5BProxyRequest> { | 26 | class SWIFTEN_API S5BProxyRequestSerializer : public GenericPayloadSerializer<S5BProxyRequest> { |
| 26 | public: | 27 | public: |
| 27 | virtual std::string serializePayload(boost::shared_ptr<S5BProxyRequest> s5bProxyRequest) const { | 28 | virtual std::string serializePayload(boost::shared_ptr<S5BProxyRequest> s5bProxyRequest) const { |
| 28 | XMLElement queryElement("query", "http://jabber.org/protocol/bytestreams"); | 29 | XMLElement queryElement("query", "http://jabber.org/protocol/bytestreams"); |
diff --git a/Swiften/Serializer/PayloadSerializers/StartSessionSerializer.h b/Swiften/Serializer/PayloadSerializers/StartSessionSerializer.h index 064bc69..d629db2 100644 --- a/Swiften/Serializer/PayloadSerializers/StartSessionSerializer.h +++ b/Swiften/Serializer/PayloadSerializers/StartSessionSerializer.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| @@ -8,11 +8,12 @@ | |||
| 8 | 8 | ||
| 9 | #include <boost/lexical_cast.hpp> | 9 | #include <boost/lexical_cast.hpp> |
| 10 | 10 | ||
| 11 | #include <Swiften/Base/API.h> | ||
| 11 | #include <Swiften/Serializer/GenericPayloadSerializer.h> | 12 | #include <Swiften/Serializer/GenericPayloadSerializer.h> |
| 12 | #include <Swiften/Elements/StartSession.h> | 13 | #include <Swiften/Elements/StartSession.h> |
| 13 | 14 | ||
| 14 | namespace Swift { | 15 | namespace Swift { |
| 15 | class StartSessionSerializer : public GenericPayloadSerializer<StartSession> { | 16 | class SWIFTEN_API StartSessionSerializer : public GenericPayloadSerializer<StartSession> { |
| 16 | public: | 17 | public: |
| 17 | StartSessionSerializer() : GenericPayloadSerializer<StartSession>() {} | 18 | StartSessionSerializer() : GenericPayloadSerializer<StartSession>() {} |
| 18 | 19 | ||
diff --git a/Swiften/Serializer/PayloadSerializers/StatusSerializer.h b/Swiften/Serializer/PayloadSerializers/StatusSerializer.h index 3268d09..92c51d2 100644 --- a/Swiften/Serializer/PayloadSerializers/StatusSerializer.h +++ b/Swiften/Serializer/PayloadSerializers/StatusSerializer.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| @@ -8,13 +8,14 @@ | |||
| 8 | 8 | ||
| 9 | #include <boost/smart_ptr/make_shared.hpp> | 9 | #include <boost/smart_ptr/make_shared.hpp> |
| 10 | 10 | ||
| 11 | #include <Swiften/Base/API.h> | ||
| 11 | #include <Swiften/Serializer/GenericPayloadSerializer.h> | 12 | #include <Swiften/Serializer/GenericPayloadSerializer.h> |
| 12 | #include <Swiften/Serializer/XML/XMLElement.h> | 13 | #include <Swiften/Serializer/XML/XMLElement.h> |
| 13 | #include <Swiften/Serializer/XML/XMLTextNode.h> | 14 | #include <Swiften/Serializer/XML/XMLTextNode.h> |
| 14 | #include <Swiften/Elements/Status.h> | 15 | #include <Swiften/Elements/Status.h> |
| 15 | 16 | ||
| 16 | namespace Swift { | 17 | namespace Swift { |
| 17 | class StatusSerializer : public GenericPayloadSerializer<Status> { | 18 | class SWIFTEN_API StatusSerializer : public GenericPayloadSerializer<Status> { |
| 18 | public: | 19 | public: |
| 19 | StatusSerializer() : GenericPayloadSerializer<Status>() {} | 20 | StatusSerializer() : GenericPayloadSerializer<Status>() {} |
| 20 | 21 | ||
diff --git a/Swiften/Serializer/PayloadSerializers/StatusShowSerializer.h b/Swiften/Serializer/PayloadSerializers/StatusShowSerializer.h index 696a3fe..33273ba 100644 --- a/Swiften/Serializer/PayloadSerializers/StatusShowSerializer.h +++ b/Swiften/Serializer/PayloadSerializers/StatusShowSerializer.h | |||
| @@ -1,16 +1,17 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #pragma once | 7 | #pragma once |
| 8 | 8 | ||
| 9 | #include <Swiften/Base/API.h> | ||
| 9 | #include <Swiften/Serializer/GenericPayloadSerializer.h> | 10 | #include <Swiften/Serializer/GenericPayloadSerializer.h> |
| 10 | #include <Swiften/Elements/StatusShow.h> | 11 | #include <Swiften/Elements/StatusShow.h> |
| 11 | 12 | ||
| 12 | namespace Swift { | 13 | namespace Swift { |
| 13 | class StatusShowSerializer : public GenericPayloadSerializer<StatusShow> { | 14 | class SWIFTEN_API StatusShowSerializer : public GenericPayloadSerializer<StatusShow> { |
| 14 | public: | 15 | public: |
| 15 | StatusShowSerializer() : GenericPayloadSerializer<StatusShow>() {} | 16 | StatusShowSerializer() : GenericPayloadSerializer<StatusShow>() {} |
| 16 | 17 | ||
diff --git a/Swiften/Serializer/PayloadSerializers/StorageSerializer.h b/Swiften/Serializer/PayloadSerializers/StorageSerializer.h index a829453..68deff8 100644 --- a/Swiften/Serializer/PayloadSerializers/StorageSerializer.h +++ b/Swiften/Serializer/PayloadSerializers/StorageSerializer.h | |||
| @@ -1,16 +1,17 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #pragma once | 7 | #pragma once |
| 8 | 8 | ||
| 9 | #include <Swiften/Base/API.h> | ||
| 9 | #include <Swiften/Serializer/GenericPayloadSerializer.h> | 10 | #include <Swiften/Serializer/GenericPayloadSerializer.h> |
| 10 | #include <Swiften/Elements/Storage.h> | 11 | #include <Swiften/Elements/Storage.h> |
| 11 | 12 | ||
| 12 | namespace Swift { | 13 | namespace Swift { |
| 13 | class StorageSerializer : public GenericPayloadSerializer<Storage> { | 14 | class SWIFTEN_API StorageSerializer : public GenericPayloadSerializer<Storage> { |
| 14 | public: | 15 | public: |
| 15 | StorageSerializer(); | 16 | StorageSerializer(); |
| 16 | 17 | ||
diff --git a/Swiften/Serializer/PayloadSerializers/SubjectSerializer.h b/Swiften/Serializer/PayloadSerializers/SubjectSerializer.h index f6e7fb2..580164b 100644 --- a/Swiften/Serializer/PayloadSerializers/SubjectSerializer.h +++ b/Swiften/Serializer/PayloadSerializers/SubjectSerializer.h | |||
| @@ -1,17 +1,18 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #pragma once | 7 | #pragma once |
| 8 | 8 | ||
| 9 | #include <Swiften/Base/API.h> | ||
| 9 | #include <Swiften/Serializer/GenericPayloadSerializer.h> | 10 | #include <Swiften/Serializer/GenericPayloadSerializer.h> |
| 10 | #include <Swiften/Serializer/XML/XMLTextNode.h> | 11 | #include <Swiften/Serializer/XML/XMLTextNode.h> |
| 11 | #include <Swiften/Elements/Subject.h> | 12 | #include <Swiften/Elements/Subject.h> |
| 12 | 13 | ||
| 13 | namespace Swift { | 14 | namespace Swift { |
| 14 | class SubjectSerializer : public GenericPayloadSerializer<Subject> { | 15 | class SWIFTEN_API SubjectSerializer : public GenericPayloadSerializer<Subject> { |
| 15 | public: | 16 | public: |
| 16 | SubjectSerializer() : GenericPayloadSerializer<Subject>() {} | 17 | SubjectSerializer() : GenericPayloadSerializer<Subject>() {} |
| 17 | 18 | ||
diff --git a/Swiften/Serializer/PayloadSerializers/WhiteboardSerializer.h b/Swiften/Serializer/PayloadSerializers/WhiteboardSerializer.h index 26b76cb..543d95e 100644 --- a/Swiften/Serializer/PayloadSerializers/WhiteboardSerializer.h +++ b/Swiften/Serializer/PayloadSerializers/WhiteboardSerializer.h | |||
| @@ -4,8 +4,15 @@ | |||
| 4 | * See Documentation/Licenses/BSD-simplified.txt for more information. | 4 | * See Documentation/Licenses/BSD-simplified.txt for more information. |
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | /* | ||
| 8 | * Copyright (c) 2015 Isode Limited. | ||
| 9 | * All rights reserved. | ||
| 10 | * See the COPYING file for more information. | ||
| 11 | */ | ||
| 12 | |||
| 7 | #pragma once | 13 | #pragma once |
| 8 | 14 | ||
| 15 | #include <Swiften/Base/API.h> | ||
| 9 | #include <Swiften/Elements/WhiteboardPayload.h> | 16 | #include <Swiften/Elements/WhiteboardPayload.h> |
| 10 | #include <Swiften/Elements/Whiteboard/WhiteboardLineElement.h> | 17 | #include <Swiften/Elements/Whiteboard/WhiteboardLineElement.h> |
| 11 | #include <Swiften/Elements/Whiteboard/WhiteboardFreehandPathElement.h> | 18 | #include <Swiften/Elements/Whiteboard/WhiteboardFreehandPathElement.h> |
| @@ -18,7 +25,7 @@ | |||
| 18 | #include <Swiften/Serializer/XML/XMLElement.h> | 25 | #include <Swiften/Serializer/XML/XMLElement.h> |
| 19 | 26 | ||
| 20 | namespace Swift { | 27 | namespace Swift { |
| 21 | class WhiteboardElementSerializingVisitor : public WhiteboardElementVisitor { | 28 | class SWIFTEN_API WhiteboardElementSerializingVisitor : public WhiteboardElementVisitor { |
| 22 | public: | 29 | public: |
| 23 | void visit(WhiteboardLineElement& line); | 30 | void visit(WhiteboardLineElement& line); |
| 24 | void visit(WhiteboardFreehandPathElement& path); | 31 | void visit(WhiteboardFreehandPathElement& path); |
| @@ -34,7 +41,7 @@ namespace Swift { | |||
| 34 | XMLElement::ref element; | 41 | XMLElement::ref element; |
| 35 | }; | 42 | }; |
| 36 | 43 | ||
| 37 | class WhiteboardSerializer : public GenericPayloadSerializer<WhiteboardPayload> { | 44 | class SWIFTEN_API WhiteboardSerializer : public GenericPayloadSerializer<WhiteboardPayload> { |
| 38 | public: | 45 | public: |
| 39 | std::string serializePayload(boost::shared_ptr<WhiteboardPayload> payload) const; | 46 | std::string serializePayload(boost::shared_ptr<WhiteboardPayload> payload) const; |
| 40 | 47 | ||
diff --git a/Swiften/Serializer/PresenceSerializer.h b/Swiften/Serializer/PresenceSerializer.h index 0386bb7..d459fde 100644 --- a/Swiften/Serializer/PresenceSerializer.h +++ b/Swiften/Serializer/PresenceSerializer.h | |||
| @@ -1,18 +1,19 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010-2014 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #pragma once | 7 | #pragma once |
| 8 | 8 | ||
| 9 | #include <Swiften/Base/API.h> | ||
| 9 | #include <Swiften/Serializer/GenericStanzaSerializer.h> | 10 | #include <Swiften/Serializer/GenericStanzaSerializer.h> |
| 10 | #include <Swiften/Elements/Presence.h> | 11 | #include <Swiften/Elements/Presence.h> |
| 11 | 12 | ||
| 12 | #include <boost/optional.hpp> | 13 | #include <boost/optional.hpp> |
| 13 | 14 | ||
| 14 | namespace Swift { | 15 | namespace Swift { |
| 15 | class PresenceSerializer : public GenericStanzaSerializer<Presence> { | 16 | class SWIFTEN_API PresenceSerializer : public GenericStanzaSerializer<Presence> { |
| 16 | public: | 17 | public: |
| 17 | PresenceSerializer(PayloadSerializerCollection* payloadSerializers, const boost::optional<std::string>& explicitNS = boost::optional<std::string>()); | 18 | PresenceSerializer(PayloadSerializerCollection* payloadSerializers, const boost::optional<std::string>& explicitNS = boost::optional<std::string>()); |
| 18 | ~PresenceSerializer() {} | 19 | ~PresenceSerializer() {} |
diff --git a/Swiften/Serializer/StanzaAckRequestSerializer.h b/Swiften/Serializer/StanzaAckRequestSerializer.h index 60fb8ed..e8517b6 100644 --- a/Swiften/Serializer/StanzaAckRequestSerializer.h +++ b/Swiften/Serializer/StanzaAckRequestSerializer.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010-2014 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| @@ -8,12 +8,13 @@ | |||
| 8 | 8 | ||
| 9 | #include <boost/shared_ptr.hpp> | 9 | #include <boost/shared_ptr.hpp> |
| 10 | 10 | ||
| 11 | #include <Swiften/Base/API.h> | ||
| 11 | #include <Swiften/Elements/StanzaAckRequest.h> | 12 | #include <Swiften/Elements/StanzaAckRequest.h> |
| 12 | #include <Swiften/Serializer/GenericElementSerializer.h> | 13 | #include <Swiften/Serializer/GenericElementSerializer.h> |
| 13 | #include <Swiften/Serializer/XML/XMLElement.h> | 14 | #include <Swiften/Serializer/XML/XMLElement.h> |
| 14 | 15 | ||
| 15 | namespace Swift { | 16 | namespace Swift { |
| 16 | class StanzaAckRequestSerializer : public GenericElementSerializer<StanzaAckRequest> { | 17 | class SWIFTEN_API StanzaAckRequestSerializer : public GenericElementSerializer<StanzaAckRequest> { |
| 17 | public: | 18 | public: |
| 18 | StanzaAckRequestSerializer() : GenericElementSerializer<StanzaAckRequest>() { | 19 | StanzaAckRequestSerializer() : GenericElementSerializer<StanzaAckRequest>() { |
| 19 | } | 20 | } |
diff --git a/Swiften/Serializer/StanzaAckSerializer.h b/Swiften/Serializer/StanzaAckSerializer.h index a1395ac..38e097b 100644 --- a/Swiften/Serializer/StanzaAckSerializer.h +++ b/Swiften/Serializer/StanzaAckSerializer.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010-2014 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| @@ -9,12 +9,13 @@ | |||
| 9 | #include <boost/shared_ptr.hpp> | 9 | #include <boost/shared_ptr.hpp> |
| 10 | #include <boost/lexical_cast.hpp> | 10 | #include <boost/lexical_cast.hpp> |
| 11 | 11 | ||
| 12 | #include <Swiften/Base/API.h> | ||
| 12 | #include <Swiften/Elements/StanzaAck.h> | 13 | #include <Swiften/Elements/StanzaAck.h> |
| 13 | #include <Swiften/Serializer/GenericElementSerializer.h> | 14 | #include <Swiften/Serializer/GenericElementSerializer.h> |
| 14 | #include <Swiften/Serializer/XML/XMLElement.h> | 15 | #include <Swiften/Serializer/XML/XMLElement.h> |
| 15 | 16 | ||
| 16 | namespace Swift { | 17 | namespace Swift { |
| 17 | class StanzaAckSerializer : public GenericElementSerializer<StanzaAck> { | 18 | class SWIFTEN_API StanzaAckSerializer : public GenericElementSerializer<StanzaAck> { |
| 18 | public: | 19 | public: |
| 19 | StanzaAckSerializer() : GenericElementSerializer<StanzaAck>() { | 20 | StanzaAckSerializer() : GenericElementSerializer<StanzaAck>() { |
| 20 | } | 21 | } |
diff --git a/Swiften/Serializer/StanzaSerializer.h b/Swiften/Serializer/StanzaSerializer.h index e076c1e..61f9173 100644 --- a/Swiften/Serializer/StanzaSerializer.h +++ b/Swiften/Serializer/StanzaSerializer.h | |||
| @@ -1,11 +1,12 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2013-2014 Isode Limited. | 2 | * Copyright (c) 2013-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #pragma once | 7 | #pragma once |
| 8 | 8 | ||
| 9 | #include <Swiften/Base/API.h> | ||
| 9 | #include <Swiften/Elements/Stanza.h> | 10 | #include <Swiften/Elements/Stanza.h> |
| 10 | #include <Swiften/Serializer/ElementSerializer.h> | 11 | #include <Swiften/Serializer/ElementSerializer.h> |
| 11 | 12 | ||
| @@ -16,7 +17,7 @@ namespace Swift { | |||
| 16 | class PayloadSerializerCollection; | 17 | class PayloadSerializerCollection; |
| 17 | class XMLElement; | 18 | class XMLElement; |
| 18 | 19 | ||
| 19 | class StanzaSerializer : public ElementSerializer { | 20 | class SWIFTEN_API StanzaSerializer : public ElementSerializer { |
| 20 | public: | 21 | public: |
| 21 | StanzaSerializer(const std::string& tag, PayloadSerializerCollection* payloadSerializers, const boost::optional<std::string>& explicitNS = boost::optional<std::string>()); | 22 | StanzaSerializer(const std::string& tag, PayloadSerializerCollection* payloadSerializers, const boost::optional<std::string>& explicitNS = boost::optional<std::string>()); |
| 22 | 23 | ||
diff --git a/Swiften/Serializer/StartTLSFailureSerializer.h b/Swiften/Serializer/StartTLSFailureSerializer.h index 33af02d..b645953 100644 --- a/Swiften/Serializer/StartTLSFailureSerializer.h +++ b/Swiften/Serializer/StartTLSFailureSerializer.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010-2014 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| @@ -8,12 +8,13 @@ | |||
| 8 | 8 | ||
| 9 | #include <boost/shared_ptr.hpp> | 9 | #include <boost/shared_ptr.hpp> |
| 10 | 10 | ||
| 11 | #include <Swiften/Base/API.h> | ||
| 11 | #include <Swiften/Elements/StartTLSFailure.h> | 12 | #include <Swiften/Elements/StartTLSFailure.h> |
| 12 | #include <Swiften/Serializer/GenericElementSerializer.h> | 13 | #include <Swiften/Serializer/GenericElementSerializer.h> |
| 13 | #include <Swiften/Serializer/XML/XMLElement.h> | 14 | #include <Swiften/Serializer/XML/XMLElement.h> |
| 14 | 15 | ||
| 15 | namespace Swift { | 16 | namespace Swift { |
| 16 | class StartTLSFailureSerializer : public GenericElementSerializer<StartTLSFailure> { | 17 | class SWIFTEN_API StartTLSFailureSerializer : public GenericElementSerializer<StartTLSFailure> { |
| 17 | public: | 18 | public: |
| 18 | StartTLSFailureSerializer() : GenericElementSerializer<StartTLSFailure>() { | 19 | StartTLSFailureSerializer() : GenericElementSerializer<StartTLSFailure>() { |
| 19 | } | 20 | } |
diff --git a/Swiften/Serializer/StartTLSRequestSerializer.h b/Swiften/Serializer/StartTLSRequestSerializer.h index 3dbadc4..47dc1e7 100644 --- a/Swiften/Serializer/StartTLSRequestSerializer.h +++ b/Swiften/Serializer/StartTLSRequestSerializer.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010-2014 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| @@ -8,12 +8,13 @@ | |||
| 8 | 8 | ||
| 9 | #include <boost/shared_ptr.hpp> | 9 | #include <boost/shared_ptr.hpp> |
| 10 | 10 | ||
| 11 | #include <Swiften/Base/API.h> | ||
| 11 | #include <Swiften/Elements/StartTLSRequest.h> | 12 | #include <Swiften/Elements/StartTLSRequest.h> |
| 12 | #include <Swiften/Serializer/GenericElementSerializer.h> | 13 | #include <Swiften/Serializer/GenericElementSerializer.h> |
| 13 | #include <Swiften/Serializer/XML/XMLElement.h> | 14 | #include <Swiften/Serializer/XML/XMLElement.h> |
| 14 | 15 | ||
| 15 | namespace Swift { | 16 | namespace Swift { |
| 16 | class StartTLSRequestSerializer : public GenericElementSerializer<StartTLSRequest> { | 17 | class SWIFTEN_API StartTLSRequestSerializer : public GenericElementSerializer<StartTLSRequest> { |
| 17 | public: | 18 | public: |
| 18 | StartTLSRequestSerializer() : GenericElementSerializer<StartTLSRequest>() { | 19 | StartTLSRequestSerializer() : GenericElementSerializer<StartTLSRequest>() { |
| 19 | } | 20 | } |
diff --git a/Swiften/Serializer/StreamErrorSerializer.h b/Swiften/Serializer/StreamErrorSerializer.h index 34463c1..f7a8825 100644 --- a/Swiften/Serializer/StreamErrorSerializer.h +++ b/Swiften/Serializer/StreamErrorSerializer.h | |||
| @@ -1,16 +1,17 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010-2014 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #pragma once | 7 | #pragma once |
| 8 | 8 | ||
| 9 | #include <Swiften/Base/API.h> | ||
| 9 | #include <Swiften/Serializer/GenericElementSerializer.h> | 10 | #include <Swiften/Serializer/GenericElementSerializer.h> |
| 10 | #include <Swiften/Elements/StreamError.h> | 11 | #include <Swiften/Elements/StreamError.h> |
| 11 | 12 | ||
| 12 | namespace Swift { | 13 | namespace Swift { |
| 13 | class StreamErrorSerializer : public GenericElementSerializer<StreamError> { | 14 | class SWIFTEN_API StreamErrorSerializer : public GenericElementSerializer<StreamError> { |
| 14 | public: | 15 | public: |
| 15 | StreamErrorSerializer(); | 16 | StreamErrorSerializer(); |
| 16 | 17 | ||
diff --git a/Swiften/Serializer/StreamManagementEnabledSerializer.h b/Swiften/Serializer/StreamManagementEnabledSerializer.h index c3852c6..fc44739 100644 --- a/Swiften/Serializer/StreamManagementEnabledSerializer.h +++ b/Swiften/Serializer/StreamManagementEnabledSerializer.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010-2014 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| @@ -8,11 +8,12 @@ | |||
| 8 | 8 | ||
| 9 | #include <boost/shared_ptr.hpp> | 9 | #include <boost/shared_ptr.hpp> |
| 10 | 10 | ||
| 11 | #include <Swiften/Base/API.h> | ||
| 11 | #include <Swiften/Elements/StreamManagementEnabled.h> | 12 | #include <Swiften/Elements/StreamManagementEnabled.h> |
| 12 | #include <Swiften/Serializer/GenericElementSerializer.h> | 13 | #include <Swiften/Serializer/GenericElementSerializer.h> |
| 13 | 14 | ||
| 14 | namespace Swift { | 15 | namespace Swift { |
| 15 | class StreamManagementEnabledSerializer : public GenericElementSerializer<StreamManagementEnabled> { | 16 | class SWIFTEN_API StreamManagementEnabledSerializer : public GenericElementSerializer<StreamManagementEnabled> { |
| 16 | public: | 17 | public: |
| 17 | StreamManagementEnabledSerializer(); | 18 | StreamManagementEnabledSerializer(); |
| 18 | 19 | ||
diff --git a/Swiften/Serializer/StreamManagementFailedSerializer.h b/Swiften/Serializer/StreamManagementFailedSerializer.h index 877cf81..4489f97 100644 --- a/Swiften/Serializer/StreamManagementFailedSerializer.h +++ b/Swiften/Serializer/StreamManagementFailedSerializer.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010-2014 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| @@ -8,12 +8,13 @@ | |||
| 8 | 8 | ||
| 9 | #include <boost/shared_ptr.hpp> | 9 | #include <boost/shared_ptr.hpp> |
| 10 | 10 | ||
| 11 | #include <Swiften/Base/API.h> | ||
| 11 | #include <Swiften/Elements/StreamManagementFailed.h> | 12 | #include <Swiften/Elements/StreamManagementFailed.h> |
| 12 | #include <Swiften/Serializer/GenericElementSerializer.h> | 13 | #include <Swiften/Serializer/GenericElementSerializer.h> |
| 13 | #include <Swiften/Serializer/XML/XMLElement.h> | 14 | #include <Swiften/Serializer/XML/XMLElement.h> |
| 14 | 15 | ||
| 15 | namespace Swift { | 16 | namespace Swift { |
| 16 | class StreamManagementFailedSerializer : public GenericElementSerializer<StreamManagementFailed> { | 17 | class SWIFTEN_API StreamManagementFailedSerializer : public GenericElementSerializer<StreamManagementFailed> { |
| 17 | public: | 18 | public: |
| 18 | StreamManagementFailedSerializer() : GenericElementSerializer<StreamManagementFailed>() { | 19 | StreamManagementFailedSerializer() : GenericElementSerializer<StreamManagementFailed>() { |
| 19 | } | 20 | } |
diff --git a/Swiften/Serializer/StreamResumeSerializer.h b/Swiften/Serializer/StreamResumeSerializer.h index 8d78563..f166ac3 100644 --- a/Swiften/Serializer/StreamResumeSerializer.h +++ b/Swiften/Serializer/StreamResumeSerializer.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2011-2014 Isode Limited. | 2 | * Copyright (c) 2011-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| @@ -8,11 +8,12 @@ | |||
| 8 | 8 | ||
| 9 | #include <boost/shared_ptr.hpp> | 9 | #include <boost/shared_ptr.hpp> |
| 10 | 10 | ||
| 11 | #include <Swiften/Base/API.h> | ||
| 11 | #include <Swiften/Elements/StreamResume.h> | 12 | #include <Swiften/Elements/StreamResume.h> |
| 12 | #include <Swiften/Serializer/GenericElementSerializer.h> | 13 | #include <Swiften/Serializer/GenericElementSerializer.h> |
| 13 | 14 | ||
| 14 | namespace Swift { | 15 | namespace Swift { |
| 15 | class StreamResumeSerializer : public GenericElementSerializer<StreamResume> { | 16 | class SWIFTEN_API StreamResumeSerializer : public GenericElementSerializer<StreamResume> { |
| 16 | public: | 17 | public: |
| 17 | StreamResumeSerializer(); | 18 | StreamResumeSerializer(); |
| 18 | 19 | ||
diff --git a/Swiften/Serializer/StreamResumedSerializer.h b/Swiften/Serializer/StreamResumedSerializer.h index dfee94a..a0c316e 100644 --- a/Swiften/Serializer/StreamResumedSerializer.h +++ b/Swiften/Serializer/StreamResumedSerializer.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2011-2014 Isode Limited. | 2 | * Copyright (c) 2011-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| @@ -8,11 +8,12 @@ | |||
| 8 | 8 | ||
| 9 | #include <boost/shared_ptr.hpp> | 9 | #include <boost/shared_ptr.hpp> |
| 10 | 10 | ||
| 11 | #include <Swiften/Base/API.h> | ||
| 11 | #include <Swiften/Elements/StreamResumed.h> | 12 | #include <Swiften/Elements/StreamResumed.h> |
| 12 | #include <Swiften/Serializer/GenericElementSerializer.h> | 13 | #include <Swiften/Serializer/GenericElementSerializer.h> |
| 13 | 14 | ||
| 14 | namespace Swift { | 15 | namespace Swift { |
| 15 | class StreamResumedSerializer : public GenericElementSerializer<StreamResumed> { | 16 | class SWIFTEN_API StreamResumedSerializer : public GenericElementSerializer<StreamResumed> { |
| 16 | public: | 17 | public: |
| 17 | StreamResumedSerializer(); | 18 | StreamResumedSerializer(); |
| 18 | 19 | ||
diff --git a/Swiften/Serializer/TLSProceedSerializer.h b/Swiften/Serializer/TLSProceedSerializer.h index f307d5d..7203042 100644 --- a/Swiften/Serializer/TLSProceedSerializer.h +++ b/Swiften/Serializer/TLSProceedSerializer.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010-2014 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| @@ -8,12 +8,13 @@ | |||
| 8 | 8 | ||
| 9 | #include <boost/shared_ptr.hpp> | 9 | #include <boost/shared_ptr.hpp> |
| 10 | 10 | ||
| 11 | #include <Swiften/Base/API.h> | ||
| 11 | #include <Swiften/Elements/TLSProceed.h> | 12 | #include <Swiften/Elements/TLSProceed.h> |
| 12 | #include <Swiften/Serializer/GenericElementSerializer.h> | 13 | #include <Swiften/Serializer/GenericElementSerializer.h> |
| 13 | #include <Swiften/Serializer/XML/XMLElement.h> | 14 | #include <Swiften/Serializer/XML/XMLElement.h> |
| 14 | 15 | ||
| 15 | namespace Swift { | 16 | namespace Swift { |
| 16 | class TLSProceedSerializer : public GenericElementSerializer<TLSProceed> { | 17 | class SWIFTEN_API TLSProceedSerializer : public GenericElementSerializer<TLSProceed> { |
| 17 | public: | 18 | public: |
| 18 | TLSProceedSerializer() : GenericElementSerializer<TLSProceed>() { | 19 | TLSProceedSerializer() : GenericElementSerializer<TLSProceed>() { |
| 19 | } | 20 | } |
diff --git a/Swiften/Serializer/XML/XMLRawTextNode.h b/Swiften/Serializer/XML/XMLRawTextNode.h index b486ca4..f1e75e6 100644 --- a/Swiften/Serializer/XML/XMLRawTextNode.h +++ b/Swiften/Serializer/XML/XMLRawTextNode.h | |||
| @@ -1,15 +1,16 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #pragma once | 7 | #pragma once |
| 8 | 8 | ||
| 9 | #include <Swiften/Base/API.h> | ||
| 9 | #include <Swiften/Serializer/XML/XMLNode.h> | 10 | #include <Swiften/Serializer/XML/XMLNode.h> |
| 10 | 11 | ||
| 11 | namespace Swift { | 12 | namespace Swift { |
| 12 | class XMLRawTextNode : public XMLNode { | 13 | class SWIFTEN_API XMLRawTextNode : public XMLNode { |
| 13 | public: | 14 | public: |
| 14 | XMLRawTextNode(const std::string& text) : text_(text) { | 15 | XMLRawTextNode(const std::string& text) : text_(text) { |
| 15 | } | 16 | } |
diff --git a/Swiften/Serializer/XML/XMLTextNode.h b/Swiften/Serializer/XML/XMLTextNode.h index 62631f0..65d6459 100644 --- a/Swiften/Serializer/XML/XMLTextNode.h +++ b/Swiften/Serializer/XML/XMLTextNode.h | |||
| @@ -1,16 +1,17 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #pragma once | 7 | #pragma once |
| 8 | 8 | ||
| 9 | #include <Swiften/Base/API.h> | ||
| 9 | #include <Swiften/Serializer/XML/XMLNode.h> | 10 | #include <Swiften/Serializer/XML/XMLNode.h> |
| 10 | #include <Swiften/Base/String.h> | 11 | #include <Swiften/Base/String.h> |
| 11 | 12 | ||
| 12 | namespace Swift { | 13 | namespace Swift { |
| 13 | class XMLTextNode : public XMLNode { | 14 | class SWIFTEN_API XMLTextNode : public XMLNode { |
| 14 | public: | 15 | public: |
| 15 | typedef boost::shared_ptr<XMLTextNode> ref; | 16 | typedef boost::shared_ptr<XMLTextNode> ref; |
| 16 | 17 | ||
Swift