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/PayloadSerializers | |
| 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/PayloadSerializers')
31 files changed, 124 insertions, 59 deletions
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 | ||
Swift