summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2015-06-07 22:34:19 (GMT)
committerTobias Markmann <tm@ayena.de>2015-06-08 09:37:53 (GMT)
commitb6b0695643f932827add43b9de0e09ed74eb6799 (patch)
tree72456efba9fab6fbc6004a98f0a61b7a8167f791
parent3741c9ad5c0cc6f92e4ed913d67b3b530882334e (diff)
downloadswift-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
-rw-r--r--Swiften/Avatars/AvatarMemoryStorage.h5
-rw-r--r--Swiften/Avatars/OfflineAvatarManager.h5
-rw-r--r--Swiften/Base/BoostRandomGenerator.h3
-rw-r--r--Swiften/Base/SafeAllocator.h4
-rw-r--r--Swiften/Base/SafeString.h5
-rw-r--r--Swiften/Client/BlockList.h5
-rw-r--r--Swiften/Client/ClientBlockListManager.h5
-rw-r--r--Swiften/Client/ClientOptions.h3
-rw-r--r--Swiften/Client/ClientSessionStanzaChannel.h5
-rw-r--r--Swiften/Client/MemoryStorages.h5
-rw-r--r--Swiften/Client/StanzaChannel.h5
-rw-r--r--Swiften/Client/XMLBeautifier.h11
-rw-r--r--Swiften/Component/ComponentError.h6
-rw-r--r--Swiften/Component/ComponentSessionStanzaChannel.h5
-rw-r--r--Swiften/Crypto/CommonCryptoCryptoProvider.h5
-rw-r--r--Swiften/Crypto/Hash.h5
-rw-r--r--Swiften/Disco/CapsMemoryStorage.h5
-rw-r--r--Swiften/Disco/CapsProvider.h5
-rw-r--r--Swiften/Disco/GetDiscoInfoRequest.h5
-rw-r--r--Swiften/Disco/GetDiscoItemsRequest.h5
-rw-r--r--Swiften/Elements/AuthChallenge.h5
-rw-r--r--Swiften/Elements/AuthFailure.h5
-rw-r--r--Swiften/Elements/AuthRequest.h5
-rw-r--r--Swiften/Elements/AuthResponse.h5
-rw-r--r--Swiften/Elements/AuthSuccess.h5
-rw-r--r--Swiften/Elements/BlockListPayload.h5
-rw-r--r--Swiften/Elements/BlockPayload.h5
-rw-r--r--Swiften/Elements/Body.h5
-rw-r--r--Swiften/Elements/Bytestreams.h5
-rw-r--r--Swiften/Elements/CapsInfo.h5
-rw-r--r--Swiften/Elements/ChatState.h5
-rw-r--r--Swiften/Elements/Command.h5
-rw-r--r--Swiften/Elements/ComponentHandshake.h5
-rw-r--r--Swiften/Elements/CompressFailure.h6
-rw-r--r--Swiften/Elements/CompressRequest.h5
-rw-r--r--Swiften/Elements/Compressed.h5
-rw-r--r--Swiften/Elements/Delay.h5
-rw-r--r--Swiften/Elements/DeliveryReceipt.h11
-rw-r--r--Swiften/Elements/DeliveryReceiptRequest.h9
-rw-r--r--Swiften/Elements/DiscoItems.h5
-rw-r--r--Swiften/Elements/EnableStreamManagement.h6
-rw-r--r--Swiften/Elements/ErrorPayload.h5
-rw-r--r--Swiften/Elements/FormField.h5
-rw-r--r--Swiften/Elements/HashElement.h5
-rw-r--r--Swiften/Elements/IBB.h5
-rw-r--r--Swiften/Elements/Idle.h9
-rw-r--r--Swiften/Elements/InBandRegistrationPayload.h5
-rw-r--r--Swiften/Elements/JingleContentPayload.h5
-rw-r--r--Swiften/Elements/JingleDescription.h5
-rw-r--r--Swiften/Elements/JingleFileTransferDescription.h5
-rw-r--r--Swiften/Elements/JingleFileTransferFileInfo.h5
-rw-r--r--Swiften/Elements/JingleFileTransferHash.h5
-rw-r--r--Swiften/Elements/JingleIBBTransportPayload.h5
-rw-r--r--Swiften/Elements/JinglePayload.h4
-rw-r--r--Swiften/Elements/JingleS5BTransportPayload.h3
-rw-r--r--Swiften/Elements/JingleTransportPayload.h5
-rw-r--r--Swiften/Elements/Last.h5
-rw-r--r--Swiften/Elements/MUCAdminPayload.h5
-rw-r--r--Swiften/Elements/MUCDestroyPayload.h5
-rw-r--r--Swiften/Elements/MUCInvitationPayload.h5
-rw-r--r--Swiften/Elements/MUCOwnerPayload.h5
-rw-r--r--Swiften/Elements/MUCPayload.h5
-rw-r--r--Swiften/Elements/MUCUserPayload.h5
-rw-r--r--Swiften/Elements/Message.h5
-rw-r--r--Swiften/Elements/Nickname.h5
-rw-r--r--Swiften/Elements/Priority.h5
-rw-r--r--Swiften/Elements/PrivateStorage.h5
-rw-r--r--Swiften/Elements/ProtocolHeader.h6
-rw-r--r--Swiften/Elements/RawXMLPayload.h5
-rw-r--r--Swiften/Elements/Replace.h9
-rw-r--r--Swiften/Elements/ResourceBind.h6
-rw-r--r--Swiften/Elements/RosterItemPayload.h5
-rw-r--r--Swiften/Elements/S5BProxyRequest.h3
-rw-r--r--Swiften/Elements/SearchPayload.h5
-rw-r--r--Swiften/Elements/StanzaAck.h5
-rw-r--r--Swiften/Elements/StanzaAckRequest.h6
-rw-r--r--Swiften/Elements/StartSession.h5
-rw-r--r--Swiften/Elements/StartTLSFailure.h5
-rw-r--r--Swiften/Elements/StartTLSRequest.h5
-rw-r--r--Swiften/Elements/Status.h5
-rw-r--r--Swiften/Elements/Storage.h5
-rw-r--r--Swiften/Elements/StreamError.h5
-rw-r--r--Swiften/Elements/StreamInitiation.h5
-rw-r--r--Swiften/Elements/StreamInitiationFileInfo.h5
-rw-r--r--Swiften/Elements/StreamManagementFailed.h6
-rw-r--r--Swiften/Elements/StreamResume.h5
-rw-r--r--Swiften/Elements/StreamResumed.h5
-rw-r--r--Swiften/Elements/Subject.h5
-rw-r--r--Swiften/Elements/TLSProceed.h5
-rw-r--r--Swiften/Elements/UnblockPayload.h5
-rw-r--r--Swiften/Elements/UnknownElement.h5
-rw-r--r--Swiften/Elements/VCard.h5
-rw-r--r--Swiften/Elements/VCardUpdate.h6
-rw-r--r--Swiften/Elements/Version.h6
-rw-r--r--Swiften/Elements/Whiteboard/WhiteboardDeleteOperation.h10
-rw-r--r--Swiften/Elements/Whiteboard/WhiteboardEllipseElement.h9
-rw-r--r--Swiften/Elements/Whiteboard/WhiteboardFreehandPathElement.h9
-rw-r--r--Swiften/Elements/Whiteboard/WhiteboardInsertOperation.h10
-rw-r--r--Swiften/Elements/Whiteboard/WhiteboardLineElement.h5
-rw-r--r--Swiften/Elements/Whiteboard/WhiteboardPolygonElement.h9
-rw-r--r--Swiften/Elements/Whiteboard/WhiteboardRectElement.h5
-rw-r--r--Swiften/Elements/Whiteboard/WhiteboardTextElement.h9
-rw-r--r--Swiften/Elements/Whiteboard/WhiteboardUpdateOperation.h10
-rw-r--r--Swiften/Elements/WhiteboardPayload.h9
-rw-r--r--Swiften/Entity/GenericPayloadPersister.h5
-rw-r--r--Swiften/FileTransfer/ByteArrayReadBytestream.h5
-rw-r--r--Swiften/FileTransfer/ByteArrayWriteBytestream.h5
-rw-r--r--Swiften/FileTransfer/BytestreamException.h6
-rw-r--r--Swiften/FileTransfer/BytestreamsRequest.h5
-rw-r--r--Swiften/FileTransfer/FileTransfer.h5
-rw-r--r--Swiften/FileTransfer/FileTransferError.h6
-rw-r--r--Swiften/FileTransfer/IBBRequest.h5
-rw-r--r--Swiften/FileTransfer/IncomingFileTransfer.h5
-rw-r--r--Swiften/FileTransfer/IncomingFileTransferManager.h5
-rw-r--r--Swiften/FileTransfer/OutgoingFileTransfer.h5
-rw-r--r--Swiften/FileTransfer/OutgoingFileTransferManager.h4
-rw-r--r--Swiften/FileTransfer/OutgoingSIFileTransfer.h5
-rw-r--r--Swiften/FileTransfer/SOCKS5BytestreamProxyFinder.h3
-rw-r--r--Swiften/FileTransfer/SOCKS5BytestreamServer.h5
-rw-r--r--Swiften/FileTransfer/SOCKS5BytestreamServerManager.h3
-rw-r--r--Swiften/FileTransfer/SOCKS5BytestreamServerPortForwardingUser.h3
-rw-r--r--Swiften/FileTransfer/SOCKS5BytestreamServerResourceUser.h3
-rw-r--r--Swiften/FileTransfer/StreamInitiationRequest.h5
-rw-r--r--Swiften/History/HistoryMessage.h5
-rw-r--r--Swiften/History/HistoryStorage.h5
-rw-r--r--Swiften/Jingle/IncomingJingleSessionHandler.h5
-rw-r--r--Swiften/Jingle/JingleContentID.h5
-rw-r--r--Swiften/Jingle/JingleResponder.h5
-rw-r--r--Swiften/Jingle/JingleSession.h5
-rw-r--r--Swiften/LinkLocal/IncomingLinkLocalSession.h5
-rw-r--r--Swiften/LinkLocal/OutgoingLinkLocalSession.h5
-rw-r--r--Swiften/MUC/MUCBookmark.h5
-rw-r--r--Swiften/Network/BoostConnectionFactory.h5
-rw-r--r--Swiften/Network/BoostConnectionServerFactory.h9
-rw-r--r--Swiften/Network/BoostTimer.h5
-rw-r--r--Swiften/Network/BoostTimerFactory.h5
-rw-r--r--Swiften/Network/CachingDomainNameResolver.h5
-rw-r--r--Swiften/Network/ConnectionServerFactory.h9
-rw-r--r--Swiften/Network/DomainNameResolveError.h5
-rw-r--r--Swiften/Network/EnvironmentProxyProvider.h9
-rw-r--r--Swiften/Network/HTTPConnectProxiedConnectionFactory.h3
-rw-r--r--Swiften/Network/NATPortMapping.h9
-rw-r--r--Swiften/Network/NATTraversalGetPublicIPRequest.h9
-rw-r--r--Swiften/Network/NATTraversalInterface.h5
-rw-r--r--Swiften/Network/NATTraversalRemovePortForwardingRequest.h9
-rw-r--r--Swiften/Network/NATTraverser.h6
-rw-r--r--Swiften/Network/NetworkFactories.h6
-rw-r--r--Swiften/Network/NetworkInterface.h9
-rw-r--r--Swiften/Network/ProxiedConnection.h5
-rw-r--r--Swiften/Network/ProxyProvider.h9
-rw-r--r--Swiften/Network/SOCKS5ProxiedConnection.h9
-rw-r--r--Swiften/Network/SOCKS5ProxiedConnectionFactory.h9
-rw-r--r--Swiften/Network/TLSConnection.h5
-rw-r--r--Swiften/Network/TLSConnectionFactory.h5
-rw-r--r--Swiften/Parser/AuthChallengeParser.h5
-rw-r--r--Swiften/Parser/AuthFailureParser.h5
-rw-r--r--Swiften/Parser/AuthRequestParser.h5
-rw-r--r--Swiften/Parser/AuthResponseParser.h5
-rw-r--r--Swiften/Parser/AuthSuccessParser.h5
-rw-r--r--Swiften/Parser/ComponentHandshakeParser.h5
-rw-r--r--Swiften/Parser/CompressFailureParser.h5
-rw-r--r--Swiften/Parser/CompressParser.h5
-rw-r--r--Swiften/Parser/CompressedParser.h5
-rw-r--r--Swiften/Parser/EnableStreamManagementParser.h5
-rw-r--r--Swiften/Parser/GenericElementParser.h5
-rw-r--r--Swiften/Parser/GenericPayloadParser.h5
-rw-r--r--Swiften/Parser/GenericPayloadParserFactory.h5
-rw-r--r--Swiften/Parser/GenericPayloadParserFactory2.h5
-rw-r--r--Swiften/Parser/GenericPayloadTreeParser.h5
-rw-r--r--Swiften/Parser/GenericStanzaParser.h5
-rw-r--r--Swiften/Parser/PayloadParsers/BlockParser.h5
-rw-r--r--Swiften/Parser/PayloadParsers/BodyParser.h5
-rw-r--r--Swiften/Parser/PayloadParsers/BytestreamsParser.h5
-rw-r--r--Swiften/Parser/PayloadParsers/CapsInfoParser.h5
-rw-r--r--Swiften/Parser/PayloadParsers/ChatStateParser.h5
-rw-r--r--Swiften/Parser/PayloadParsers/ChatStateParserFactory.h5
-rw-r--r--Swiften/Parser/PayloadParsers/CommandParser.h5
-rw-r--r--Swiften/Parser/PayloadParsers/DelayParser.h5
-rw-r--r--Swiften/Parser/PayloadParsers/DeliveryReceiptParser.h9
-rw-r--r--Swiften/Parser/PayloadParsers/DeliveryReceiptParserFactory.h9
-rw-r--r--Swiften/Parser/PayloadParsers/DeliveryReceiptRequestParser.h9
-rw-r--r--Swiften/Parser/PayloadParsers/DeliveryReceiptRequestParserFactory.h9
-rw-r--r--Swiften/Parser/PayloadParsers/DiscoItemsParser.h5
-rw-r--r--Swiften/Parser/PayloadParsers/ErrorParser.h5
-rw-r--r--Swiften/Parser/PayloadParsers/ErrorParserFactory.h5
-rw-r--r--Swiften/Parser/PayloadParsers/FormParser.h3
-rw-r--r--Swiften/Parser/PayloadParsers/FormParserFactory.h5
-rw-r--r--Swiften/Parser/PayloadParsers/IBBParser.h5
-rw-r--r--Swiften/Parser/PayloadParsers/IdleParser.h11
-rw-r--r--Swiften/Parser/PayloadParsers/InBandRegistrationPayloadParser.h5
-rw-r--r--Swiften/Parser/PayloadParsers/JingleContentPayloadParser.h9
-rw-r--r--Swiften/Parser/PayloadParsers/JingleContentPayloadParserFactory.h9
-rw-r--r--Swiften/Parser/PayloadParsers/JingleFileTransferDescriptionParser.h5
-rw-r--r--Swiften/Parser/PayloadParsers/JingleFileTransferDescriptionParserFactory.h5
-rw-r--r--Swiften/Parser/PayloadParsers/JingleFileTransferFileInfoParser.h5
-rw-r--r--Swiften/Parser/PayloadParsers/JingleFileTransferHashParser.h5
-rw-r--r--Swiften/Parser/PayloadParsers/JingleIBBTransportMethodPayloadParser.h9
-rw-r--r--Swiften/Parser/PayloadParsers/JingleParser.h9
-rw-r--r--Swiften/Parser/PayloadParsers/JingleParserFactory.h9
-rw-r--r--Swiften/Parser/PayloadParsers/JingleReasonParser.h9
-rw-r--r--Swiften/Parser/PayloadParsers/JingleS5BTransportMethodPayloadParser.h9
-rw-r--r--Swiften/Parser/PayloadParsers/LastParser.h5
-rw-r--r--Swiften/Parser/PayloadParsers/MUCAdminPayloadParser.h5
-rw-r--r--Swiften/Parser/PayloadParsers/MUCDestroyPayloadParser.h5
-rw-r--r--Swiften/Parser/PayloadParsers/MUCInvitationPayloadParser.h5
-rw-r--r--Swiften/Parser/PayloadParsers/MUCItemParser.h5
-rw-r--r--Swiften/Parser/PayloadParsers/MUCOwnerPayloadParser.h5
-rw-r--r--Swiften/Parser/PayloadParsers/MUCOwnerPayloadParserFactory.h5
-rw-r--r--Swiften/Parser/PayloadParsers/MUCUserPayloadParser.h5
-rw-r--r--Swiften/Parser/PayloadParsers/MUCUserPayloadParserFactory.h5
-rw-r--r--Swiften/Parser/PayloadParsers/NicknameParser.h5
-rw-r--r--Swiften/Parser/PayloadParsers/PriorityParser.h5
-rw-r--r--Swiften/Parser/PayloadParsers/PrivateStorageParser.h5
-rw-r--r--Swiften/Parser/PayloadParsers/PrivateStorageParserFactory.h5
-rw-r--r--Swiften/Parser/PayloadParsers/PubSubErrorParserFactory.h5
-rw-r--r--Swiften/Parser/PayloadParsers/RawXMLPayloadParserFactory.h5
-rw-r--r--Swiften/Parser/PayloadParsers/ReplaceParser.h9
-rw-r--r--Swiften/Parser/PayloadParsers/ResourceBindParser.h5
-rw-r--r--Swiften/Parser/PayloadParsers/RosterItemExchangeParser.h9
-rw-r--r--Swiften/Parser/PayloadParsers/S5BProxyRequestParser.h9
-rw-r--r--Swiften/Parser/PayloadParsers/SearchPayloadParser.h5
-rw-r--r--Swiften/Parser/PayloadParsers/SecurityLabelParser.h5
-rw-r--r--Swiften/Parser/PayloadParsers/SecurityLabelParserFactory.h5
-rw-r--r--Swiften/Parser/PayloadParsers/SecurityLabelsCatalogParser.h5
-rw-r--r--Swiften/Parser/PayloadParsers/SoftwareVersionParser.h5
-rw-r--r--Swiften/Parser/PayloadParsers/StartSessionParser.h5
-rw-r--r--Swiften/Parser/PayloadParsers/StatusParser.h5
-rw-r--r--Swiften/Parser/PayloadParsers/StatusShowParser.h5
-rw-r--r--Swiften/Parser/PayloadParsers/StorageParser.h5
-rw-r--r--Swiften/Parser/PayloadParsers/StreamInitiationFileInfoParser.h9
-rw-r--r--Swiften/Parser/PayloadParsers/StreamInitiationParser.h5
-rw-r--r--Swiften/Parser/PayloadParsers/SubjectParser.h5
-rw-r--r--Swiften/Parser/PayloadParsers/VCardUpdateParser.h5
-rw-r--r--Swiften/Parser/PayloadParsers/WhiteboardParser.h9
-rw-r--r--Swiften/Parser/StanzaAckRequestParser.h5
-rw-r--r--Swiften/Parser/StartTLSFailureParser.h5
-rw-r--r--Swiften/Parser/StartTLSParser.h5
-rw-r--r--Swiften/Parser/StreamErrorParser.h5
-rw-r--r--Swiften/Parser/StreamManagementFailedParser.h5
-rw-r--r--Swiften/Parser/StreamResumeParser.h5
-rw-r--r--Swiften/Parser/StreamResumedParser.h5
-rw-r--r--Swiften/Parser/TLSProceedParser.h5
-rw-r--r--Swiften/Parser/Tree/NullParserElement.h5
-rw-r--r--Swiften/Parser/Tree/TreeReparser.h5
-rw-r--r--Swiften/Parser/UnknownElementParser.h5
-rw-r--r--Swiften/Parser/UnknownPayloadParser.h5
-rw-r--r--Swiften/Presence/PresenceSender.h5
-rw-r--r--Swiften/Queries/GenericRequest.h5
-rw-r--r--Swiften/Queries/PubSubRequest.h5
-rw-r--r--Swiften/Queries/RawRequest.h5
-rw-r--r--Swiften/Queries/Requests/GetInBandRegistrationFormRequest.h6
-rw-r--r--Swiften/Queries/Requests/GetPrivateStorageRequest.h5
-rw-r--r--Swiften/Queries/Requests/GetSecurityLabelsCatalogRequest.h5
-rw-r--r--Swiften/Queries/Requests/GetSoftwareVersionRequest.h5
-rw-r--r--Swiften/Queries/Requests/SetPrivateStorageRequest.h5
-rw-r--r--Swiften/Queries/Requests/SubmitInBandRegistrationFormRequest.h5
-rw-r--r--Swiften/Queries/Responder.h3
-rw-r--r--Swiften/Queries/SetResponder.h5
-rw-r--r--Swiften/Roster/GetRosterRequest.h5
-rw-r--r--Swiften/Roster/RosterPushResponder.h6
-rw-r--r--Swiften/Roster/SetRosterRequest.h5
-rw-r--r--Swiften/Roster/XMPPRoster.h5
-rw-r--r--Swiften/Roster/XMPPRosterItem.h7
-rw-r--r--Swiften/SASL/EXTERNALClientAuthenticator.h5
-rw-r--r--Swiften/Serializer/AuthFailureSerializer.h5
-rw-r--r--Swiften/Serializer/ComponentHandshakeSerializer.h5
-rw-r--r--Swiften/Serializer/CompressFailureSerializer.h5
-rw-r--r--Swiften/Serializer/CompressRequestSerializer.h5
-rw-r--r--Swiften/Serializer/EnableStreamManagementSerializer.h5
-rw-r--r--Swiften/Serializer/GenericElementSerializer.h5
-rw-r--r--Swiften/Serializer/GenericPayloadSerializer.h5
-rw-r--r--Swiften/Serializer/GenericStanzaSerializer.h5
-rw-r--r--Swiften/Serializer/IQSerializer.h5
-rw-r--r--Swiften/Serializer/MessageSerializer.h5
-rw-r--r--Swiften/Serializer/PayloadSerializers/BlockSerializer.h5
-rw-r--r--Swiften/Serializer/PayloadSerializers/BodySerializer.h5
-rw-r--r--Swiften/Serializer/PayloadSerializers/BytestreamsSerializer.h5
-rw-r--r--Swiften/Serializer/PayloadSerializers/ChatStateSerializer.h5
-rw-r--r--Swiften/Serializer/PayloadSerializers/CommandSerializer.h5
-rw-r--r--Swiften/Serializer/PayloadSerializers/DelaySerializer.h5
-rw-r--r--Swiften/Serializer/PayloadSerializers/DiscoItemsSerializer.h5
-rw-r--r--Swiften/Serializer/PayloadSerializers/IBBSerializer.h5
-rw-r--r--Swiften/Serializer/PayloadSerializers/IdleSerializer.h9
-rw-r--r--Swiften/Serializer/PayloadSerializers/JingleContentPayloadSerializer.h9
-rw-r--r--Swiften/Serializer/PayloadSerializers/JingleFileTransferHashSerializer.h9
-rw-r--r--Swiften/Serializer/PayloadSerializers/JingleIBBTransportPayloadSerializer.h11
-rw-r--r--Swiften/Serializer/PayloadSerializers/JingleS5BTransportPayloadSerializer.h9
-rw-r--r--Swiften/Serializer/PayloadSerializers/LastSerializer.h5
-rw-r--r--Swiften/Serializer/PayloadSerializers/MUCDestroyPayloadSerializer.h5
-rw-r--r--Swiften/Serializer/PayloadSerializers/MUCInvitationPayloadSerializer.h7
-rw-r--r--Swiften/Serializer/PayloadSerializers/MUCOwnerPayloadSerializer.h5
-rw-r--r--Swiften/Serializer/PayloadSerializers/MUCPayloadSerializer.h5
-rw-r--r--Swiften/Serializer/PayloadSerializers/MUCUserPayloadSerializer.h5
-rw-r--r--Swiften/Serializer/PayloadSerializers/NicknameSerializer.h5
-rw-r--r--Swiften/Serializer/PayloadSerializers/PrioritySerializer.h5
-rw-r--r--Swiften/Serializer/PayloadSerializers/PrivateStorageSerializer.h5
-rw-r--r--Swiften/Serializer/PayloadSerializers/RawXMLPayloadSerializer.h5
-rw-r--r--Swiften/Serializer/PayloadSerializers/ReplaceSerializer.h5
-rw-r--r--Swiften/Serializer/PayloadSerializers/S5BProxyRequestSerializer.h3
-rw-r--r--Swiften/Serializer/PayloadSerializers/StartSessionSerializer.h5
-rw-r--r--Swiften/Serializer/PayloadSerializers/StatusSerializer.h5
-rw-r--r--Swiften/Serializer/PayloadSerializers/StatusShowSerializer.h5
-rw-r--r--Swiften/Serializer/PayloadSerializers/StorageSerializer.h5
-rw-r--r--Swiften/Serializer/PayloadSerializers/SubjectSerializer.h5
-rw-r--r--Swiften/Serializer/PayloadSerializers/WhiteboardSerializer.h11
-rw-r--r--Swiften/Serializer/PresenceSerializer.h5
-rw-r--r--Swiften/Serializer/StanzaAckRequestSerializer.h5
-rw-r--r--Swiften/Serializer/StanzaAckSerializer.h5
-rw-r--r--Swiften/Serializer/StanzaSerializer.h5
-rw-r--r--Swiften/Serializer/StartTLSFailureSerializer.h5
-rw-r--r--Swiften/Serializer/StartTLSRequestSerializer.h5
-rw-r--r--Swiften/Serializer/StreamErrorSerializer.h5
-rw-r--r--Swiften/Serializer/StreamManagementEnabledSerializer.h5
-rw-r--r--Swiften/Serializer/StreamManagementFailedSerializer.h5
-rw-r--r--Swiften/Serializer/StreamResumeSerializer.h5
-rw-r--r--Swiften/Serializer/StreamResumedSerializer.h5
-rw-r--r--Swiften/Serializer/TLSProceedSerializer.h5
-rw-r--r--Swiften/Serializer/XML/XMLRawTextNode.h5
-rw-r--r--Swiften/Serializer/XML/XMLTextNode.h5
-rw-r--r--Swiften/Session/BOSHSessionStream.h5
-rw-r--r--Swiften/Session/BasicSessionStream.h5
-rw-r--r--Swiften/Session/SessionStream.h4
-rw-r--r--Swiften/Session/SessionTracer.h5
-rw-r--r--Swiften/StreamStack/CompressionLayer.h5
-rw-r--r--Swiften/StreamStack/ConnectionLayer.h5
-rw-r--r--Swiften/StreamStack/StreamLayer.h5
-rw-r--r--Swiften/StreamStack/TLSLayer.h5
-rw-r--r--Swiften/StreamStack/WhitespacePingLayer.h5
-rw-r--r--Swiften/StringCodecs/PBKDF2.h5
-rw-r--r--Swiften/TLS/BlindCertificateTrustChecker.h5
-rw-r--r--Swiften/TLS/CertificateFactory.h5
-rw-r--r--Swiften/TLS/CertificateVerificationError.h5
-rw-r--r--Swiften/TLS/CertificateWithKey.h5
-rw-r--r--Swiften/TLS/PKCS12Certificate.h5
-rw-r--r--Swiften/TLS/SimpleCertificate.h5
-rw-r--r--Swiften/TLS/TLSContext.h5
-rw-r--r--Swiften/TLS/TLSContextFactory.h6
-rw-r--r--Swiften/TLS/TLSError.h5
-rw-r--r--Swiften/VCards/GetVCardRequest.h6
-rw-r--r--Swiften/VCards/SetVCardRequest.h6
-rw-r--r--Swiften/VCards/VCardMemoryStorage.h5
-rw-r--r--Swiften/Whiteboard/WhiteboardResponder.h9
342 files changed, 1258 insertions, 647 deletions
diff --git a/Swiften/Avatars/AvatarMemoryStorage.h b/Swiften/Avatars/AvatarMemoryStorage.h
index 27d6d67..bd67e74 100644
--- a/Swiften/Avatars/AvatarMemoryStorage.h
+++ b/Swiften/Avatars/AvatarMemoryStorage.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 */
@@ -12,9 +12,10 @@
12#include <Swiften/Base/ByteArray.h> 12#include <Swiften/Base/ByteArray.h>
13#include <Swiften/Avatars/AvatarStorage.h> 13#include <Swiften/Avatars/AvatarStorage.h>
14#include <Swiften/JID/JID.h> 14#include <Swiften/JID/JID.h>
15#include <Swiften/Base/API.h>
15 16
16namespace Swift { 17namespace Swift {
17 class AvatarMemoryStorage : public AvatarStorage { 18 class SWIFTEN_API AvatarMemoryStorage : public AvatarStorage {
18 public: 19 public:
19 virtual bool hasAvatar(const std::string& hash) const { return avatars.find(hash) != avatars.end(); } 20 virtual bool hasAvatar(const std::string& hash) const { return avatars.find(hash) != avatars.end(); }
20 virtual void addAvatar(const std::string& hash, const ByteArray& avatar) { avatars[hash] = avatar; } 21 virtual void addAvatar(const std::string& hash, const ByteArray& avatar) { avatars[hash] = avatar; }
diff --git a/Swiften/Avatars/OfflineAvatarManager.h b/Swiften/Avatars/OfflineAvatarManager.h
index c70f955..22345ae 100644
--- a/Swiften/Avatars/OfflineAvatarManager.h
+++ b/Swiften/Avatars/OfflineAvatarManager.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 */
@@ -7,11 +7,12 @@
7#pragma once 7#pragma once
8 8
9#include <Swiften/Avatars/AvatarProvider.h> 9#include <Swiften/Avatars/AvatarProvider.h>
10#include <Swiften/Base/API.h>
10 11
11namespace Swift { 12namespace Swift {
12 class AvatarStorage; 13 class AvatarStorage;
13 14
14 class OfflineAvatarManager : public AvatarProvider { 15 class SWIFTEN_API OfflineAvatarManager : public AvatarProvider {
15 public: 16 public:
16 OfflineAvatarManager(AvatarStorage*); 17 OfflineAvatarManager(AvatarStorage*);
17 ~OfflineAvatarManager(); 18 ~OfflineAvatarManager();
diff --git a/Swiften/Base/BoostRandomGenerator.h b/Swiften/Base/BoostRandomGenerator.h
index 60d56af..055c65f 100644
--- a/Swiften/Base/BoostRandomGenerator.h
+++ b/Swiften/Base/BoostRandomGenerator.h
@@ -8,11 +8,12 @@
8 8
9#include <Swiften/Base/RandomGenerator.h> 9#include <Swiften/Base/RandomGenerator.h>
10#include <Swiften/Base/Override.h> 10#include <Swiften/Base/Override.h>
11#include <Swiften/Base/API.h>
11 12
12#include <boost/random/mersenne_twister.hpp> 13#include <boost/random/mersenne_twister.hpp>
13 14
14namespace Swift { 15namespace Swift {
15 class BoostRandomGenerator : public RandomGenerator { 16 class SWIFTEN_API BoostRandomGenerator : public RandomGenerator {
16 public: 17 public:
17 BoostRandomGenerator(); 18 BoostRandomGenerator();
18 19
diff --git a/Swiften/Base/SafeAllocator.h b/Swiften/Base/SafeAllocator.h
index d2e49b4..5f9ac70 100644
--- a/Swiften/Base/SafeAllocator.h
+++ b/Swiften/Base/SafeAllocator.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 */
@@ -15,7 +15,7 @@ namespace Swift {
15 void secureZeroMemory(char* memory, size_t numberOfBytes); 15 void secureZeroMemory(char* memory, size_t numberOfBytes);
16 16
17 template<typename T> 17 template<typename T>
18 class SafeAllocator : public std::allocator<T> { 18 class SWIFTEN_API SafeAllocator : public std::allocator<T> {
19 public: 19 public:
20 template <class U> struct rebind { 20 template <class U> struct rebind {
21 typedef SafeAllocator<U> other; 21 typedef SafeAllocator<U> other;
diff --git a/Swiften/Base/SafeString.h b/Swiften/Base/SafeString.h
index a0f14e0..65d49d1 100644
--- a/Swiften/Base/SafeString.h
+++ b/Swiften/Base/SafeString.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 */
@@ -7,9 +7,10 @@
7#pragma once 7#pragma once
8 8
9#include <Swiften/Base/SafeByteArray.h> 9#include <Swiften/Base/SafeByteArray.h>
10#include <Swiften/Base/API.h>
10 11
11namespace Swift { 12namespace Swift {
12 class SafeString { 13 class SWIFTEN_API SafeString {
13 public: 14 public:
14 SafeString(const SafeByteArray& data) : data(data) { 15 SafeString(const SafeByteArray& data) : data(data) {
15 } 16 }
diff --git a/Swiften/Client/BlockList.h b/Swiften/Client/BlockList.h
index 2cf4aaf..eeb6c10 100644
--- a/Swiften/Client/BlockList.h
+++ b/Swiften/Client/BlockList.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 */
@@ -10,9 +10,10 @@
10 10
11#include <Swiften/JID/JID.h> 11#include <Swiften/JID/JID.h>
12#include <Swiften/Base/boost_bsignals.h> 12#include <Swiften/Base/boost_bsignals.h>
13#include <Swiften/Base/API.h>
13 14
14namespace Swift { 15namespace Swift {
15 class BlockList { 16 class SWIFTEN_API BlockList {
16 public: 17 public:
17 enum State { 18 enum State {
18 Init, 19 Init,
diff --git a/Swiften/Client/ClientBlockListManager.h b/Swiften/Client/ClientBlockListManager.h
index d3498a7..fb30eee 100644
--- a/Swiften/Client/ClientBlockListManager.h
+++ b/Swiften/Client/ClientBlockListManager.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,6 +8,7 @@
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/Base/boost_bsignals.h> 12#include <Swiften/Base/boost_bsignals.h>
12#include <Swiften/Elements/BlockPayload.h> 13#include <Swiften/Elements/BlockPayload.h>
13#include <Swiften/Elements/BlockListPayload.h> 14#include <Swiften/Elements/BlockListPayload.h>
@@ -21,7 +22,7 @@
21namespace Swift { 22namespace Swift {
22 class IQRouter; 23 class IQRouter;
23 24
24 class ClientBlockListManager { 25 class SWIFTEN_API ClientBlockListManager {
25 public: 26 public:
26 ClientBlockListManager(IQRouter *iqRouter); 27 ClientBlockListManager(IQRouter *iqRouter);
27 ~ClientBlockListManager(); 28 ~ClientBlockListManager();
diff --git a/Swiften/Client/ClientOptions.h b/Swiften/Client/ClientOptions.h
index 20e7443..4aac609 100644
--- a/Swiften/Client/ClientOptions.h
+++ b/Swiften/Client/ClientOptions.h
@@ -8,13 +8,14 @@
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/Base/URL.h> 12#include <Swiften/Base/URL.h>
12#include <Swiften/Base/SafeString.h> 13#include <Swiften/Base/SafeString.h>
13 14
14namespace Swift { 15namespace Swift {
15 class HTTPTrafficFilter; 16 class HTTPTrafficFilter;
16 17
17 struct ClientOptions { 18 struct SWIFTEN_API ClientOptions {
18 enum UseTLS { 19 enum UseTLS {
19 NeverUseTLS, 20 NeverUseTLS,
20 UseTLSWhenAvailable, 21 UseTLSWhenAvailable,
diff --git a/Swiften/Client/ClientSessionStanzaChannel.h b/Swiften/Client/ClientSessionStanzaChannel.h
index 4e2f842..1104416 100644
--- a/Swiften/Client/ClientSessionStanzaChannel.h
+++ b/Swiften/Client/ClientSessionStanzaChannel.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,6 +8,7 @@
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/Base/IDGenerator.h> 12#include <Swiften/Base/IDGenerator.h>
12#include <Swiften/Client/ClientSession.h> 13#include <Swiften/Client/ClientSession.h>
13#include <Swiften/Client/StanzaChannel.h> 14#include <Swiften/Client/StanzaChannel.h>
@@ -19,7 +20,7 @@ namespace Swift {
19 /** 20 /**
20 * StanzaChannel implementation around a ClientSession. 21 * StanzaChannel implementation around a ClientSession.
21 */ 22 */
22 class ClientSessionStanzaChannel : public StanzaChannel { 23 class SWIFTEN_API ClientSessionStanzaChannel : public StanzaChannel {
23 public: 24 public:
24 void setSession(boost::shared_ptr<ClientSession> session); 25 void setSession(boost::shared_ptr<ClientSession> session);
25 26
diff --git a/Swiften/Client/MemoryStorages.h b/Swiften/Client/MemoryStorages.h
index 137e77b..e341a37 100644
--- a/Swiften/Client/MemoryStorages.h
+++ b/Swiften/Client/MemoryStorages.h
@@ -1,11 +1,12 @@
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 */
6 6
7#pragma once 7#pragma once
8 8
9#include <Swiften/Base/API.h>
9#include <Swiften/Client/Storages.h> 10#include <Swiften/Client/Storages.h>
10 11
11namespace Swift { 12namespace Swift {
@@ -16,7 +17,7 @@ namespace Swift {
16 * An implementation of Storages for storing all 17 * An implementation of Storages for storing all
17 * controller data in memory. 18 * controller data in memory.
18 */ 19 */
19 class MemoryStorages : public Storages { 20 class SWIFTEN_API MemoryStorages : public Storages {
20 public: 21 public:
21 MemoryStorages(CryptoProvider*); 22 MemoryStorages(CryptoProvider*);
22 ~MemoryStorages(); 23 ~MemoryStorages();
diff --git a/Swiften/Client/StanzaChannel.h b/Swiften/Client/StanzaChannel.h
index a299cd8..c7c0971 100644
--- a/Swiften/Client/StanzaChannel.h
+++ b/Swiften/Client/StanzaChannel.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 */
@@ -9,13 +9,14 @@
9#include <Swiften/Base/boost_bsignals.h> 9#include <Swiften/Base/boost_bsignals.h>
10#include <boost/shared_ptr.hpp> 10#include <boost/shared_ptr.hpp>
11 11
12#include <Swiften/Base/API.h>
12#include <Swiften/Queries/IQChannel.h> 13#include <Swiften/Queries/IQChannel.h>
13#include <Swiften/Elements/Message.h> 14#include <Swiften/Elements/Message.h>
14#include <Swiften/Elements/Presence.h> 15#include <Swiften/Elements/Presence.h>
15#include <Swiften/TLS/Certificate.h> 16#include <Swiften/TLS/Certificate.h>
16 17
17namespace Swift { 18namespace Swift {
18 class StanzaChannel : public IQChannel { 19 class SWIFTEN_API StanzaChannel : public IQChannel {
19 public: 20 public:
20 virtual void sendMessage(boost::shared_ptr<Message>) = 0; 21 virtual void sendMessage(boost::shared_ptr<Message>) = 0;
21 virtual void sendPresence(boost::shared_ptr<Presence>) = 0; 22 virtual void sendPresence(boost::shared_ptr<Presence>) = 0;
diff --git a/Swiften/Client/XMLBeautifier.h b/Swiften/Client/XMLBeautifier.h
index af35be4..f8dccc5 100644
--- a/Swiften/Client/XMLBeautifier.h
+++ b/Swiften/Client/XMLBeautifier.h
@@ -5,10 +5,10 @@
5 */ 5 */
6 6
7/* 7/*
8* Copyright (c) 2014 Isode Limited. 8 * Copyright (c) 2014-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
@@ -16,6 +16,7 @@
16#include <string> 16#include <string>
17#include <stack> 17#include <stack>
18 18
19#include <Swiften/Base/API.h>
19#include <Swiften/Base/boost_bsignals.h> 20#include <Swiften/Base/boost_bsignals.h>
20#include <Swiften/Parser/XMLParserFactory.h> 21#include <Swiften/Parser/XMLParserFactory.h>
21#include <Swiften/Parser/XMLParserClient.h> 22#include <Swiften/Parser/XMLParserClient.h>
@@ -23,7 +24,7 @@
23 24
24namespace Swift { 25namespace Swift {
25 26
26class XMLBeautifier : public XMLParserClient { 27class SWIFTEN_API XMLBeautifier : public XMLParserClient {
27public: 28public:
28 XMLBeautifier(bool indention, bool coloring); 29 XMLBeautifier(bool indention, bool coloring);
29 virtual ~XMLBeautifier(); 30 virtual ~XMLBeautifier();
diff --git a/Swiften/Component/ComponentError.h b/Swiften/Component/ComponentError.h
index ab1df20..7609b9a 100644
--- a/Swiften/Component/ComponentError.h
+++ b/Swiften/Component/ComponentError.h
@@ -1,13 +1,15 @@
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>
10
9namespace Swift { 11namespace Swift {
10 class ComponentError { 12 class SWIFTEN_API ComponentError {
11 public: 13 public:
12 enum Type { 14 enum Type {
13 UnknownError, 15 UnknownError,
diff --git a/Swiften/Component/ComponentSessionStanzaChannel.h b/Swiften/Component/ComponentSessionStanzaChannel.h
index 89005b3..f0f4abd 100644
--- a/Swiften/Component/ComponentSessionStanzaChannel.h
+++ b/Swiften/Component/ComponentSessionStanzaChannel.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,6 +8,7 @@
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/Base/IDGenerator.h> 12#include <Swiften/Base/IDGenerator.h>
12#include <Swiften/Component/ComponentSession.h> 13#include <Swiften/Component/ComponentSession.h>
13#include <Swiften/Client/StanzaChannel.h> 14#include <Swiften/Client/StanzaChannel.h>
@@ -19,7 +20,7 @@ namespace Swift {
19 /** 20 /**
20 * StanzaChannel implementation around a ComponentSession. 21 * StanzaChannel implementation around a ComponentSession.
21 */ 22 */
22 class ComponentSessionStanzaChannel : public StanzaChannel { 23 class SWIFTEN_API ComponentSessionStanzaChannel : public StanzaChannel {
23 public: 24 public:
24 void setSession(boost::shared_ptr<ComponentSession> session); 25 void setSession(boost::shared_ptr<ComponentSession> session);
25 26
diff --git a/Swiften/Crypto/CommonCryptoCryptoProvider.h b/Swiften/Crypto/CommonCryptoCryptoProvider.h
index e71009c..5c9cbe6 100644
--- a/Swiften/Crypto/CommonCryptoCryptoProvider.h
+++ b/Swiften/Crypto/CommonCryptoCryptoProvider.h
@@ -1,16 +1,17 @@
1/* 1/*
2 * Copyright (c) 2013 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/Crypto/CryptoProvider.h> 10#include <Swiften/Crypto/CryptoProvider.h>
10#include <Swiften/Base/Override.h> 11#include <Swiften/Base/Override.h>
11 12
12namespace Swift { 13namespace Swift {
13 class CommonCryptoCryptoProvider : public CryptoProvider { 14 class SWIFTEN_API CommonCryptoCryptoProvider : public CryptoProvider {
14 public: 15 public:
15 CommonCryptoCryptoProvider(); 16 CommonCryptoCryptoProvider();
16 ~CommonCryptoCryptoProvider(); 17 ~CommonCryptoCryptoProvider();
diff --git a/Swiften/Crypto/Hash.h b/Swiften/Crypto/Hash.h
index f7812c1..c054e4e 100644
--- a/Swiften/Crypto/Hash.h
+++ b/Swiften/Crypto/Hash.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2013 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 */
@@ -8,11 +8,12 @@
8 8
9#include <vector> 9#include <vector>
10 10
11#include <Swiften/Base/API.h>
11#include <Swiften/Base/ByteArray.h> 12#include <Swiften/Base/ByteArray.h>
12#include <Swiften/Base/SafeByteArray.h> 13#include <Swiften/Base/SafeByteArray.h>
13 14
14namespace Swift { 15namespace Swift {
15 class Hash { 16 class SWIFTEN_API Hash {
16 public: 17 public:
17 virtual ~Hash(); 18 virtual ~Hash();
18 19
diff --git a/Swiften/Disco/CapsMemoryStorage.h b/Swiften/Disco/CapsMemoryStorage.h
index b61dc3e..2a81554 100644
--- a/Swiften/Disco/CapsMemoryStorage.h
+++ b/Swiften/Disco/CapsMemoryStorage.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 */
@@ -10,10 +10,11 @@
10#include <map> 10#include <map>
11 11
12#include <string> 12#include <string>
13#include <Swiften/Base/API.h>
13#include <Swiften/Disco/CapsStorage.h> 14#include <Swiften/Disco/CapsStorage.h>
14 15
15namespace Swift { 16namespace Swift {
16 class CapsMemoryStorage : public CapsStorage { 17 class SWIFTEN_API CapsMemoryStorage : public CapsStorage {
17 public: 18 public:
18 CapsMemoryStorage() {} 19 CapsMemoryStorage() {}
19 20
diff --git a/Swiften/Disco/CapsProvider.h b/Swiften/Disco/CapsProvider.h
index 133265e..08202a7 100644
--- a/Swiften/Disco/CapsProvider.h
+++ b/Swiften/Disco/CapsProvider.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 */
@@ -7,13 +7,14 @@
7#pragma once 7#pragma once
8 8
9#include <Swiften/Base/boost_bsignals.h> 9#include <Swiften/Base/boost_bsignals.h>
10#include <Swiften/Base/API.h>
10#include <Swiften/Elements/DiscoInfo.h> 11#include <Swiften/Elements/DiscoInfo.h>
11#include <Swiften/Elements/CapsInfo.h> 12#include <Swiften/Elements/CapsInfo.h>
12 13
13namespace Swift { 14namespace Swift {
14 15
15 16
16 class CapsProvider { 17 class SWIFTEN_API CapsProvider {
17 public: 18 public:
18 virtual ~CapsProvider() {} 19 virtual ~CapsProvider() {}
19 20
diff --git a/Swiften/Disco/GetDiscoInfoRequest.h b/Swiften/Disco/GetDiscoInfoRequest.h
index 7265926..a3c1415 100644
--- a/Swiften/Disco/GetDiscoInfoRequest.h
+++ b/Swiften/Disco/GetDiscoInfoRequest.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/smart_ptr/make_shared.hpp> 9#include <boost/smart_ptr/make_shared.hpp>
10 10
11#include <Swiften/Base/API.h>
11#include <Swiften/Queries/GenericRequest.h> 12#include <Swiften/Queries/GenericRequest.h>
12#include <Swiften/Elements/DiscoInfo.h> 13#include <Swiften/Elements/DiscoInfo.h>
13 14
14namespace Swift { 15namespace Swift {
15 class GetDiscoInfoRequest : public GenericRequest<DiscoInfo> { 16 class SWIFTEN_API GetDiscoInfoRequest : public GenericRequest<DiscoInfo> {
16 public: 17 public:
17 typedef boost::shared_ptr<GetDiscoInfoRequest> ref; 18 typedef boost::shared_ptr<GetDiscoInfoRequest> ref;
18 19
diff --git a/Swiften/Disco/GetDiscoItemsRequest.h b/Swiften/Disco/GetDiscoItemsRequest.h
index 1e645c2..a9cf38b 100644
--- a/Swiften/Disco/GetDiscoItemsRequest.h
+++ b/Swiften/Disco/GetDiscoItemsRequest.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/smart_ptr/make_shared.hpp> 9#include <boost/smart_ptr/make_shared.hpp>
10 10
11#include <Swiften/Base/API.h>
11#include <Swiften/Queries/GenericRequest.h> 12#include <Swiften/Queries/GenericRequest.h>
12#include <Swiften/Elements/DiscoItems.h> 13#include <Swiften/Elements/DiscoItems.h>
13 14
14namespace Swift { 15namespace Swift {
15 class GetDiscoItemsRequest : public GenericRequest<DiscoItems> { 16 class SWIFTEN_API GetDiscoItemsRequest : public GenericRequest<DiscoItems> {
16 public: 17 public:
17 typedef boost::shared_ptr<GetDiscoItemsRequest> ref; 18 typedef boost::shared_ptr<GetDiscoItemsRequest> ref;
18 19
diff --git a/Swiften/Elements/AuthChallenge.h b/Swiften/Elements/AuthChallenge.h
index d03a5ef..8cfba19 100644
--- a/Swiften/Elements/AuthChallenge.h
+++ b/Swiften/Elements/AuthChallenge.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,10 +9,11 @@
9#include <boost/optional.hpp> 9#include <boost/optional.hpp>
10#include <vector> 10#include <vector>
11 11
12#include <Swiften/Base/API.h>
12#include <Swiften/Elements/ToplevelElement.h> 13#include <Swiften/Elements/ToplevelElement.h>
13 14
14namespace Swift { 15namespace Swift {
15 class AuthChallenge : public ToplevelElement { 16 class SWIFTEN_API AuthChallenge : public ToplevelElement {
16 public: 17 public:
17 AuthChallenge() { 18 AuthChallenge() {
18 } 19 }
diff --git a/Swiften/Elements/AuthFailure.h b/Swiften/Elements/AuthFailure.h
index 1101bfe..e722d04 100644
--- a/Swiften/Elements/AuthFailure.h
+++ b/Swiften/Elements/AuthFailure.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/Elements/ToplevelElement.h> 12#include <Swiften/Elements/ToplevelElement.h>
12 13
13namespace Swift { 14namespace Swift {
14 class AuthFailure : public ToplevelElement { 15 class SWIFTEN_API AuthFailure : public ToplevelElement {
15 public: 16 public:
16 typedef boost::shared_ptr<AuthFailure> ref; 17 typedef boost::shared_ptr<AuthFailure> ref;
17 18
diff --git a/Swiften/Elements/AuthRequest.h b/Swiften/Elements/AuthRequest.h
index 3c6eee8..939a95a 100644
--- a/Swiften/Elements/AuthRequest.h
+++ b/Swiften/Elements/AuthRequest.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 */
@@ -10,11 +10,12 @@
10#include <string> 10#include <string>
11#include <boost/optional.hpp> 11#include <boost/optional.hpp>
12 12
13#include <Swiften/Base/API.h>
13#include <Swiften/Elements/ToplevelElement.h> 14#include <Swiften/Elements/ToplevelElement.h>
14#include <Swiften/Base/SafeByteArray.h> 15#include <Swiften/Base/SafeByteArray.h>
15 16
16namespace Swift { 17namespace Swift {
17 class AuthRequest : public ToplevelElement { 18 class SWIFTEN_API AuthRequest : public ToplevelElement {
18 public: 19 public:
19 AuthRequest(const std::string& mechanism = "") : mechanism_(mechanism) { 20 AuthRequest(const std::string& mechanism = "") : mechanism_(mechanism) {
20 } 21 }
diff --git a/Swiften/Elements/AuthResponse.h b/Swiften/Elements/AuthResponse.h
index 3c8dac8..b1f4419 100644
--- a/Swiften/Elements/AuthResponse.h
+++ b/Swiften/Elements/AuthResponse.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,11 +9,12 @@
9#include <vector> 9#include <vector>
10#include <boost/optional.hpp> 10#include <boost/optional.hpp>
11 11
12#include <Swiften/Base/API.h>
12#include <Swiften/Elements/ToplevelElement.h> 13#include <Swiften/Elements/ToplevelElement.h>
13#include <Swiften/Base/SafeByteArray.h> 14#include <Swiften/Base/SafeByteArray.h>
14 15
15namespace Swift { 16namespace Swift {
16 class AuthResponse : public ToplevelElement { 17 class SWIFTEN_API AuthResponse : public ToplevelElement {
17 public: 18 public:
18 AuthResponse() { 19 AuthResponse() {
19 } 20 }
diff --git a/Swiften/Elements/AuthSuccess.h b/Swiften/Elements/AuthSuccess.h
index 1cc0220..22c259d 100644
--- a/Swiften/Elements/AuthSuccess.h
+++ b/Swiften/Elements/AuthSuccess.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,10 +9,11 @@
9#include <vector> 9#include <vector>
10#include <boost/optional.hpp> 10#include <boost/optional.hpp>
11 11
12#include <Swiften/Base/API.h>
12#include <Swiften/Elements/ToplevelElement.h> 13#include <Swiften/Elements/ToplevelElement.h>
13 14
14namespace Swift { 15namespace Swift {
15 class AuthSuccess : public ToplevelElement { 16 class SWIFTEN_API AuthSuccess : public ToplevelElement {
16 public: 17 public:
17 AuthSuccess() {} 18 AuthSuccess() {}
18 19
diff --git a/Swiften/Elements/BlockListPayload.h b/Swiften/Elements/BlockListPayload.h
index 7ffc8bf..93e738d 100644
--- a/Swiften/Elements/BlockListPayload.h
+++ b/Swiften/Elements/BlockListPayload.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 <vector> 9#include <vector>
10 10
11#include <Swiften/Base/API.h>
11#include <Swiften/JID/JID.h> 12#include <Swiften/JID/JID.h>
12#include <Swiften/Elements/Payload.h> 13#include <Swiften/Elements/Payload.h>
13 14
14namespace Swift { 15namespace Swift {
15 class BlockListPayload : public Payload { 16 class SWIFTEN_API BlockListPayload : public Payload {
16 public: 17 public:
17 BlockListPayload(const std::vector<JID>& items = std::vector<JID>()) : items(items) { 18 BlockListPayload(const std::vector<JID>& items = std::vector<JID>()) : items(items) {
18 } 19 }
diff --git a/Swiften/Elements/BlockPayload.h b/Swiften/Elements/BlockPayload.h
index 54ebb47..495c79b 100644
--- a/Swiften/Elements/BlockPayload.h
+++ b/Swiften/Elements/BlockPayload.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 <vector> 9#include <vector>
10 10
11#include <Swiften/Base/API.h>
11#include <Swiften/JID/JID.h> 12#include <Swiften/JID/JID.h>
12#include <Swiften/Elements/Payload.h> 13#include <Swiften/Elements/Payload.h>
13 14
14namespace Swift { 15namespace Swift {
15 class BlockPayload : public Payload { 16 class SWIFTEN_API BlockPayload : public Payload {
16 public: 17 public:
17 BlockPayload(const std::vector<JID>& jids = std::vector<JID>()) : items(jids) { 18 BlockPayload(const std::vector<JID>& jids = std::vector<JID>()) : items(jids) {
18 } 19 }
diff --git a/Swiften/Elements/Body.h b/Swiften/Elements/Body.h
index 4ef8bf0..fc7016f 100644
--- a/Swiften/Elements/Body.h
+++ b/Swiften/Elements/Body.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,10 +8,11 @@
8 8
9#include <string> 9#include <string>
10 10
11#include <Swiften/Base/API.h>
11#include <Swiften/Elements/Payload.h> 12#include <Swiften/Elements/Payload.h>
12 13
13namespace Swift { 14namespace Swift {
14 class Body : public Payload { 15 class SWIFTEN_API Body : public Payload {
15 public: 16 public:
16 Body(const std::string& text = "") : text_(text) { 17 Body(const std::string& text = "") : text_(text) {
17 } 18 }
diff --git a/Swiften/Elements/Bytestreams.h b/Swiften/Elements/Bytestreams.h
index dd6bb5c..bc114a2 100644
--- a/Swiften/Elements/Bytestreams.h
+++ b/Swiften/Elements/Bytestreams.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 */
@@ -11,11 +11,12 @@
11#include <boost/shared_ptr.hpp> 11#include <boost/shared_ptr.hpp>
12#include <string> 12#include <string>
13 13
14#include <Swiften/Base/API.h>
14#include <Swiften/JID/JID.h> 15#include <Swiften/JID/JID.h>
15#include <Swiften/Elements/Payload.h> 16#include <Swiften/Elements/Payload.h>
16 17
17namespace Swift { 18namespace Swift {
18 class Bytestreams : public Payload { 19 class SWIFTEN_API Bytestreams : public Payload {
19 public: 20 public:
20 typedef boost::shared_ptr<Bytestreams> ref; 21 typedef boost::shared_ptr<Bytestreams> ref;
21 22
diff --git a/Swiften/Elements/CapsInfo.h b/Swiften/Elements/CapsInfo.h
index 989d796..bdfe342 100644
--- a/Swiften/Elements/CapsInfo.h
+++ b/Swiften/Elements/CapsInfo.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 */
@@ -9,10 +9,11 @@
9#include <boost/shared_ptr.hpp> 9#include <boost/shared_ptr.hpp>
10#include <string> 10#include <string>
11 11
12#include <Swiften/Base/API.h>
12#include <Swiften/Elements/Payload.h> 13#include <Swiften/Elements/Payload.h>
13 14
14namespace Swift { 15namespace Swift {
15 class CapsInfo : public Payload { 16 class SWIFTEN_API CapsInfo : public Payload {
16 public: 17 public:
17 typedef boost::shared_ptr<CapsInfo> ref; 18 typedef boost::shared_ptr<CapsInfo> ref;
18 19
diff --git a/Swiften/Elements/ChatState.h b/Swiften/Elements/ChatState.h
index 1755eea..a7a8b1d 100644
--- a/Swiften/Elements/ChatState.h
+++ b/Swiften/Elements/ChatState.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,10 +8,11 @@
8 8
9#include <string> 9#include <string>
10 10
11#include <Swiften/Base/API.h>
11#include <Swiften/Elements/Payload.h> 12#include <Swiften/Elements/Payload.h>
12 13
13namespace Swift { 14namespace Swift {
14 class ChatState : public Payload { 15 class SWIFTEN_API ChatState : public Payload {
15 public: 16 public:
16 enum ChatStateType {Active, Composing, Paused, Inactive, Gone}; 17 enum ChatStateType {Active, Composing, Paused, Inactive, Gone};
17 ChatState(ChatStateType state = Active) { 18 ChatState(ChatStateType state = Active) {
diff --git a/Swiften/Elements/Command.h b/Swiften/Elements/Command.h
index dbf9039..060037d 100644
--- a/Swiften/Elements/Command.h
+++ b/Swiften/Elements/Command.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 */
@@ -9,6 +9,7 @@
9#include <boost/shared_ptr.hpp> 9#include <boost/shared_ptr.hpp>
10#include <string> 10#include <string>
11 11
12#include <Swiften/Base/API.h>
12#include <Swiften/Elements/Payload.h> 13#include <Swiften/Elements/Payload.h>
13#include <Swiften/Elements/Form.h> 14#include <Swiften/Elements/Form.h>
14 15
@@ -16,7 +17,7 @@ namespace Swift {
16 /** 17 /**
17 * Ad-Hoc Command (XEP-0050). 18 * Ad-Hoc Command (XEP-0050).
18 */ 19 */
19 class Command : public Payload { 20 class SWIFTEN_API Command : public Payload {
20 public: 21 public:
21 typedef boost::shared_ptr<Command> ref; 22 typedef boost::shared_ptr<Command> ref;
22 23
diff --git a/Swiften/Elements/ComponentHandshake.h b/Swiften/Elements/ComponentHandshake.h
index 67d9727..f19c488 100644
--- a/Swiften/Elements/ComponentHandshake.h
+++ b/Swiften/Elements/ComponentHandshake.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,10 +9,11 @@
9#include <boost/shared_ptr.hpp> 9#include <boost/shared_ptr.hpp>
10#include <string> 10#include <string>
11 11
12#include <Swiften/Base/API.h>
12#include <Swiften/Elements/ToplevelElement.h> 13#include <Swiften/Elements/ToplevelElement.h>
13 14
14namespace Swift { 15namespace Swift {
15 class ComponentHandshake : public ToplevelElement { 16 class SWIFTEN_API ComponentHandshake : public ToplevelElement {
16 public: 17 public:
17 typedef boost::shared_ptr<ComponentHandshake> ref; 18 typedef boost::shared_ptr<ComponentHandshake> ref;
18 19
diff --git a/Swiften/Elements/CompressFailure.h b/Swiften/Elements/CompressFailure.h
index eff776e..a32ba27 100644
--- a/Swiften/Elements/CompressFailure.h
+++ b/Swiften/Elements/CompressFailure.h
@@ -1,16 +1,16 @@
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 9#include <Swiften/Base/API.h>
10#include <Swiften/Elements/ToplevelElement.h> 10#include <Swiften/Elements/ToplevelElement.h>
11 11
12namespace Swift { 12namespace Swift {
13 class CompressFailure : public ToplevelElement { 13 class SWIFTEN_API CompressFailure : public ToplevelElement {
14 public: 14 public:
15 CompressFailure() {} 15 CompressFailure() {}
16 }; 16 };
diff --git a/Swiften/Elements/CompressRequest.h b/Swiften/Elements/CompressRequest.h
index dda6684..4e2a3a4 100644
--- a/Swiften/Elements/CompressRequest.h
+++ b/Swiften/Elements/CompressRequest.h
@@ -1,15 +1,16 @@
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/Elements/ToplevelElement.h> 10#include <Swiften/Elements/ToplevelElement.h>
10 11
11namespace Swift { 12namespace Swift {
12 class CompressRequest : public ToplevelElement 13 class SWIFTEN_API CompressRequest : public ToplevelElement
13 { 14 {
14 public: 15 public:
15 CompressRequest(const std::string& method = "") : method_(method) {} 16 CompressRequest(const std::string& method = "") : method_(method) {}
diff --git a/Swiften/Elements/Compressed.h b/Swiften/Elements/Compressed.h
index 430143c..bcfcacc 100644
--- a/Swiften/Elements/Compressed.h
+++ b/Swiften/Elements/Compressed.h
@@ -1,15 +1,16 @@
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/Elements/ToplevelElement.h> 10#include <Swiften/Elements/ToplevelElement.h>
10 11
11namespace Swift { 12namespace Swift {
12 class Compressed : public ToplevelElement { 13 class SWIFTEN_API Compressed : public ToplevelElement {
13 public: 14 public:
14 Compressed() {} 15 Compressed() {}
15 }; 16 };
diff --git a/Swiften/Elements/Delay.h b/Swiften/Elements/Delay.h
index c87e3ec..2cfb1d0 100644
--- a/Swiften/Elements/Delay.h
+++ b/Swiften/Elements/Delay.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 */
@@ -9,11 +9,12 @@
9#include <boost/date_time/posix_time/posix_time_types.hpp> 9#include <boost/date_time/posix_time/posix_time_types.hpp>
10#include <boost/optional.hpp> 10#include <boost/optional.hpp>
11 11
12#include <Swiften/Base/API.h>
12#include <Swiften/Elements/Payload.h> 13#include <Swiften/Elements/Payload.h>
13#include <Swiften/JID/JID.h> 14#include <Swiften/JID/JID.h>
14 15
15namespace Swift { 16namespace Swift {
16 class Delay : public Payload { 17 class SWIFTEN_API Delay : public Payload {
17 public: 18 public:
18 Delay() {} 19 Delay() {}
19 Delay(const boost::posix_time::ptime& time, const JID& from = JID()) : time_(time), from_(from) {} 20 Delay(const boost::posix_time::ptime& time, const JID& from = JID()) : time_(time), from_(from) {}
diff --git a/Swiften/Elements/DeliveryReceipt.h b/Swiften/Elements/DeliveryReceipt.h
index bd634db..eac5280 100644
--- a/Swiften/Elements/DeliveryReceipt.h
+++ b/Swiften/Elements/DeliveryReceipt.h
@@ -4,17 +4,22 @@
4 * See http://www.opensource.org/licenses/bsd-license.php for more information. 4 * See http://www.opensource.org/licenses/bsd-license.php for more information.
5 */ 5 */
6 6
7#pragma once 7/*
8 * Copyright (c) 2015 Isode Limited.
9 * All rights reserved.
10 * See the COPYING file for more information.
11 */
8 12
9#include <string> 13#pragma once
10 14
11#include <string> 15#include <string>
12 16
17#include <Swiften/Base/API.h>
13#include <Swiften/Elements/Payload.h> 18#include <Swiften/Elements/Payload.h>
14 19
15namespace Swift { 20namespace Swift {
16 21
17class DeliveryReceipt : public Payload { 22class SWIFTEN_API DeliveryReceipt : public Payload {
18 public: 23 public:
19 typedef boost::shared_ptr<DeliveryReceipt> ref; 24 typedef boost::shared_ptr<DeliveryReceipt> ref;
20 25
diff --git a/Swiften/Elements/DeliveryReceiptRequest.h b/Swiften/Elements/DeliveryReceiptRequest.h
index 3998785..1f03c5a 100644
--- a/Swiften/Elements/DeliveryReceiptRequest.h
+++ b/Swiften/Elements/DeliveryReceiptRequest.h
@@ -4,13 +4,20 @@
4 * See http://www.opensource.org/licenses/bsd-license.php for more information. 4 * See http://www.opensource.org/licenses/bsd-license.php 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/Payload.h> 16#include <Swiften/Elements/Payload.h>
10 17
11namespace Swift { 18namespace Swift {
12 19
13class DeliveryReceiptRequest : public Payload { 20class SWIFTEN_API DeliveryReceiptRequest : public Payload {
14 public: 21 public:
15 typedef boost::shared_ptr<DeliveryReceiptRequest> ref; 22 typedef boost::shared_ptr<DeliveryReceiptRequest> ref;
16 23
diff --git a/Swiften/Elements/DiscoItems.h b/Swiften/Elements/DiscoItems.h
index 0c974ca..1084f2b 100644
--- a/Swiften/Elements/DiscoItems.h
+++ b/Swiften/Elements/DiscoItems.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 */
@@ -9,6 +9,7 @@
9#include <vector> 9#include <vector>
10#include <string> 10#include <string>
11 11
12#include <Swiften/Base/API.h>
12#include <Swiften/Elements/Payload.h> 13#include <Swiften/Elements/Payload.h>
13#include <Swiften/JID/JID.h> 14#include <Swiften/JID/JID.h>
14 15
@@ -16,7 +17,7 @@ namespace Swift {
16 /** 17 /**
17 * Service discovery disco#items from XEP-0030. 18 * Service discovery disco#items from XEP-0030.
18 */ 19 */
19 class DiscoItems : public Payload { 20 class SWIFTEN_API DiscoItems : public Payload {
20 public: 21 public:
21 /** 22 /**
22 * A single result item. 23 * A single result item.
diff --git a/Swiften/Elements/EnableStreamManagement.h b/Swiften/Elements/EnableStreamManagement.h
index c606eb3..ef09f79 100644
--- a/Swiften/Elements/EnableStreamManagement.h
+++ b/Swiften/Elements/EnableStreamManagement.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 */
@@ -7,10 +7,10 @@
7#pragma once 7#pragma once
8 8
9#include <Swiften/Elements/ToplevelElement.h> 9#include <Swiften/Elements/ToplevelElement.h>
10 10#include <Swiften/Base/API.h>
11 11
12namespace Swift { 12namespace Swift {
13 class EnableStreamManagement : public ToplevelElement { 13 class SWIFTEN_API EnableStreamManagement : public ToplevelElement {
14 public: 14 public:
15 EnableStreamManagement() {} 15 EnableStreamManagement() {}
16 }; 16 };
diff --git a/Swiften/Elements/ErrorPayload.h b/Swiften/Elements/ErrorPayload.h
index 5860c68..27f4249 100644
--- a/Swiften/Elements/ErrorPayload.h
+++ b/Swiften/Elements/ErrorPayload.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 */
@@ -9,10 +9,11 @@
9#include <boost/shared_ptr.hpp> 9#include <boost/shared_ptr.hpp>
10#include <string> 10#include <string>
11 11
12#include <Swiften/Base/API.h>
12#include <Swiften/Elements/Payload.h> 13#include <Swiften/Elements/Payload.h>
13 14
14namespace Swift { 15namespace Swift {
15 class ErrorPayload : public Payload { 16 class SWIFTEN_API ErrorPayload : public Payload {
16 public: 17 public:
17 typedef boost::shared_ptr<ErrorPayload> ref; 18 typedef boost::shared_ptr<ErrorPayload> ref;
18 19
diff --git a/Swiften/Elements/FormField.h b/Swiften/Elements/FormField.h
index 8317e25..a8649fb 100644
--- a/Swiften/Elements/FormField.h
+++ b/Swiften/Elements/FormField.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 */
@@ -10,10 +10,11 @@
10#include <boost/shared_ptr.hpp> 10#include <boost/shared_ptr.hpp>
11#include <string> 11#include <string>
12 12
13#include <Swiften/Base/API.h>
13#include <Swiften/JID/JID.h> 14#include <Swiften/JID/JID.h>
14 15
15namespace Swift { 16namespace Swift {
16 class FormField { 17 class SWIFTEN_API FormField {
17 public: 18 public:
18 typedef boost::shared_ptr<FormField> ref; 19 typedef boost::shared_ptr<FormField> ref;
19 20
diff --git a/Swiften/Elements/HashElement.h b/Swiften/Elements/HashElement.h
index 9bab7ef..cc5a0e4 100644
--- a/Swiften/Elements/HashElement.h
+++ b/Swiften/Elements/HashElement.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2014 Isode Limited. 2 * Copyright (c) 2014-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 <string> 9#include <string>
10 10
11#include <Swiften/Base/API.h>
11#include <Swiften/Base/ByteArray.h> 12#include <Swiften/Base/ByteArray.h>
12 13
13namespace Swift { 14namespace Swift {
14 /* 15 /*
15 * @brief This class represents a XEP-0300 <hash/> element. 16 * @brief This class represents a XEP-0300 <hash/> element.
16 */ 17 */
17 class HashElement { 18 class SWIFTEN_API HashElement {
18 public: 19 public:
19 HashElement(const std::string& algorithm, const ByteArray& hash) : algorithm_(algorithm), hash_(hash) { 20 HashElement(const std::string& algorithm, const ByteArray& hash) : algorithm_(algorithm), hash_(hash) {
20 } 21 }
diff --git a/Swiften/Elements/IBB.h b/Swiften/Elements/IBB.h
index e8c0d22..58194b9 100644
--- a/Swiften/Elements/IBB.h
+++ b/Swiften/Elements/IBB.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 */
@@ -11,10 +11,11 @@
11#include <boost/shared_ptr.hpp> 11#include <boost/shared_ptr.hpp>
12#include <boost/smart_ptr/make_shared.hpp> 12#include <boost/smart_ptr/make_shared.hpp>
13 13
14#include <Swiften/Base/API.h>
14#include <Swiften/Elements/Payload.h> 15#include <Swiften/Elements/Payload.h>
15 16
16namespace Swift { 17namespace Swift {
17 class IBB : public Payload { 18 class SWIFTEN_API IBB : public Payload {
18 public: 19 public:
19 typedef boost::shared_ptr<IBB> ref; 20 typedef boost::shared_ptr<IBB> ref;
20 21
diff --git a/Swiften/Elements/Idle.h b/Swiften/Elements/Idle.h
index 572eba2..d30120c 100644
--- a/Swiften/Elements/Idle.h
+++ b/Swiften/Elements/Idle.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#pragma once 13#pragma once
8 14
9#include <boost/shared_ptr.hpp> 15#include <boost/shared_ptr.hpp>
10#include <boost/date_time/posix_time/posix_time_types.hpp> 16#include <boost/date_time/posix_time/posix_time_types.hpp>
11 17
18#include <Swiften/Base/API.h>
12#include <Swiften/Elements/Payload.h> 19#include <Swiften/Elements/Payload.h>
13 20
14namespace Swift { 21namespace Swift {
15 22
16 class Idle : public Payload { 23 class SWIFTEN_API Idle : public Payload {
17 public: 24 public:
18 typedef boost::shared_ptr<Idle> ref; 25 typedef boost::shared_ptr<Idle> ref;
19 26
diff --git a/Swiften/Elements/InBandRegistrationPayload.h b/Swiften/Elements/InBandRegistrationPayload.h
index 04742ba..4089bf7 100644
--- a/Swiften/Elements/InBandRegistrationPayload.h
+++ b/Swiften/Elements/InBandRegistrationPayload.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 */
@@ -10,11 +10,12 @@
10#include <boost/optional.hpp> 10#include <boost/optional.hpp>
11#include <string> 11#include <string>
12 12
13#include <Swiften/Base/API.h>
13#include <Swiften/Elements/Payload.h> 14#include <Swiften/Elements/Payload.h>
14#include <Swiften/Elements/Form.h> 15#include <Swiften/Elements/Form.h>
15 16
16namespace Swift { 17namespace Swift {
17 class InBandRegistrationPayload : public Payload { 18 class SWIFTEN_API InBandRegistrationPayload : public Payload {
18 public: 19 public:
19 typedef boost::shared_ptr<InBandRegistrationPayload> ref; 20 typedef boost::shared_ptr<InBandRegistrationPayload> ref;
20 21
diff --git a/Swiften/Elements/JingleContentPayload.h b/Swiften/Elements/JingleContentPayload.h
index 94efdb9..f908053 100644
--- a/Swiften/Elements/JingleContentPayload.h
+++ b/Swiften/Elements/JingleContentPayload.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 */
@@ -10,13 +10,14 @@
10#include <boost/optional.hpp> 10#include <boost/optional.hpp>
11#include <string> 11#include <string>
12 12
13#include <Swiften/Base/API.h>
13#include <Swiften/JID/JID.h> 14#include <Swiften/JID/JID.h>
14#include <Swiften/Elements/Payload.h> 15#include <Swiften/Elements/Payload.h>
15#include <Swiften/Elements/JingleDescription.h> 16#include <Swiften/Elements/JingleDescription.h>
16#include <Swiften/Elements/JingleTransportPayload.h> 17#include <Swiften/Elements/JingleTransportPayload.h>
17 18
18namespace Swift { 19namespace Swift {
19 class JingleContentPayload : public Payload { 20 class SWIFTEN_API JingleContentPayload : public Payload {
20 public: 21 public:
21 typedef boost::shared_ptr<JingleContentPayload> ref; 22 typedef boost::shared_ptr<JingleContentPayload> ref;
22 23
diff --git a/Swiften/Elements/JingleDescription.h b/Swiften/Elements/JingleDescription.h
index c3adc9e..7577383 100644
--- a/Swiften/Elements/JingleDescription.h
+++ b/Swiften/Elements/JingleDescription.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,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/Elements/Payload.h> 12#include <Swiften/Elements/Payload.h>
12 13
13namespace Swift { 14namespace Swift {
14 class JingleDescription : public Payload { 15 class SWIFTEN_API JingleDescription : public Payload {
15 public: 16 public:
16 typedef boost::shared_ptr<JingleDescription> ref; 17 typedef boost::shared_ptr<JingleDescription> ref;
17 }; 18 };
diff --git a/Swiften/Elements/JingleFileTransferDescription.h b/Swiften/Elements/JingleFileTransferDescription.h
index 9308abf..39f10b9 100644
--- a/Swiften/Elements/JingleFileTransferDescription.h
+++ b/Swiften/Elements/JingleFileTransferDescription.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 */
@@ -9,11 +9,12 @@
9#include <boost/shared_ptr.hpp> 9#include <boost/shared_ptr.hpp>
10#include <vector> 10#include <vector>
11 11
12#include <Swiften/Base/API.h>
12#include <Swiften/Elements/JingleDescription.h> 13#include <Swiften/Elements/JingleDescription.h>
13#include <Swiften/Elements/JingleFileTransferFileInfo.h> 14#include <Swiften/Elements/JingleFileTransferFileInfo.h>
14 15
15namespace Swift { 16namespace Swift {
16 class JingleFileTransferDescription : public JingleDescription { 17 class SWIFTEN_API JingleFileTransferDescription : public JingleDescription {
17 public: 18 public:
18 typedef boost::shared_ptr<JingleFileTransferDescription> ref; 19 typedef boost::shared_ptr<JingleFileTransferDescription> ref;
19 20
diff --git a/Swiften/Elements/JingleFileTransferFileInfo.h b/Swiften/Elements/JingleFileTransferFileInfo.h
index 8fec59e..92929a0 100644
--- a/Swiften/Elements/JingleFileTransferFileInfo.h
+++ b/Swiften/Elements/JingleFileTransferFileInfo.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2014 Isode Limited. 2 * Copyright (c) 2014-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 */
@@ -14,6 +14,7 @@
14#include <boost/shared_ptr.hpp> 14#include <boost/shared_ptr.hpp>
15#include <boost/date_time/posix_time/posix_time_types.hpp> 15#include <boost/date_time/posix_time/posix_time_types.hpp>
16 16
17#include <Swiften/Base/API.h>
17#include <Swiften/Elements/HashElement.h> 18#include <Swiften/Elements/HashElement.h>
18#include <Swiften/Elements/Payload.h> 19#include <Swiften/Elements/Payload.h>
19 20
@@ -22,7 +23,7 @@ namespace Swift {
22 /** 23 /**
23 * @brief This class represents the file info used in XEP-0234. 24 * @brief This class represents the file info used in XEP-0234.
24 */ 25 */
25 class JingleFileTransferFileInfo : public Payload { 26 class SWIFTEN_API JingleFileTransferFileInfo : public Payload {
26 typedef boost::shared_ptr<JingleFileTransferFileInfo> ref; 27 typedef boost::shared_ptr<JingleFileTransferFileInfo> ref;
27 28
28 public: 29 public:
diff --git a/Swiften/Elements/JingleFileTransferHash.h b/Swiften/Elements/JingleFileTransferHash.h
index d34e35d..3f3c3f0 100644
--- a/Swiften/Elements/JingleFileTransferHash.h
+++ b/Swiften/Elements/JingleFileTransferHash.h
@@ -5,7 +5,7 @@
5 */ 5 */
6 6
7/* 7/*
8 * Copyright (c) 2014 Isode Limited. 8 * Copyright (c) 2014-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 */
@@ -16,12 +16,13 @@
16#include <map> 16#include <map>
17#include <string> 17#include <string>
18 18
19#include <Swiften/Base/API.h>
19#include <Swiften/Elements/JingleDescription.h> 20#include <Swiften/Elements/JingleDescription.h>
20#include <Swiften/Elements/JingleFileTransferFileInfo.h> 21#include <Swiften/Elements/JingleFileTransferFileInfo.h>
21 22
22namespace Swift { 23namespace Swift {
23 24
24class JingleFileTransferHash : public Payload { 25class SWIFTEN_API JingleFileTransferHash : public Payload {
25public: 26public:
26 typedef boost::shared_ptr<JingleFileTransferHash> ref; 27 typedef boost::shared_ptr<JingleFileTransferHash> ref;
27 28
diff --git a/Swiften/Elements/JingleIBBTransportPayload.h b/Swiften/Elements/JingleIBBTransportPayload.h
index efb725d..d87570d 100644
--- a/Swiften/Elements/JingleIBBTransportPayload.h
+++ b/Swiften/Elements/JingleIBBTransportPayload.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 */
@@ -10,10 +10,11 @@
10#include <boost/optional.hpp> 10#include <boost/optional.hpp>
11#include <string> 11#include <string>
12 12
13#include <Swiften/Base/API.h>
13#include <Swiften/Elements/JingleTransportPayload.h> 14#include <Swiften/Elements/JingleTransportPayload.h>
14 15
15namespace Swift { 16namespace Swift {
16 class JingleIBBTransportPayload : public JingleTransportPayload { 17 class SWIFTEN_API JingleIBBTransportPayload : public JingleTransportPayload {
17 public: 18 public:
18 typedef boost::shared_ptr<JingleIBBTransportPayload> ref; 19 typedef boost::shared_ptr<JingleIBBTransportPayload> ref;
19 20
diff --git a/Swiften/Elements/JinglePayload.h b/Swiften/Elements/JinglePayload.h
index 5d22b20..86e3747 100644
--- a/Swiften/Elements/JinglePayload.h
+++ b/Swiften/Elements/JinglePayload.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 */
@@ -17,7 +17,7 @@
17#include <Swiften/Elements/JingleContentPayload.h> 17#include <Swiften/Elements/JingleContentPayload.h>
18 18
19namespace Swift { 19namespace Swift {
20 class JinglePayload : public Payload { 20 class SWIFTEN_API JinglePayload : public Payload {
21 public: 21 public:
22 typedef boost::shared_ptr<JinglePayload> ref; 22 typedef boost::shared_ptr<JinglePayload> ref;
23 struct Reason : public Payload { 23 struct Reason : public Payload {
diff --git a/Swiften/Elements/JingleS5BTransportPayload.h b/Swiften/Elements/JingleS5BTransportPayload.h
index f6132a1..313e51a 100644
--- a/Swiften/Elements/JingleS5BTransportPayload.h
+++ b/Swiften/Elements/JingleS5BTransportPayload.h
@@ -10,13 +10,14 @@
10 10
11#include <boost/shared_ptr.hpp> 11#include <boost/shared_ptr.hpp>
12 12
13#include <Swiften/Base/API.h>
13#include <Swiften/Elements/JingleTransportPayload.h> 14#include <Swiften/Elements/JingleTransportPayload.h>
14#include <Swiften/Elements/Bytestreams.h> 15#include <Swiften/Elements/Bytestreams.h>
15#include <Swiften/Network/HostAddressPort.h> 16#include <Swiften/Network/HostAddressPort.h>
16 17
17 18
18namespace Swift { 19namespace Swift {
19 class JingleS5BTransportPayload : public JingleTransportPayload { 20 class SWIFTEN_API JingleS5BTransportPayload : public JingleTransportPayload {
20 public: 21 public:
21 enum Mode { 22 enum Mode {
22 TCPMode, // default case 23 TCPMode, // default case
diff --git a/Swiften/Elements/JingleTransportPayload.h b/Swiften/Elements/JingleTransportPayload.h
index 522ff17..70f3d25 100644
--- a/Swiften/Elements/JingleTransportPayload.h
+++ b/Swiften/Elements/JingleTransportPayload.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,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/Elements/Payload.h> 12#include <Swiften/Elements/Payload.h>
12 13
13namespace Swift { 14namespace Swift {
14 class JingleTransportPayload : public Payload { 15 class SWIFTEN_API JingleTransportPayload : public Payload {
15 public: 16 public:
16 void setSessionID(const std::string& id) { 17 void setSessionID(const std::string& id) {
17 sessionID = id; 18 sessionID = id;
diff --git a/Swiften/Elements/Last.h b/Swiften/Elements/Last.h
index 1775a8a..68cf7a7 100644
--- a/Swiften/Elements/Last.h
+++ b/Swiften/Elements/Last.h
@@ -1,15 +1,16 @@
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/Elements/Payload.h> 10#include <Swiften/Elements/Payload.h>
10 11
11namespace Swift { 12namespace Swift {
12 class Last : public Payload { 13 class SWIFTEN_API Last : public Payload {
13 public: 14 public:
14 Last(int seconds = 0) : seconds_(seconds) {} 15 Last(int seconds = 0) : seconds_(seconds) {}
15 16
diff --git a/Swiften/Elements/MUCAdminPayload.h b/Swiften/Elements/MUCAdminPayload.h
index 259979f..b271f06 100644
--- a/Swiften/Elements/MUCAdminPayload.h
+++ b/Swiften/Elements/MUCAdminPayload.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 */
@@ -11,13 +11,14 @@
11#include <string> 11#include <string>
12#include <vector> 12#include <vector>
13 13
14#include <Swiften/Base/API.h>
14#include <Swiften/JID/JID.h> 15#include <Swiften/JID/JID.h>
15#include <Swiften/Elements/Payload.h> 16#include <Swiften/Elements/Payload.h>
16#include <Swiften/Elements/MUCOccupant.h> 17#include <Swiften/Elements/MUCOccupant.h>
17#include <Swiften/Elements/MUCItem.h> 18#include <Swiften/Elements/MUCItem.h>
18 19
19namespace Swift { 20namespace Swift {
20 class MUCAdminPayload : public Payload { 21 class SWIFTEN_API MUCAdminPayload : public Payload {
21 public: 22 public:
22 typedef boost::shared_ptr<MUCAdminPayload> ref; 23 typedef boost::shared_ptr<MUCAdminPayload> ref;
23 24
diff --git a/Swiften/Elements/MUCDestroyPayload.h b/Swiften/Elements/MUCDestroyPayload.h
index 73649b4..b68f97c 100644
--- a/Swiften/Elements/MUCDestroyPayload.h
+++ b/Swiften/Elements/MUCDestroyPayload.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 <string> 9#include <string>
10 10
11#include <Swiften/Base/API.h>
11#include <Swiften/Elements/Payload.h> 12#include <Swiften/Elements/Payload.h>
12#include <Swiften/JID/JID.h> 13#include <Swiften/JID/JID.h>
13 14
14namespace Swift { 15namespace Swift {
15 class MUCDestroyPayload : public Payload { 16 class SWIFTEN_API MUCDestroyPayload : public Payload {
16 public: 17 public:
17 typedef boost::shared_ptr<MUCDestroyPayload> ref; 18 typedef boost::shared_ptr<MUCDestroyPayload> ref;
18 19
diff --git a/Swiften/Elements/MUCInvitationPayload.h b/Swiften/Elements/MUCInvitationPayload.h
index dcebe4f..fd92a83 100644
--- a/Swiften/Elements/MUCInvitationPayload.h
+++ b/Swiften/Elements/MUCInvitationPayload.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 <string> 9#include <string>
10 10
11#include <Swiften/Base/API.h>
11#include <Swiften/Elements/Payload.h> 12#include <Swiften/Elements/Payload.h>
12#include <Swiften/JID/JID.h> 13#include <Swiften/JID/JID.h>
13 14
14namespace Swift { 15namespace Swift {
15 class MUCInvitationPayload : public Payload { 16 class SWIFTEN_API MUCInvitationPayload : public Payload {
16 public: 17 public:
17 typedef boost::shared_ptr<MUCInvitationPayload> ref; 18 typedef boost::shared_ptr<MUCInvitationPayload> ref;
18 MUCInvitationPayload() : continuation_(false), impromptu_(false) { 19 MUCInvitationPayload() : continuation_(false), impromptu_(false) {
diff --git a/Swiften/Elements/MUCOwnerPayload.h b/Swiften/Elements/MUCOwnerPayload.h
index 9cad0f0..09166b6 100644
--- a/Swiften/Elements/MUCOwnerPayload.h
+++ b/Swiften/Elements/MUCOwnerPayload.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/optional.hpp> 9#include <boost/optional.hpp>
10 10
11#include <Swiften/Base/API.h>
11#include <Swiften/Elements/Payload.h> 12#include <Swiften/Elements/Payload.h>
12#include <Swiften/Elements/Form.h> 13#include <Swiften/Elements/Form.h>
13 14
14namespace Swift { 15namespace Swift {
15 class MUCOwnerPayload : public Payload { 16 class SWIFTEN_API MUCOwnerPayload : public Payload {
16 public: 17 public:
17 typedef boost::shared_ptr<MUCOwnerPayload> ref; 18 typedef boost::shared_ptr<MUCOwnerPayload> ref;
18 19
diff --git a/Swiften/Elements/MUCPayload.h b/Swiften/Elements/MUCPayload.h
index 14b57c4..dadfc6a 100644
--- a/Swiften/Elements/MUCPayload.h
+++ b/Swiften/Elements/MUCPayload.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 */
@@ -9,12 +9,13 @@
9#include <boost/optional.hpp> 9#include <boost/optional.hpp>
10#include <boost/date_time/posix_time/posix_time_types.hpp> 10#include <boost/date_time/posix_time/posix_time_types.hpp>
11 11
12#include <Swiften/Base/API.h>
12#include <Swiften/JID/JID.h> 13#include <Swiften/JID/JID.h>
13#include <string> 14#include <string>
14#include <Swiften/Elements/Payload.h> 15#include <Swiften/Elements/Payload.h>
15 16
16namespace Swift { 17namespace Swift {
17 class MUCPayload : public Payload { 18 class SWIFTEN_API MUCPayload : public Payload {
18 public: 19 public:
19 typedef boost::shared_ptr<MUCPayload> ref; 20 typedef boost::shared_ptr<MUCPayload> ref;
20 21
diff --git a/Swiften/Elements/MUCUserPayload.h b/Swiften/Elements/MUCUserPayload.h
index 7109845..ed31816 100644
--- a/Swiften/Elements/MUCUserPayload.h
+++ b/Swiften/Elements/MUCUserPayload.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 */
@@ -11,13 +11,14 @@
11#include <string> 11#include <string>
12#include <vector> 12#include <vector>
13 13
14#include <Swiften/Base/API.h>
14#include <Swiften/JID/JID.h> 15#include <Swiften/JID/JID.h>
15#include <Swiften/Elements/Payload.h> 16#include <Swiften/Elements/Payload.h>
16#include <Swiften/Elements/MUCOccupant.h> 17#include <Swiften/Elements/MUCOccupant.h>
17#include <Swiften/Elements/MUCItem.h> 18#include <Swiften/Elements/MUCItem.h>
18 19
19namespace Swift { 20namespace Swift {
20 class MUCUserPayload : public Payload { 21 class SWIFTEN_API MUCUserPayload : public Payload {
21 public: 22 public:
22 typedef boost::shared_ptr<MUCUserPayload> ref; 23 typedef boost::shared_ptr<MUCUserPayload> ref;
23 24
diff --git a/Swiften/Elements/Message.h b/Swiften/Elements/Message.h
index b1ce349..f6c16e4 100644
--- a/Swiften/Elements/Message.h
+++ b/Swiften/Elements/Message.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 */
@@ -11,6 +11,7 @@
11#include <boost/smart_ptr/make_shared.hpp> 11#include <boost/smart_ptr/make_shared.hpp>
12 12
13#include <string> 13#include <string>
14#include <Swiften/Base/API.h>
14#include <Swiften/Elements/Body.h> 15#include <Swiften/Elements/Body.h>
15#include <Swiften/Elements/Subject.h> 16#include <Swiften/Elements/Subject.h>
16#include <Swiften/Elements/ErrorPayload.h> 17#include <Swiften/Elements/ErrorPayload.h>
@@ -18,7 +19,7 @@
18#include <Swiften/Elements/Replace.h> 19#include <Swiften/Elements/Replace.h>
19 20
20namespace Swift { 21namespace Swift {
21 class Message : public Stanza { 22 class SWIFTEN_API Message : public Stanza {
22 public: 23 public:
23 typedef boost::shared_ptr<Message> ref; 24 typedef boost::shared_ptr<Message> ref;
24 25
diff --git a/Swiften/Elements/Nickname.h b/Swiften/Elements/Nickname.h
index c6f3a31..2c62720 100644
--- a/Swiften/Elements/Nickname.h
+++ b/Swiften/Elements/Nickname.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/Elements/Payload.h> 10#include <Swiften/Elements/Payload.h>
10#include <string> 11#include <string>
11 12
12namespace Swift { 13namespace Swift {
13 class Nickname : public Payload { 14 class SWIFTEN_API Nickname : public Payload {
14 public: 15 public:
15 Nickname(const std::string& nickname = "") : nickname(nickname) { 16 Nickname(const std::string& nickname = "") : nickname(nickname) {
16 } 17 }
diff --git a/Swiften/Elements/Priority.h b/Swiften/Elements/Priority.h
index affb67b..6de42b4 100644
--- a/Swiften/Elements/Priority.h
+++ b/Swiften/Elements/Priority.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/Elements/Payload.h> 10#include <Swiften/Elements/Payload.h>
10 11
11namespace Swift { 12namespace Swift {
12 class Priority : public Payload { 13 class SWIFTEN_API Priority : public Payload {
13 public: 14 public:
14 Priority(int priority = 0) : priority_(priority) { 15 Priority(int priority = 0) : priority_(priority) {
15 } 16 }
diff --git a/Swiften/Elements/PrivateStorage.h b/Swiften/Elements/PrivateStorage.h
index 02b18c1..15455b8 100644
--- a/Swiften/Elements/PrivateStorage.h
+++ b/Swiften/Elements/PrivateStorage.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,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/Elements/Payload.h> 12#include <Swiften/Elements/Payload.h>
12 13
13namespace Swift { 14namespace Swift {
14 class PrivateStorage : public Payload { 15 class SWIFTEN_API PrivateStorage : public Payload {
15 public: 16 public:
16 PrivateStorage(boost::shared_ptr<Payload> payload = boost::shared_ptr<Payload>()) : payload(payload) { 17 PrivateStorage(boost::shared_ptr<Payload> payload = boost::shared_ptr<Payload>()) : payload(payload) {
17 } 18 }
diff --git a/Swiften/Elements/ProtocolHeader.h b/Swiften/Elements/ProtocolHeader.h
index 428ad1c..a38f806 100644
--- a/Swiften/Elements/ProtocolHeader.h
+++ b/Swiften/Elements/ProtocolHeader.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,8 +8,10 @@
8 8
9#include <string> 9#include <string>
10 10
11#include <Swiften/Base/API.h>
12
11namespace Swift { 13namespace Swift {
12 class ProtocolHeader { 14 class SWIFTEN_API ProtocolHeader {
13 public: 15 public:
14 ProtocolHeader() : version("1.0") {} 16 ProtocolHeader() : version("1.0") {}
15 17
diff --git a/Swiften/Elements/RawXMLPayload.h b/Swiften/Elements/RawXMLPayload.h
index c8e96f8..d1b104d 100644
--- a/Swiften/Elements/RawXMLPayload.h
+++ b/Swiften/Elements/RawXMLPayload.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,10 +8,11 @@
8 8
9#include <string> 9#include <string>
10 10
11#include <Swiften/Base/API.h>
11#include <Swiften/Elements/Payload.h> 12#include <Swiften/Elements/Payload.h>
12 13
13namespace Swift { 14namespace Swift {
14 class RawXMLPayload : public Payload { 15 class SWIFTEN_API RawXMLPayload : public Payload {
15 public: 16 public:
16 RawXMLPayload(const std::string& data = "") : rawXML_(data) {} 17 RawXMLPayload(const std::string& data = "") : rawXML_(data) {}
17 18
diff --git a/Swiften/Elements/Replace.h b/Swiften/Elements/Replace.h
index 96935f5..eadc8fd 100644
--- a/Swiften/Elements/Replace.h
+++ b/Swiften/Elements/Replace.h
@@ -4,15 +4,22 @@
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
9#include <boost/shared_ptr.hpp> 15#include <boost/shared_ptr.hpp>
10#include <string> 16#include <string>
11 17
18#include <Swiften/Base/API.h>
12#include <Swiften/Elements/Payload.h> 19#include <Swiften/Elements/Payload.h>
13 20
14namespace Swift { 21namespace Swift {
15 class Replace : public Payload { 22 class SWIFTEN_API Replace : public Payload {
16 public: 23 public:
17 typedef boost::shared_ptr<Replace> ref; 24 typedef boost::shared_ptr<Replace> ref;
18 Replace(const std::string& id = std::string()) : replaceID_(id) {} 25 Replace(const std::string& id = std::string()) : replaceID_(id) {}
diff --git a/Swiften/Elements/ResourceBind.h b/Swiften/Elements/ResourceBind.h
index 15b2c41..01d7e8b 100644
--- a/Swiften/Elements/ResourceBind.h
+++ b/Swiften/Elements/ResourceBind.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 */
@@ -7,11 +7,13 @@
7#pragma once 7#pragma once
8 8
9#include <string> 9#include <string>
10
11#include <Swiften/Base/API.h>
10#include <Swiften/Elements/Payload.h> 12#include <Swiften/Elements/Payload.h>
11#include <Swiften/JID/JID.h> 13#include <Swiften/JID/JID.h>
12 14
13namespace Swift { 15namespace Swift {
14 class ResourceBind : public Payload { 16 class SWIFTEN_API ResourceBind : public Payload {
15 public: 17 public:
16 ResourceBind() {} 18 ResourceBind() {}
17 19
diff --git a/Swiften/Elements/RosterItemPayload.h b/Swiften/Elements/RosterItemPayload.h
index f6d95ed..2228529 100644
--- a/Swiften/Elements/RosterItemPayload.h
+++ b/Swiften/Elements/RosterItemPayload.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 */
@@ -9,10 +9,11 @@
9#include <vector> 9#include <vector>
10#include <string> 10#include <string>
11 11
12#include <Swiften/Base/API.h>
12#include <Swiften/JID/JID.h> 13#include <Swiften/JID/JID.h>
13 14
14namespace Swift { 15namespace Swift {
15 class RosterItemPayload { 16 class SWIFTEN_API RosterItemPayload {
16 public: 17 public:
17 enum Subscription { None, To, From, Both, Remove }; 18 enum Subscription { None, To, From, Both, Remove };
18 19
diff --git a/Swiften/Elements/S5BProxyRequest.h b/Swiften/Elements/S5BProxyRequest.h
index b7541fc..2732f18 100644
--- a/Swiften/Elements/S5BProxyRequest.h
+++ b/Swiften/Elements/S5BProxyRequest.h
@@ -16,13 +16,14 @@
16 16
17#include <boost/optional.hpp> 17#include <boost/optional.hpp>
18 18
19#include <Swiften/Base/API.h>
19#include <Swiften/Elements/Payload.h> 20#include <Swiften/Elements/Payload.h>
20#include <Swiften/JID/JID.h> 21#include <Swiften/JID/JID.h>
21#include <Swiften/Network/HostAddressPort.h> 22#include <Swiften/Network/HostAddressPort.h>
22 23
23namespace Swift { 24namespace Swift {
24 25
25class S5BProxyRequest : public Payload { 26class SWIFTEN_API S5BProxyRequest : public Payload {
26public: 27public:
27 typedef boost::shared_ptr<S5BProxyRequest> ref; 28 typedef boost::shared_ptr<S5BProxyRequest> ref;
28 29
diff --git a/Swiften/Elements/SearchPayload.h b/Swiften/Elements/SearchPayload.h
index d3cb997..1b1df0f 100644
--- a/Swiften/Elements/SearchPayload.h
+++ b/Swiften/Elements/SearchPayload.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 */
@@ -9,6 +9,7 @@
9#include <boost/shared_ptr.hpp> 9#include <boost/shared_ptr.hpp>
10#include <boost/optional.hpp> 10#include <boost/optional.hpp>
11 11
12#include <Swiften/Base/API.h>
12#include <Swiften/Elements/Payload.h> 13#include <Swiften/Elements/Payload.h>
13#include <Swiften/Elements/Form.h> 14#include <Swiften/Elements/Form.h>
14#include <string> 15#include <string>
@@ -17,7 +18,7 @@ namespace Swift {
17 /** 18 /**
18 * XEP-0055 search payload. 19 * XEP-0055 search payload.
19 */ 20 */
20 class SearchPayload : public Payload { 21 class SWIFTEN_API SearchPayload : public Payload {
21 public: 22 public:
22 typedef boost::shared_ptr<SearchPayload> ref; 23 typedef boost::shared_ptr<SearchPayload> ref;
23 24
diff --git a/Swiften/Elements/StanzaAck.h b/Swiften/Elements/StanzaAck.h
index cd2fa34..d976802 100644
--- a/Swiften/Elements/StanzaAck.h
+++ b/Swiften/Elements/StanzaAck.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/Elements/ToplevelElement.h> 12#include <Swiften/Elements/ToplevelElement.h>
12 13
13namespace Swift { 14namespace Swift {
14 class StanzaAck : public ToplevelElement { 15 class SWIFTEN_API StanzaAck : public ToplevelElement {
15 public: 16 public:
16 typedef boost::shared_ptr<StanzaAck> ref; 17 typedef boost::shared_ptr<StanzaAck> ref;
17 18
diff --git a/Swiften/Elements/StanzaAckRequest.h b/Swiften/Elements/StanzaAckRequest.h
index ccddbf2..dc3bf32 100644
--- a/Swiften/Elements/StanzaAckRequest.h
+++ b/Swiften/Elements/StanzaAckRequest.h
@@ -1,15 +1,15 @@
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/Elements/ToplevelElement.h> 10#include <Swiften/Elements/ToplevelElement.h>
10 11
11
12namespace Swift { 12namespace Swift {
13 class StanzaAckRequest : public ToplevelElement { 13 class SWIFTEN_API StanzaAckRequest : public ToplevelElement {
14 }; 14 };
15} 15}
diff --git a/Swiften/Elements/StartSession.h b/Swiften/Elements/StartSession.h
index 16e481b..9191ea9 100644
--- a/Swiften/Elements/StartSession.h
+++ b/Swiften/Elements/StartSession.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 */
@@ -7,10 +7,11 @@
7#pragma once 7#pragma once
8 8
9#include <string> 9#include <string>
10#include <Swiften/Base/API.h>
10#include <Swiften/Elements/Payload.h> 11#include <Swiften/Elements/Payload.h>
11 12
12namespace Swift { 13namespace Swift {
13 class StartSession : public Payload { 14 class SWIFTEN_API StartSession : public Payload {
14 public: 15 public:
15 StartSession() {} 16 StartSession() {}
16 }; 17 };
diff --git a/Swiften/Elements/StartTLSFailure.h b/Swiften/Elements/StartTLSFailure.h
index 1d1dd73..1477962 100644
--- a/Swiften/Elements/StartTLSFailure.h
+++ b/Swiften/Elements/StartTLSFailure.h
@@ -1,15 +1,16 @@
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/Elements/ToplevelElement.h> 10#include <Swiften/Elements/ToplevelElement.h>
10 11
11namespace Swift { 12namespace Swift {
12 class StartTLSFailure : public ToplevelElement { 13 class SWIFTEN_API StartTLSFailure : public ToplevelElement {
13 public: 14 public:
14 StartTLSFailure() {} 15 StartTLSFailure() {}
15 }; 16 };
diff --git a/Swiften/Elements/StartTLSRequest.h b/Swiften/Elements/StartTLSRequest.h
index 7325abb..648eef7 100644
--- a/Swiften/Elements/StartTLSRequest.h
+++ b/Swiften/Elements/StartTLSRequest.h
@@ -1,15 +1,16 @@
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/Elements/ToplevelElement.h> 10#include <Swiften/Elements/ToplevelElement.h>
10 11
11namespace Swift { 12namespace Swift {
12 class StartTLSRequest : public ToplevelElement { 13 class SWIFTEN_API StartTLSRequest : public ToplevelElement {
13 public: 14 public:
14 StartTLSRequest() {} 15 StartTLSRequest() {}
15 }; 16 };
diff --git a/Swiften/Elements/Status.h b/Swiften/Elements/Status.h
index 58df37d..a7620e4 100644
--- a/Swiften/Elements/Status.h
+++ b/Swiften/Elements/Status.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/Elements/Payload.h> 10#include <Swiften/Elements/Payload.h>
10#include <string> 11#include <string>
11 12
12namespace Swift { 13namespace Swift {
13 class Status : public Payload { 14 class SWIFTEN_API Status : public Payload {
14 public: 15 public:
15 Status(const std::string& text = "") : text_(text) { 16 Status(const std::string& text = "") : text_(text) {
16 } 17 }
diff --git a/Swiften/Elements/Storage.h b/Swiften/Elements/Storage.h
index 24f11da..8bbbc55 100644
--- a/Swiften/Elements/Storage.h
+++ b/Swiften/Elements/Storage.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 */
@@ -12,11 +12,12 @@
12 12
13#include <Swiften/Elements/Payload.h> 13#include <Swiften/Elements/Payload.h>
14#include <string> 14#include <string>
15#include <Swiften/Base/API.h>
15#include <Swiften/JID/JID.h> 16#include <Swiften/JID/JID.h>
16#include <Swiften/Base/SafeString.h> 17#include <Swiften/Base/SafeString.h>
17 18
18namespace Swift { 19namespace Swift {
19 class Storage : public Payload { 20 class SWIFTEN_API Storage : public Payload {
20 public: 21 public:
21 struct Room { 22 struct Room {
22 Room() : autoJoin(false) {} 23 Room() : autoJoin(false) {}
diff --git a/Swiften/Elements/StreamError.h b/Swiften/Elements/StreamError.h
index 24f8b53..5a15f40 100644
--- a/Swiften/Elements/StreamError.h
+++ b/Swiften/Elements/StreamError.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/ToplevelElement.h> 12#include <Swiften/Elements/ToplevelElement.h>
12#include <string> 13#include <string>
13 14
14namespace Swift { 15namespace Swift {
15 class StreamError : public ToplevelElement { 16 class SWIFTEN_API StreamError : public ToplevelElement {
16 public: 17 public:
17 typedef boost::shared_ptr<StreamError> ref; 18 typedef boost::shared_ptr<StreamError> ref;
18 19
diff --git a/Swiften/Elements/StreamInitiation.h b/Swiften/Elements/StreamInitiation.h
index 672af30..53c8f11 100644
--- a/Swiften/Elements/StreamInitiation.h
+++ b/Swiften/Elements/StreamInitiation.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 */
@@ -11,11 +11,12 @@
11#include <boost/shared_ptr.hpp> 11#include <boost/shared_ptr.hpp>
12 12
13#include <string> 13#include <string>
14#include <Swiften/Base/API.h>
14#include <Swiften/Elements/Payload.h> 15#include <Swiften/Elements/Payload.h>
15#include <Swiften/Elements/StreamInitiationFileInfo.h> 16#include <Swiften/Elements/StreamInitiationFileInfo.h>
16 17
17namespace Swift { 18namespace Swift {
18 class StreamInitiation : public Payload { 19 class SWIFTEN_API StreamInitiation : public Payload {
19 public: 20 public:
20 typedef boost::shared_ptr<StreamInitiation> ref; 21 typedef boost::shared_ptr<StreamInitiation> ref;
21 22
diff --git a/Swiften/Elements/StreamInitiationFileInfo.h b/Swiften/Elements/StreamInitiationFileInfo.h
index bee0ff0..bd920a0 100644
--- a/Swiften/Elements/StreamInitiationFileInfo.h
+++ b/Swiften/Elements/StreamInitiationFileInfo.h
@@ -1,11 +1,12 @@
1/* 1/*
2 * Copyright (c) 2011-2013 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/Elements/Payload.h> 10#include <Swiften/Elements/Payload.h>
10#include <boost/shared_ptr.hpp> 11#include <boost/shared_ptr.hpp>
11#include <boost/date_time/posix_time/posix_time_types.hpp> 12#include <boost/date_time/posix_time/posix_time_types.hpp>
@@ -14,7 +15,7 @@
14 15
15namespace Swift { 16namespace Swift {
16 17
17class StreamInitiationFileInfo : public Payload { 18class SWIFTEN_API StreamInitiationFileInfo : public Payload {
18public: 19public:
19 typedef boost::shared_ptr<StreamInitiationFileInfo> ref; 20 typedef boost::shared_ptr<StreamInitiationFileInfo> ref;
20 21
diff --git a/Swiften/Elements/StreamManagementFailed.h b/Swiften/Elements/StreamManagementFailed.h
index 97887cc..70781d7 100644
--- a/Swiften/Elements/StreamManagementFailed.h
+++ b/Swiften/Elements/StreamManagementFailed.h
@@ -1,16 +1,16 @@
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/Elements/ToplevelElement.h> 10#include <Swiften/Elements/ToplevelElement.h>
10 11
11
12namespace Swift { 12namespace Swift {
13 class StreamManagementFailed : public ToplevelElement { 13 class SWIFTEN_API StreamManagementFailed : public ToplevelElement {
14 public: 14 public:
15 StreamManagementFailed() {} 15 StreamManagementFailed() {}
16 }; 16 };
diff --git a/Swiften/Elements/StreamResume.h b/Swiften/Elements/StreamResume.h
index ce531f3..ca08546 100644
--- a/Swiften/Elements/StreamResume.h
+++ b/Swiften/Elements/StreamResume.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 */
@@ -9,10 +9,11 @@
9#include <string> 9#include <string>
10#include <boost/optional.hpp> 10#include <boost/optional.hpp>
11 11
12#include <Swiften/Base/API.h>
12#include <Swiften/Elements/ToplevelElement.h> 13#include <Swiften/Elements/ToplevelElement.h>
13 14
14namespace Swift { 15namespace Swift {
15 class StreamResume : public ToplevelElement { 16 class SWIFTEN_API StreamResume : public ToplevelElement {
16 public: 17 public:
17 StreamResume(); 18 StreamResume();
18 ~StreamResume(); 19 ~StreamResume();
diff --git a/Swiften/Elements/StreamResumed.h b/Swiften/Elements/StreamResumed.h
index 5acecf8..68e0688 100644
--- a/Swiften/Elements/StreamResumed.h
+++ b/Swiften/Elements/StreamResumed.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 */
@@ -9,10 +9,11 @@
9#include <string> 9#include <string>
10#include <boost/optional.hpp> 10#include <boost/optional.hpp>
11 11
12#include <Swiften/Base/API.h>
12#include <Swiften/Elements/ToplevelElement.h> 13#include <Swiften/Elements/ToplevelElement.h>
13 14
14namespace Swift { 15namespace Swift {
15 class StreamResumed : public ToplevelElement { 16 class SWIFTEN_API StreamResumed : public ToplevelElement {
16 public: 17 public:
17 StreamResumed(); 18 StreamResumed();
18 ~StreamResumed(); 19 ~StreamResumed();
diff --git a/Swiften/Elements/Subject.h b/Swiften/Elements/Subject.h
index cd748c1..b25c31d 100644
--- a/Swiften/Elements/Subject.h
+++ b/Swiften/Elements/Subject.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/Elements/Payload.h> 10#include <Swiften/Elements/Payload.h>
10#include <string> 11#include <string>
11 12
12namespace Swift { 13namespace Swift {
13 class Subject : public Payload { 14 class SWIFTEN_API Subject : public Payload {
14 public: 15 public:
15 Subject(const std::string& text = "") : text_(text) { 16 Subject(const std::string& text = "") : text_(text) {
16 } 17 }
diff --git a/Swiften/Elements/TLSProceed.h b/Swiften/Elements/TLSProceed.h
index fee6876..4e05511 100644
--- a/Swiften/Elements/TLSProceed.h
+++ b/Swiften/Elements/TLSProceed.h
@@ -1,15 +1,16 @@
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/Elements/ToplevelElement.h> 10#include <Swiften/Elements/ToplevelElement.h>
10 11
11namespace Swift { 12namespace Swift {
12 class TLSProceed : public ToplevelElement { 13 class SWIFTEN_API TLSProceed : public ToplevelElement {
13 public: 14 public:
14 TLSProceed() {} 15 TLSProceed() {}
15 }; 16 };
diff --git a/Swiften/Elements/UnblockPayload.h b/Swiften/Elements/UnblockPayload.h
index 3b6ce6c..20459e2 100644
--- a/Swiften/Elements/UnblockPayload.h
+++ b/Swiften/Elements/UnblockPayload.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 <vector> 9#include <vector>
10 10
11#include <Swiften/Base/API.h>
11#include <Swiften/JID/JID.h> 12#include <Swiften/JID/JID.h>
12#include <Swiften/Elements/Payload.h> 13#include <Swiften/Elements/Payload.h>
13 14
14namespace Swift { 15namespace Swift {
15 class UnblockPayload : public Payload { 16 class SWIFTEN_API UnblockPayload : public Payload {
16 public: 17 public:
17 UnblockPayload(const std::vector<JID>& jids = std::vector<JID>()) : items(jids) { 18 UnblockPayload(const std::vector<JID>& jids = std::vector<JID>()) : items(jids) {
18 } 19 }
diff --git a/Swiften/Elements/UnknownElement.h b/Swiften/Elements/UnknownElement.h
index 2d4593b..1d71e6b 100644
--- a/Swiften/Elements/UnknownElement.h
+++ b/Swiften/Elements/UnknownElement.h
@@ -1,15 +1,16 @@
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/Elements/ToplevelElement.h> 10#include <Swiften/Elements/ToplevelElement.h>
10 11
11namespace Swift { 12namespace Swift {
12 class UnknownElement : public ToplevelElement { 13 class SWIFTEN_API UnknownElement : public ToplevelElement {
13 public: 14 public:
14 UnknownElement() {} 15 UnknownElement() {}
15 }; 16 };
diff --git a/Swiften/Elements/VCard.h b/Swiften/Elements/VCard.h
index 3e720b5..54f52c2 100644
--- a/Swiften/Elements/VCard.h
+++ b/Swiften/Elements/VCard.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 */
@@ -10,12 +10,13 @@
10#include <boost/date_time/posix_time/ptime.hpp> 10#include <boost/date_time/posix_time/ptime.hpp>
11 11
12#include <string> 12#include <string>
13#include <Swiften/Base/API.h>
13#include <Swiften/JID/JID.h> 14#include <Swiften/JID/JID.h>
14#include <Swiften/Base/ByteArray.h> 15#include <Swiften/Base/ByteArray.h>
15#include <Swiften/Elements/Payload.h> 16#include <Swiften/Elements/Payload.h>
16 17
17namespace Swift { 18namespace Swift {
18 class VCard : public Payload { 19 class SWIFTEN_API VCard : public Payload {
19 public: 20 public:
20 typedef boost::shared_ptr<VCard> ref; 21 typedef boost::shared_ptr<VCard> ref;
21 22
diff --git a/Swiften/Elements/VCardUpdate.h b/Swiften/Elements/VCardUpdate.h
index 6df0233..ded26c9 100644
--- a/Swiften/Elements/VCardUpdate.h
+++ b/Swiften/Elements/VCardUpdate.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 */
@@ -7,10 +7,12 @@
7#pragma once 7#pragma once
8 8
9#include <string> 9#include <string>
10
11#include <Swiften/Base/API.h>
10#include <Swiften/Elements/Payload.h> 12#include <Swiften/Elements/Payload.h>
11 13
12namespace Swift { 14namespace Swift {
13 class VCardUpdate : public Payload { 15 class SWIFTEN_API VCardUpdate : public Payload {
14 public: 16 public:
15 VCardUpdate(const std::string& photoHash = "") : photoHash_(photoHash) {} 17 VCardUpdate(const std::string& photoHash = "") : photoHash_(photoHash) {}
16 18
diff --git a/Swiften/Elements/Version.h b/Swiften/Elements/Version.h
index a76a592..b14dcf0 100644
--- a/Swiften/Elements/Version.h
+++ b/Swiften/Elements/Version.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 */
@@ -7,10 +7,12 @@
7#pragma once 7#pragma once
8 8
9#include <string> 9#include <string>
10
11#include <Swiften/Base/API.h>
10#include <Swiften/Elements/Payload.h> 12#include <Swiften/Elements/Payload.h>
11 13
12namespace Swift { 14namespace Swift {
13 class Version : public Payload { 15 class SWIFTEN_API Version : public Payload {
14 public: 16 public:
15 Version(const std::string& name = "", const std::string& version = "", const std::string& os = "") : name_(name), version_(version), os_(os) { } 17 Version(const std::string& name = "", const std::string& version = "", const std::string& os = "") : name_(name), version_(version), os_(os) { }
16 18
diff --git a/Swiften/Elements/Whiteboard/WhiteboardDeleteOperation.h b/Swiften/Elements/Whiteboard/WhiteboardDeleteOperation.h
index 95015c9..297e75a 100644
--- a/Swiften/Elements/Whiteboard/WhiteboardDeleteOperation.h
+++ b/Swiften/Elements/Whiteboard/WhiteboardDeleteOperation.h
@@ -4,14 +4,20 @@
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/Whiteboard/WhiteboardOperation.h> 16#include <Swiften/Elements/Whiteboard/WhiteboardOperation.h>
10
11#include <Swiften/Elements/Whiteboard/WhiteboardElement.h> 17#include <Swiften/Elements/Whiteboard/WhiteboardElement.h>
12 18
13namespace Swift { 19namespace Swift {
14 class WhiteboardDeleteOperation : public WhiteboardOperation { 20 class SWIFTEN_API WhiteboardDeleteOperation : public WhiteboardOperation {
15 public: 21 public:
16 typedef boost::shared_ptr<WhiteboardDeleteOperation> ref; 22 typedef boost::shared_ptr<WhiteboardDeleteOperation> ref;
17 public: 23 public:
diff --git a/Swiften/Elements/Whiteboard/WhiteboardEllipseElement.h b/Swiften/Elements/Whiteboard/WhiteboardEllipseElement.h
index 0078479..88d0907 100644
--- a/Swiften/Elements/Whiteboard/WhiteboardEllipseElement.h
+++ b/Swiften/Elements/Whiteboard/WhiteboardEllipseElement.h
@@ -4,13 +4,20 @@
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/Whiteboard/WhiteboardElement.h> 16#include <Swiften/Elements/Whiteboard/WhiteboardElement.h>
10#include <Swiften/Elements/Whiteboard/WhiteboardColor.h> 17#include <Swiften/Elements/Whiteboard/WhiteboardColor.h>
11 18
12namespace Swift { 19namespace Swift {
13 class WhiteboardEllipseElement : public WhiteboardElement { 20 class SWIFTEN_API WhiteboardEllipseElement : public WhiteboardElement {
14 public: 21 public:
15 typedef boost::shared_ptr<WhiteboardEllipseElement> ref; 22 typedef boost::shared_ptr<WhiteboardEllipseElement> ref;
16 public: 23 public:
diff --git a/Swiften/Elements/Whiteboard/WhiteboardFreehandPathElement.h b/Swiften/Elements/Whiteboard/WhiteboardFreehandPathElement.h
index bcf3bf9..6e200fd 100644
--- a/Swiften/Elements/Whiteboard/WhiteboardFreehandPathElement.h
+++ b/Swiften/Elements/Whiteboard/WhiteboardFreehandPathElement.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/Whiteboard/WhiteboardElement.h> 16#include <Swiften/Elements/Whiteboard/WhiteboardElement.h>
10#include <Swiften/Elements/Whiteboard/WhiteboardColor.h> 17#include <Swiften/Elements/Whiteboard/WhiteboardColor.h>
11 18
@@ -13,7 +20,7 @@
13#include <utility> 20#include <utility>
14 21
15namespace Swift { 22namespace Swift {
16 class WhiteboardFreehandPathElement : public WhiteboardElement { 23 class SWIFTEN_API WhiteboardFreehandPathElement : public WhiteboardElement {
17 typedef std::pair<int, int> Point; 24 typedef std::pair<int, int> Point;
18 public: 25 public:
19 typedef boost::shared_ptr<WhiteboardFreehandPathElement> ref; 26 typedef boost::shared_ptr<WhiteboardFreehandPathElement> ref;
diff --git a/Swiften/Elements/Whiteboard/WhiteboardInsertOperation.h b/Swiften/Elements/Whiteboard/WhiteboardInsertOperation.h
index fd52405..d52adc2 100644
--- a/Swiften/Elements/Whiteboard/WhiteboardInsertOperation.h
+++ b/Swiften/Elements/Whiteboard/WhiteboardInsertOperation.h
@@ -4,14 +4,20 @@
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/Whiteboard/WhiteboardOperation.h> 16#include <Swiften/Elements/Whiteboard/WhiteboardOperation.h>
10
11#include <Swiften/Elements/Whiteboard/WhiteboardElement.h> 17#include <Swiften/Elements/Whiteboard/WhiteboardElement.h>
12 18
13namespace Swift { 19namespace Swift {
14 class WhiteboardInsertOperation : public WhiteboardOperation { 20 class SWIFTEN_API WhiteboardInsertOperation : public WhiteboardOperation {
15 public: 21 public:
16 typedef boost::shared_ptr<WhiteboardInsertOperation> ref; 22 typedef boost::shared_ptr<WhiteboardInsertOperation> ref;
17 public: 23 public:
diff --git a/Swiften/Elements/Whiteboard/WhiteboardLineElement.h b/Swiften/Elements/Whiteboard/WhiteboardLineElement.h
index 51aab35..267fb33 100644
--- a/Swiften/Elements/Whiteboard/WhiteboardLineElement.h
+++ b/Swiften/Elements/Whiteboard/WhiteboardLineElement.h
@@ -5,7 +5,7 @@
5 */ 5 */
6 6
7/* 7/*
8 * Copyright (c) 2014 Isode Limited. 8 * Copyright (c) 2014-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 */
@@ -13,11 +13,12 @@
13 13
14#pragma once 14#pragma once
15 15
16#include <Swiften/Base/API.h>
16#include <Swiften/Elements/Whiteboard/WhiteboardElement.h> 17#include <Swiften/Elements/Whiteboard/WhiteboardElement.h>
17#include <Swiften/Elements/Whiteboard/WhiteboardColor.h> 18#include <Swiften/Elements/Whiteboard/WhiteboardColor.h>
18 19
19namespace Swift { 20namespace Swift {
20 class WhiteboardLineElement : public WhiteboardElement { 21 class SWIFTEN_API WhiteboardLineElement : public WhiteboardElement {
21 public: 22 public:
22 typedef boost::shared_ptr<WhiteboardLineElement> ref; 23 typedef boost::shared_ptr<WhiteboardLineElement> ref;
23 public: 24 public:
diff --git a/Swiften/Elements/Whiteboard/WhiteboardPolygonElement.h b/Swiften/Elements/Whiteboard/WhiteboardPolygonElement.h
index 679ac01..f885d3b 100644
--- a/Swiften/Elements/Whiteboard/WhiteboardPolygonElement.h
+++ b/Swiften/Elements/Whiteboard/WhiteboardPolygonElement.h
@@ -4,13 +4,20 @@
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/Whiteboard/WhiteboardElement.h> 16#include <Swiften/Elements/Whiteboard/WhiteboardElement.h>
10#include <Swiften/Elements/Whiteboard/WhiteboardColor.h> 17#include <Swiften/Elements/Whiteboard/WhiteboardColor.h>
11 18
12namespace Swift { 19namespace Swift {
13 class WhiteboardPolygonElement : public WhiteboardElement { 20 class SWIFTEN_API WhiteboardPolygonElement : public WhiteboardElement {
14 typedef std::pair<int, int> Point; 21 typedef std::pair<int, int> Point;
15 public: 22 public:
16 typedef boost::shared_ptr<WhiteboardPolygonElement> ref; 23 typedef boost::shared_ptr<WhiteboardPolygonElement> ref;
diff --git a/Swiften/Elements/Whiteboard/WhiteboardRectElement.h b/Swiften/Elements/Whiteboard/WhiteboardRectElement.h
index 75afb4e..f22ab5c 100644
--- a/Swiften/Elements/Whiteboard/WhiteboardRectElement.h
+++ b/Swiften/Elements/Whiteboard/WhiteboardRectElement.h
@@ -5,18 +5,19 @@
5 */ 5 */
6 6
7/* 7/*
8 * Copyright (c) 2014 Isode Limited. 8 * Copyright (c) 2014-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/Elements/Whiteboard/WhiteboardElement.h> 16#include <Swiften/Elements/Whiteboard/WhiteboardElement.h>
16#include <Swiften/Elements/Whiteboard/WhiteboardColor.h> 17#include <Swiften/Elements/Whiteboard/WhiteboardColor.h>
17 18
18namespace Swift { 19namespace Swift {
19 class WhiteboardRectElement : public WhiteboardElement { 20 class SWIFTEN_API WhiteboardRectElement : public WhiteboardElement {
20 public: 21 public:
21 typedef boost::shared_ptr<WhiteboardRectElement> ref; 22 typedef boost::shared_ptr<WhiteboardRectElement> ref;
22 public: 23 public:
diff --git a/Swiften/Elements/Whiteboard/WhiteboardTextElement.h b/Swiften/Elements/Whiteboard/WhiteboardTextElement.h
index 7118ac9..bd9b579 100644
--- a/Swiften/Elements/Whiteboard/WhiteboardTextElement.h
+++ b/Swiften/Elements/Whiteboard/WhiteboardTextElement.h
@@ -4,13 +4,20 @@
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/Whiteboard/WhiteboardElement.h> 16#include <Swiften/Elements/Whiteboard/WhiteboardElement.h>
10#include <Swiften/Elements/Whiteboard/WhiteboardColor.h> 17#include <Swiften/Elements/Whiteboard/WhiteboardColor.h>
11 18
12namespace Swift { 19namespace Swift {
13 class WhiteboardTextElement : public WhiteboardElement { 20 class SWIFTEN_API WhiteboardTextElement : public WhiteboardElement {
14 public: 21 public:
15 typedef boost::shared_ptr<WhiteboardTextElement> ref; 22 typedef boost::shared_ptr<WhiteboardTextElement> ref;
16 public: 23 public:
diff --git a/Swiften/Elements/Whiteboard/WhiteboardUpdateOperation.h b/Swiften/Elements/Whiteboard/WhiteboardUpdateOperation.h
index a68cc7d..af07e8f 100644
--- a/Swiften/Elements/Whiteboard/WhiteboardUpdateOperation.h
+++ b/Swiften/Elements/Whiteboard/WhiteboardUpdateOperation.h
@@ -4,14 +4,20 @@
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/Whiteboard/WhiteboardOperation.h> 16#include <Swiften/Elements/Whiteboard/WhiteboardOperation.h>
10
11#include <Swiften/Elements/Whiteboard/WhiteboardElement.h> 17#include <Swiften/Elements/Whiteboard/WhiteboardElement.h>
12 18
13namespace Swift { 19namespace Swift {
14 class WhiteboardUpdateOperation : public WhiteboardOperation { 20 class SWIFTEN_API WhiteboardUpdateOperation : public WhiteboardOperation {
15 public: 21 public:
16 typedef boost::shared_ptr<WhiteboardUpdateOperation> ref; 22 typedef boost::shared_ptr<WhiteboardUpdateOperation> ref;
17 public: 23 public:
diff --git a/Swiften/Elements/WhiteboardPayload.h b/Swiften/Elements/WhiteboardPayload.h
index ceb2b27..3fcaa33 100644
--- a/Swiften/Elements/WhiteboardPayload.h
+++ b/Swiften/Elements/WhiteboardPayload.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#pragma once 13#pragma once
8 14
9#include <string> 15#include <string>
10 16
17#include <Swiften/Base/API.h>
11#include <Swiften/Elements/Payload.h> 18#include <Swiften/Elements/Payload.h>
12#include <Swiften/Elements/Whiteboard/WhiteboardElement.h> 19#include <Swiften/Elements/Whiteboard/WhiteboardElement.h>
13#include <Swiften/Elements/Whiteboard/WhiteboardOperation.h> 20#include <Swiften/Elements/Whiteboard/WhiteboardOperation.h>
14 21
15namespace Swift { 22namespace Swift {
16 class WhiteboardPayload : public Payload { 23 class SWIFTEN_API WhiteboardPayload : public Payload {
17 public: 24 public:
18 typedef boost::shared_ptr<WhiteboardPayload> ref; 25 typedef boost::shared_ptr<WhiteboardPayload> ref;
19 26
diff --git a/Swiften/Entity/GenericPayloadPersister.h b/Swiften/Entity/GenericPayloadPersister.h
index 258bf4e..6f07c3b 100644
--- a/Swiften/Entity/GenericPayloadPersister.h
+++ b/Swiften/Entity/GenericPayloadPersister.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/Entity/PayloadPersister.h> 10#include <Swiften/Entity/PayloadPersister.h>
10#include <Swiften/Parser/GenericPayloadParserFactory.h> 11#include <Swiften/Parser/GenericPayloadParserFactory.h>
11 12
12namespace Swift { 13namespace Swift {
13 template<typename PAYLOAD, typename PARSER, typename SERIALIZER> 14 template<typename PAYLOAD, typename PARSER, typename SERIALIZER>
14 class GenericPayloadPersister : public PayloadPersister { 15 class SWIFTEN_API GenericPayloadPersister : public PayloadPersister {
15 public: 16 public:
16 GenericPayloadPersister() { 17 GenericPayloadPersister() {
17 } 18 }
diff --git a/Swiften/FileTransfer/ByteArrayReadBytestream.h b/Swiften/FileTransfer/ByteArrayReadBytestream.h
index 108fcef..308d8c5 100644
--- a/Swiften/FileTransfer/ByteArrayReadBytestream.h
+++ b/Swiften/FileTransfer/ByteArrayReadBytestream.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,11 +8,12 @@
8 8
9#include <vector> 9#include <vector>
10 10
11#include <Swiften/Base/API.h>
11#include <Swiften/FileTransfer/ReadBytestream.h> 12#include <Swiften/FileTransfer/ReadBytestream.h>
12#include <Swiften/Base/ByteArray.h> 13#include <Swiften/Base/ByteArray.h>
13 14
14namespace Swift { 15namespace Swift {
15 class ByteArrayReadBytestream : public ReadBytestream { 16 class SWIFTEN_API ByteArrayReadBytestream : public ReadBytestream {
16 public: 17 public:
17 ByteArrayReadBytestream(const std::vector<unsigned char>& data) : data(data), position(0), dataComplete(true) { 18 ByteArrayReadBytestream(const std::vector<unsigned char>& data) : data(data), position(0), dataComplete(true) {
18 } 19 }
diff --git a/Swiften/FileTransfer/ByteArrayWriteBytestream.h b/Swiften/FileTransfer/ByteArrayWriteBytestream.h
index c2c5188..938b1d4 100644
--- a/Swiften/FileTransfer/ByteArrayWriteBytestream.h
+++ b/Swiften/FileTransfer/ByteArrayWriteBytestream.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/FileTransfer/WriteBytestream.h> 10#include <Swiften/FileTransfer/WriteBytestream.h>
10 11
11namespace Swift { 12namespace Swift {
12 class ByteArrayWriteBytestream : public WriteBytestream { 13 class SWIFTEN_API ByteArrayWriteBytestream : public WriteBytestream {
13 public: 14 public:
14 ByteArrayWriteBytestream() { 15 ByteArrayWriteBytestream() {
15 } 16 }
diff --git a/Swiften/FileTransfer/BytestreamException.h b/Swiften/FileTransfer/BytestreamException.h
index ff1b11b..202315e 100644
--- a/Swiften/FileTransfer/BytestreamException.h
+++ b/Swiften/FileTransfer/BytestreamException.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,8 +8,10 @@
8 8
9#include <stdexcept> 9#include <stdexcept>
10 10
11#include <Swiften/Base/API.h>
12
11namespace Swift { 13namespace Swift {
12 class BytestreamException : public std::exception { 14 class SWIFTEN_API BytestreamException : public std::exception {
13 public: 15 public:
14 BytestreamException() { 16 BytestreamException() {
15 } 17 }
diff --git a/Swiften/FileTransfer/BytestreamsRequest.h b/Swiften/FileTransfer/BytestreamsRequest.h
index c5dad28..65fda9a 100644
--- a/Swiften/FileTransfer/BytestreamsRequest.h
+++ b/Swiften/FileTransfer/BytestreamsRequest.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/shared_ptr.hpp> 9#include <boost/shared_ptr.hpp>
10 10
11#include <Swiften/Base/API.h>
11#include <Swiften/Queries/GenericRequest.h> 12#include <Swiften/Queries/GenericRequest.h>
12#include <Swiften/Elements/Bytestreams.h> 13#include <Swiften/Elements/Bytestreams.h>
13 14
14namespace Swift { 15namespace Swift {
15 class BytestreamsRequest : public GenericRequest<Bytestreams> { 16 class SWIFTEN_API BytestreamsRequest : public GenericRequest<Bytestreams> {
16 public: 17 public:
17 typedef boost::shared_ptr<BytestreamsRequest> ref; 18 typedef boost::shared_ptr<BytestreamsRequest> ref;
18 19
diff --git a/Swiften/FileTransfer/FileTransfer.h b/Swiften/FileTransfer/FileTransfer.h
index f90a6b4..01c8295 100644
--- a/Swiften/FileTransfer/FileTransfer.h
+++ b/Swiften/FileTransfer/FileTransfer.h
@@ -5,7 +5,7 @@
5 */ 5 */
6 6
7/* 7/*
8 * Copyright (c) 2013 Isode Limited. 8 * Copyright (c) 2013-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 */
@@ -16,11 +16,12 @@
16#include <boost/optional.hpp> 16#include <boost/optional.hpp>
17#include <boost/shared_ptr.hpp> 17#include <boost/shared_ptr.hpp>
18 18
19#include <Swiften/Base/API.h>
19#include <Swiften/Base/boost_bsignals.h> 20#include <Swiften/Base/boost_bsignals.h>
20#include <Swiften/FileTransfer/FileTransferError.h> 21#include <Swiften/FileTransfer/FileTransferError.h>
21 22
22namespace Swift { 23namespace Swift {
23 class FileTransfer { 24 class SWIFTEN_API FileTransfer {
24 public: 25 public:
25 struct State { 26 struct State {
26 enum Type { 27 enum Type {
diff --git a/Swiften/FileTransfer/FileTransferError.h b/Swiften/FileTransfer/FileTransferError.h
index a37d98c..67e32f2 100644
--- a/Swiften/FileTransfer/FileTransferError.h
+++ b/Swiften/FileTransfer/FileTransferError.h
@@ -1,13 +1,15 @@
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>
10
9namespace Swift { 11namespace Swift {
10 class FileTransferError { 12 class SWIFTEN_API FileTransferError {
11 public: 13 public:
12 enum Type { 14 enum Type {
13 UnknownError, 15 UnknownError,
diff --git a/Swiften/FileTransfer/IBBRequest.h b/Swiften/FileTransfer/IBBRequest.h
index 277ca09..1eef64b 100644
--- a/Swiften/FileTransfer/IBBRequest.h
+++ b/Swiften/FileTransfer/IBBRequest.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/Queries/GenericRequest.h> 10#include <Swiften/Queries/GenericRequest.h>
10#include <Swiften/Elements/IBB.h> 11#include <Swiften/Elements/IBB.h>
11 12
12 13
13namespace Swift { 14namespace Swift {
14 class IBBRequest : public GenericRequest<IBB> { 15 class SWIFTEN_API IBBRequest : public GenericRequest<IBB> {
15 public: 16 public:
16 typedef boost::shared_ptr<IBBRequest> ref; 17 typedef boost::shared_ptr<IBBRequest> ref;
17 18
diff --git a/Swiften/FileTransfer/IncomingFileTransfer.h b/Swiften/FileTransfer/IncomingFileTransfer.h
index 93ecf1a..16905b8 100644
--- a/Swiften/FileTransfer/IncomingFileTransfer.h
+++ b/Swiften/FileTransfer/IncomingFileTransfer.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,6 +8,7 @@
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/Base/boost_bsignals.h> 12#include <Swiften/Base/boost_bsignals.h>
12#include <Swiften/FileTransfer/FileTransfer.h> 13#include <Swiften/FileTransfer/FileTransfer.h>
13#include <Swiften/FileTransfer/FileTransferOptions.h> 14#include <Swiften/FileTransfer/FileTransferOptions.h>
@@ -20,7 +21,7 @@ namespace Swift {
20 * @brief The IncomingFileTransfer abstract class is the general interface in Swiften 21 * @brief The IncomingFileTransfer abstract class is the general interface in Swiften
21 * for incoming file transfers. 22 * for incoming file transfers.
22 */ 23 */
23 class IncomingFileTransfer : public FileTransfer { 24 class SWIFTEN_API IncomingFileTransfer : public FileTransfer {
24 public: 25 public:
25 typedef boost::shared_ptr<IncomingFileTransfer> ref; 26 typedef boost::shared_ptr<IncomingFileTransfer> ref;
26 27
diff --git a/Swiften/FileTransfer/IncomingFileTransferManager.h b/Swiften/FileTransfer/IncomingFileTransferManager.h
index 94ddd1d..6edf53b 100644
--- a/Swiften/FileTransfer/IncomingFileTransferManager.h
+++ b/Swiften/FileTransfer/IncomingFileTransferManager.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,6 +8,7 @@
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/Base/boost_bsignals.h> 12#include <Swiften/Base/boost_bsignals.h>
12#include <Swiften/FileTransfer/IncomingFileTransfer.h> 13#include <Swiften/FileTransfer/IncomingFileTransfer.h>
13#include <Swiften/Jingle/IncomingJingleSessionHandler.h> 14#include <Swiften/Jingle/IncomingJingleSessionHandler.h>
@@ -19,7 +20,7 @@ namespace Swift {
19 class TimerFactory; 20 class TimerFactory;
20 class CryptoProvider; 21 class CryptoProvider;
21 22
22 class IncomingFileTransferManager : public IncomingJingleSessionHandler { 23 class SWIFTEN_API IncomingFileTransferManager : public IncomingJingleSessionHandler {
23 public: 24 public:
24 IncomingFileTransferManager( 25 IncomingFileTransferManager(
25 JingleSessionManager* jingleSessionManager, 26 JingleSessionManager* jingleSessionManager,
diff --git a/Swiften/FileTransfer/OutgoingFileTransfer.h b/Swiften/FileTransfer/OutgoingFileTransfer.h
index ad89e60..358cc2f 100644
--- a/Swiften/FileTransfer/OutgoingFileTransfer.h
+++ b/Swiften/FileTransfer/OutgoingFileTransfer.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,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/FileTransfer/FileTransfer.h> 12#include <Swiften/FileTransfer/FileTransfer.h>
12 13
13namespace Swift { 14namespace Swift {
14 class OutgoingFileTransfer : public FileTransfer { 15 class SWIFTEN_API OutgoingFileTransfer : public FileTransfer {
15 public: 16 public:
16 typedef boost::shared_ptr<OutgoingFileTransfer> ref; 17 typedef boost::shared_ptr<OutgoingFileTransfer> ref;
17 public: 18 public:
diff --git a/Swiften/FileTransfer/OutgoingFileTransferManager.h b/Swiften/FileTransfer/OutgoingFileTransferManager.h
index f97bc9b..1ad992e 100644
--- a/Swiften/FileTransfer/OutgoingFileTransferManager.h
+++ b/Swiften/FileTransfer/OutgoingFileTransferManager.h
@@ -14,6 +14,8 @@
14 14
15#include <boost/shared_ptr.hpp> 15#include <boost/shared_ptr.hpp>
16 16
17#include <Swiften/Base/API.h>
18
17namespace Swift { 19namespace Swift {
18 class JingleSessionManager; 20 class JingleSessionManager;
19 class IQRouter; 21 class IQRouter;
@@ -27,7 +29,7 @@ namespace Swift {
27 class FileTransferOptions; 29 class FileTransferOptions;
28 class TimerFactory; 30 class TimerFactory;
29 31
30 class OutgoingFileTransferManager { 32 class SWIFTEN_API OutgoingFileTransferManager {
31 public: 33 public:
32 OutgoingFileTransferManager( 34 OutgoingFileTransferManager(
33 JingleSessionManager* jingleSessionManager, 35 JingleSessionManager* jingleSessionManager,
diff --git a/Swiften/FileTransfer/OutgoingSIFileTransfer.h b/Swiften/FileTransfer/OutgoingSIFileTransfer.h
index 9b51b0a..c323a77 100644
--- a/Swiften/FileTransfer/OutgoingSIFileTransfer.h
+++ b/Swiften/FileTransfer/OutgoingSIFileTransfer.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,6 +8,7 @@
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/FileTransfer/OutgoingFileTransfer.h> 12#include <Swiften/FileTransfer/OutgoingFileTransfer.h>
12#include <Swiften/FileTransfer/ReadBytestream.h> 13#include <Swiften/FileTransfer/ReadBytestream.h>
13#include <Swiften/Base/boost_bsignals.h> 14#include <Swiften/Base/boost_bsignals.h>
@@ -23,7 +24,7 @@ namespace Swift {
23 class IQRouter; 24 class IQRouter;
24 class SOCKS5BytestreamServer; 25 class SOCKS5BytestreamServer;
25 26
26 class OutgoingSIFileTransfer : public OutgoingFileTransfer { 27 class SWIFTEN_API OutgoingSIFileTransfer : public OutgoingFileTransfer {
27 public: 28 public:
28 OutgoingSIFileTransfer(const std::string& id, const JID& from, const JID& to, const std::string& name, unsigned long long size, const std::string& description, boost::shared_ptr<ReadBytestream> bytestream, IQRouter* iqRouter, SOCKS5BytestreamServer* socksServer); 29 OutgoingSIFileTransfer(const std::string& id, const JID& from, const JID& to, const std::string& name, unsigned long long size, const std::string& description, boost::shared_ptr<ReadBytestream> bytestream, IQRouter* iqRouter, SOCKS5BytestreamServer* socksServer);
29 30
diff --git a/Swiften/FileTransfer/SOCKS5BytestreamProxyFinder.h b/Swiften/FileTransfer/SOCKS5BytestreamProxyFinder.h
index 54c2075..c5ad72a 100644
--- a/Swiften/FileTransfer/SOCKS5BytestreamProxyFinder.h
+++ b/Swiften/FileTransfer/SOCKS5BytestreamProxyFinder.h
@@ -15,6 +15,7 @@
15 15
16#include <boost/shared_ptr.hpp> 16#include <boost/shared_ptr.hpp>
17 17
18#include <Swiften/Base/API.h>
18#include <Swiften/Disco/DiscoServiceWalker.h> 19#include <Swiften/Disco/DiscoServiceWalker.h>
19#include <Swiften/Network/HostAddressPort.h> 20#include <Swiften/Network/HostAddressPort.h>
20#include <Swiften/Elements/S5BProxyRequest.h> 21#include <Swiften/Elements/S5BProxyRequest.h>
@@ -28,7 +29,7 @@ class IQRouter;
28 * This class is designed to find possible SOCKS5 bytestream proxies which are used for peer-to-peer data transfers in 29 * This class is designed to find possible SOCKS5 bytestream proxies which are used for peer-to-peer data transfers in
29 * restrictive environments. 30 * restrictive environments.
30 */ 31 */
31class SOCKS5BytestreamProxyFinder { 32class SWIFTEN_API SOCKS5BytestreamProxyFinder {
32 public: 33 public:
33 SOCKS5BytestreamProxyFinder(const JID& service, IQRouter *iqRouter); 34 SOCKS5BytestreamProxyFinder(const JID& service, IQRouter *iqRouter);
34 ~SOCKS5BytestreamProxyFinder(); 35 ~SOCKS5BytestreamProxyFinder();
diff --git a/Swiften/FileTransfer/SOCKS5BytestreamServer.h b/Swiften/FileTransfer/SOCKS5BytestreamServer.h
index 721e6e5..c11de84 100644
--- a/Swiften/FileTransfer/SOCKS5BytestreamServer.h
+++ b/Swiften/FileTransfer/SOCKS5BytestreamServer.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 */
@@ -11,6 +11,7 @@
11 11
12#include <Swiften/Network/ConnectionServer.h> 12#include <Swiften/Network/ConnectionServer.h>
13#include <string> 13#include <string>
14#include <Swiften/Base/API.h>
14#include <Swiften/JID/JID.h> 15#include <Swiften/JID/JID.h>
15#include <Swiften/FileTransfer/ReadBytestream.h> 16#include <Swiften/FileTransfer/ReadBytestream.h>
16#include <Swiften/FileTransfer/SOCKS5BytestreamRegistry.h> 17#include <Swiften/FileTransfer/SOCKS5BytestreamRegistry.h>
@@ -19,7 +20,7 @@ namespace Swift {
19 class SOCKS5BytestreamServerSession; 20 class SOCKS5BytestreamServerSession;
20 class CryptoProvider; 21 class CryptoProvider;
21 22
22 class SOCKS5BytestreamServer { 23 class SWIFTEN_API SOCKS5BytestreamServer {
23 public: 24 public:
24 SOCKS5BytestreamServer( 25 SOCKS5BytestreamServer(
25 boost::shared_ptr<ConnectionServer> connectionServer, 26 boost::shared_ptr<ConnectionServer> connectionServer,
diff --git a/Swiften/FileTransfer/SOCKS5BytestreamServerManager.h b/Swiften/FileTransfer/SOCKS5BytestreamServerManager.h
index e8a43f9..180745d 100644
--- a/Swiften/FileTransfer/SOCKS5BytestreamServerManager.h
+++ b/Swiften/FileTransfer/SOCKS5BytestreamServerManager.h
@@ -10,6 +10,7 @@
10#include <boost/shared_ptr.hpp> 10#include <boost/shared_ptr.hpp>
11#include <boost/weak_ptr.hpp> 11#include <boost/weak_ptr.hpp>
12 12
13#include <Swiften/Base/API.h>
13#include <Swiften/Base/boost_bsignals.h> 14#include <Swiften/Base/boost_bsignals.h>
14#include <Swiften/Network/HostAddressPort.h> 15#include <Swiften/Network/HostAddressPort.h>
15#include <Swiften/Network/NATPortMapping.h> 16#include <Swiften/Network/NATPortMapping.h>
@@ -27,7 +28,7 @@ namespace Swift {
27 class SOCKS5BytestreamServerResourceUser; 28 class SOCKS5BytestreamServerResourceUser;
28 class SOCKS5BytestreamServerPortForwardingUser; 29 class SOCKS5BytestreamServerPortForwardingUser;
29 30
30 class SOCKS5BytestreamServerManager { 31 class SWIFTEN_API SOCKS5BytestreamServerManager {
31 friend class SOCKS5BytestreamServerResourceUser; 32 friend class SOCKS5BytestreamServerResourceUser;
32 friend class SOCKS5BytestreamServerPortForwardingUser; 33 friend class SOCKS5BytestreamServerPortForwardingUser;
33 34
diff --git a/Swiften/FileTransfer/SOCKS5BytestreamServerPortForwardingUser.h b/Swiften/FileTransfer/SOCKS5BytestreamServerPortForwardingUser.h
index c4550d3..cd79ecc 100644
--- a/Swiften/FileTransfer/SOCKS5BytestreamServerPortForwardingUser.h
+++ b/Swiften/FileTransfer/SOCKS5BytestreamServerPortForwardingUser.h
@@ -6,13 +6,14 @@
6 6
7#pragma once 7#pragma once
8 8
9#include <Swiften/Base/API.h>
9#include <Swiften/Base/boost_bsignals.h> 10#include <Swiften/Base/boost_bsignals.h>
10 11
11namespace Swift { 12namespace Swift {
12 13
13class SOCKS5BytestreamServerManager; 14class SOCKS5BytestreamServerManager;
14 15
15class SOCKS5BytestreamServerPortForwardingUser { 16class SWIFTEN_API SOCKS5BytestreamServerPortForwardingUser {
16 public: 17 public:
17 SOCKS5BytestreamServerPortForwardingUser(SOCKS5BytestreamServerManager* s5bServerManager); 18 SOCKS5BytestreamServerPortForwardingUser(SOCKS5BytestreamServerManager* s5bServerManager);
18 ~SOCKS5BytestreamServerPortForwardingUser(); 19 ~SOCKS5BytestreamServerPortForwardingUser();
diff --git a/Swiften/FileTransfer/SOCKS5BytestreamServerResourceUser.h b/Swiften/FileTransfer/SOCKS5BytestreamServerResourceUser.h
index fa7f42c..15c4fc7 100644
--- a/Swiften/FileTransfer/SOCKS5BytestreamServerResourceUser.h
+++ b/Swiften/FileTransfer/SOCKS5BytestreamServerResourceUser.h
@@ -7,12 +7,13 @@
7#pragma once 7#pragma once
8 8
9#include <Swiften/Base/boost_bsignals.h> 9#include <Swiften/Base/boost_bsignals.h>
10#include <Swiften/Base/API.h>
10 11
11namespace Swift { 12namespace Swift {
12 13
13class SOCKS5BytestreamServerManager; 14class SOCKS5BytestreamServerManager;
14 15
15class SOCKS5BytestreamServerResourceUser { 16class SWIFTEN_API SOCKS5BytestreamServerResourceUser {
16 public: 17 public:
17 SOCKS5BytestreamServerResourceUser(SOCKS5BytestreamServerManager* s5bServerManager); 18 SOCKS5BytestreamServerResourceUser(SOCKS5BytestreamServerManager* s5bServerManager);
18 ~SOCKS5BytestreamServerResourceUser(); 19 ~SOCKS5BytestreamServerResourceUser();
diff --git a/Swiften/FileTransfer/StreamInitiationRequest.h b/Swiften/FileTransfer/StreamInitiationRequest.h
index b846b90..7046eda 100644
--- a/Swiften/FileTransfer/StreamInitiationRequest.h
+++ b/Swiften/FileTransfer/StreamInitiationRequest.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/Queries/GenericRequest.h> 10#include <Swiften/Queries/GenericRequest.h>
10#include <Swiften/Elements/StreamInitiation.h> 11#include <Swiften/Elements/StreamInitiation.h>
11 12
12 13
13namespace Swift { 14namespace Swift {
14 class StreamInitiationRequest : public GenericRequest<StreamInitiation> { 15 class SWIFTEN_API StreamInitiationRequest : public GenericRequest<StreamInitiation> {
15 public: 16 public:
16 typedef boost::shared_ptr<StreamInitiationRequest> ref; 17 typedef boost::shared_ptr<StreamInitiationRequest> ref;
17 18
diff --git a/Swiften/History/HistoryMessage.h b/Swiften/History/HistoryMessage.h
index 50aa828..cf33b0c 100644
--- a/Swiften/History/HistoryMessage.h
+++ b/Swiften/History/HistoryMessage.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 */
@@ -7,10 +7,11 @@
7#pragma once 7#pragma once
8 8
9#include <Swiften/JID/JID.h> 9#include <Swiften/JID/JID.h>
10#include <Swiften/Base/API.h>
10#include <boost/date_time/posix_time/posix_time_types.hpp> 11#include <boost/date_time/posix_time/posix_time_types.hpp>
11 12
12namespace Swift { 13namespace Swift {
13 class HistoryMessage { 14 class SWIFTEN_API HistoryMessage {
14 public: 15 public:
15 enum Type { 16 enum Type {
16 Chat = 0, 17 Chat = 0,
diff --git a/Swiften/History/HistoryStorage.h b/Swiften/History/HistoryStorage.h
index 08173bf..99ade51 100644
--- a/Swiften/History/HistoryStorage.h
+++ b/Swiften/History/HistoryStorage.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 */
@@ -9,6 +9,7 @@
9#include <set> 9#include <set>
10#include <map> 10#include <map>
11#include <vector> 11#include <vector>
12#include <Swiften/Base/API.h>
12#include <Swiften/JID/JID.h> 13#include <Swiften/JID/JID.h>
13#include <Swiften/History/HistoryMessage.h> 14#include <Swiften/History/HistoryMessage.h>
14#include <boost/date_time/gregorian/gregorian_types.hpp> 15#include <boost/date_time/gregorian/gregorian_types.hpp>
@@ -16,7 +17,7 @@
16namespace Swift { 17namespace Swift {
17 typedef std::map<JID, std::set<boost::gregorian::date> > ContactsMap; 18 typedef std::map<JID, std::set<boost::gregorian::date> > ContactsMap;
18 19
19 class HistoryStorage { 20 class SWIFTEN_API HistoryStorage {
20 /** 21 /**
21 * Messages are stored using localtime timestamps. 22 * Messages are stored using localtime timestamps.
22 */ 23 */
diff --git a/Swiften/Jingle/IncomingJingleSessionHandler.h b/Swiften/Jingle/IncomingJingleSessionHandler.h
index 3b04bd2..fba9acc 100644
--- a/Swiften/Jingle/IncomingJingleSessionHandler.h
+++ b/Swiften/Jingle/IncomingJingleSessionHandler.h
@@ -1,15 +1,16 @@
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/Jingle/JingleSession.h> 10#include <Swiften/Jingle/JingleSession.h>
10 11
11namespace Swift { 12namespace Swift {
12 class IncomingJingleSessionHandler { 13 class SWIFTEN_API IncomingJingleSessionHandler {
13 public: 14 public:
14 virtual ~IncomingJingleSessionHandler(); 15 virtual ~IncomingJingleSessionHandler();
15 16
diff --git a/Swiften/Jingle/JingleContentID.h b/Swiften/Jingle/JingleContentID.h
index 4705c2d..2d842fa 100644
--- a/Swiften/Jingle/JingleContentID.h
+++ b/Swiften/Jingle/JingleContentID.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,10 +8,11 @@
8 8
9#include <string> 9#include <string>
10 10
11#include <Swiften/Base/API.h>
11#include <Swiften/Elements/JingleContentPayload.h> 12#include <Swiften/Elements/JingleContentPayload.h>
12 13
13namespace Swift { 14namespace Swift {
14 class JingleContentID { 15 class SWIFTEN_API JingleContentID {
15 public: 16 public:
16 JingleContentID(const std::string& name, JingleContentPayload::Creator creator) : name(name), creator(creator) { 17 JingleContentID(const std::string& name, JingleContentPayload::Creator creator) : name(name), creator(creator) {
17 } 18 }
diff --git a/Swiften/Jingle/JingleResponder.h b/Swiften/Jingle/JingleResponder.h
index 92d0bfd..cf01e6f 100644
--- a/Swiften/Jingle/JingleResponder.h
+++ b/Swiften/Jingle/JingleResponder.h
@@ -1,11 +1,12 @@
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/Queries/SetResponder.h> 10#include <Swiften/Queries/SetResponder.h>
10#include <Swiften/Elements/JinglePayload.h> 11#include <Swiften/Elements/JinglePayload.h>
11 12
@@ -13,7 +14,7 @@ namespace Swift {
13 class IQRouter; 14 class IQRouter;
14 class JingleSessionManager; 15 class JingleSessionManager;
15 16
16 class JingleResponder : public SetResponder<JinglePayload> { 17 class SWIFTEN_API JingleResponder : public SetResponder<JinglePayload> {
17 public: 18 public:
18 JingleResponder(JingleSessionManager* sessionManager, IQRouter* router); 19 JingleResponder(JingleSessionManager* sessionManager, IQRouter* router);
19 virtual ~JingleResponder(); 20 virtual ~JingleResponder();
diff --git a/Swiften/Jingle/JingleSession.h b/Swiften/Jingle/JingleSession.h
index 530777f..7d7d45e 100644
--- a/Swiften/Jingle/JingleSession.h
+++ b/Swiften/Jingle/JingleSession.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2011-2013 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 */
@@ -11,6 +11,7 @@
11#include <boost/shared_ptr.hpp> 11#include <boost/shared_ptr.hpp>
12#include <boost/optional.hpp> 12#include <boost/optional.hpp>
13 13
14#include <Swiften/Base/API.h>
14#include <Swiften/Base/Listenable.h> 15#include <Swiften/Base/Listenable.h>
15#include <Swiften/Base/boost_bsignals.h> 16#include <Swiften/Base/boost_bsignals.h>
16#include <Swiften/JID/JID.h> 17#include <Swiften/JID/JID.h>
@@ -20,7 +21,7 @@ namespace Swift {
20 class JingleSessionListener; 21 class JingleSessionListener;
21 class JingleContentID; 22 class JingleContentID;
22 23
23 class JingleSession : public Listenable<JingleSessionListener> { 24 class SWIFTEN_API JingleSession : public Listenable<JingleSessionListener> {
24 public: 25 public:
25 typedef boost::shared_ptr<JingleSession> ref; 26 typedef boost::shared_ptr<JingleSession> ref;
26 27
diff --git a/Swiften/LinkLocal/IncomingLinkLocalSession.h b/Swiften/LinkLocal/IncomingLinkLocalSession.h
index 65fd29c..f1aa321 100644
--- a/Swiften/LinkLocal/IncomingLinkLocalSession.h
+++ b/Swiften/LinkLocal/IncomingLinkLocalSession.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,6 +9,7 @@
9#include <boost/shared_ptr.hpp> 9#include <boost/shared_ptr.hpp>
10#include <Swiften/Base/boost_bsignals.h> 10#include <Swiften/Base/boost_bsignals.h>
11 11
12#include <Swiften/Base/API.h>
12#include <Swiften/Session/Session.h> 13#include <Swiften/Session/Session.h>
13#include <Swiften/JID/JID.h> 14#include <Swiften/JID/JID.h>
14#include <Swiften/Network/Connection.h> 15#include <Swiften/Network/Connection.h>
@@ -20,7 +21,7 @@ namespace Swift {
20 class PayloadParserFactoryCollection; 21 class PayloadParserFactoryCollection;
21 class PayloadSerializerCollection; 22 class PayloadSerializerCollection;
22 23
23 class IncomingLinkLocalSession : public Session { 24 class SWIFTEN_API IncomingLinkLocalSession : public Session {
24 public: 25 public:
25 IncomingLinkLocalSession( 26 IncomingLinkLocalSession(
26 const JID& localJID, 27 const JID& localJID,
diff --git a/Swiften/LinkLocal/OutgoingLinkLocalSession.h b/Swiften/LinkLocal/OutgoingLinkLocalSession.h
index f12f783..b3e7b39 100644
--- a/Swiften/LinkLocal/OutgoingLinkLocalSession.h
+++ b/Swiften/LinkLocal/OutgoingLinkLocalSession.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 */
@@ -11,6 +11,7 @@
11#include <boost/enable_shared_from_this.hpp> 11#include <boost/enable_shared_from_this.hpp>
12#include <vector> 12#include <vector>
13 13
14#include <Swiften/Base/API.h>
14#include <Swiften/Session/Session.h> 15#include <Swiften/Session/Session.h>
15#include <Swiften/JID/JID.h> 16#include <Swiften/JID/JID.h>
16 17
@@ -21,7 +22,7 @@ namespace Swift {
21 class PayloadParserFactoryCollection; 22 class PayloadParserFactoryCollection;
22 class PayloadSerializerCollection; 23 class PayloadSerializerCollection;
23 24
24 class OutgoingLinkLocalSession : public Session { 25 class SWIFTEN_API OutgoingLinkLocalSession : public Session {
25 public: 26 public:
26 OutgoingLinkLocalSession( 27 OutgoingLinkLocalSession(
27 const JID& localJID, 28 const JID& localJID,
diff --git a/Swiften/MUC/MUCBookmark.h b/Swiften/MUC/MUCBookmark.h
index 6b467ca..cca44be 100644
--- a/Swiften/MUC/MUCBookmark.h
+++ b/Swiften/MUC/MUCBookmark.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 */
@@ -9,11 +9,12 @@
9#include <boost/optional.hpp> 9#include <boost/optional.hpp>
10 10
11#include <string> 11#include <string>
12#include <Swiften/Base/API.h>
12#include <Swiften/JID/JID.h> 13#include <Swiften/JID/JID.h>
13#include <Swiften/Elements/Storage.h> 14#include <Swiften/Elements/Storage.h>
14 15
15namespace Swift { 16namespace Swift {
16 class MUCBookmark { 17 class SWIFTEN_API MUCBookmark {
17 public: 18 public:
18 MUCBookmark(const Storage::Room& room) { 19 MUCBookmark(const Storage::Room& room) {
19 name_ = room.name; 20 name_ = room.name;
diff --git a/Swiften/Network/BoostConnectionFactory.h b/Swiften/Network/BoostConnectionFactory.h
index 6f2278f..574ea3e 100644
--- a/Swiften/Network/BoostConnectionFactory.h
+++ b/Swiften/Network/BoostConnectionFactory.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/asio/io_service.hpp> 9#include <boost/asio/io_service.hpp>
10 10
11#include <Swiften/Base/API.h>
11#include <Swiften/Network/ConnectionFactory.h> 12#include <Swiften/Network/ConnectionFactory.h>
12#include <Swiften/Network/BoostConnection.h> 13#include <Swiften/Network/BoostConnection.h>
13 14
14namespace Swift { 15namespace Swift {
15 class BoostConnection; 16 class BoostConnection;
16 17
17 class BoostConnectionFactory : public ConnectionFactory { 18 class SWIFTEN_API BoostConnectionFactory : public ConnectionFactory {
18 public: 19 public:
19 BoostConnectionFactory(boost::shared_ptr<boost::asio::io_service>, EventLoop* eventLoop); 20 BoostConnectionFactory(boost::shared_ptr<boost::asio::io_service>, EventLoop* eventLoop);
20 21
diff --git a/Swiften/Network/BoostConnectionServerFactory.h b/Swiften/Network/BoostConnectionServerFactory.h
index 9132b5c..1ef4951 100644
--- a/Swiften/Network/BoostConnectionServerFactory.h
+++ b/Swiften/Network/BoostConnectionServerFactory.h
@@ -4,17 +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#pragma once 13#pragma once
8 14
9#include <boost/asio/io_service.hpp> 15#include <boost/asio/io_service.hpp>
10 16
17#include <Swiften/Base/API.h>
11#include <Swiften/Network/ConnectionServerFactory.h> 18#include <Swiften/Network/ConnectionServerFactory.h>
12#include <Swiften/Network/BoostConnectionServer.h> 19#include <Swiften/Network/BoostConnectionServer.h>
13 20
14namespace Swift { 21namespace Swift {
15 class ConnectionServer; 22 class ConnectionServer;
16 23
17 class BoostConnectionServerFactory : public ConnectionServerFactory { 24 class SWIFTEN_API BoostConnectionServerFactory : public ConnectionServerFactory {
18 public: 25 public:
19 BoostConnectionServerFactory(boost::shared_ptr<boost::asio::io_service>, EventLoop* eventLoop); 26 BoostConnectionServerFactory(boost::shared_ptr<boost::asio::io_service>, EventLoop* eventLoop);
20 27
diff --git a/Swiften/Network/BoostTimer.h b/Swiften/Network/BoostTimer.h
index aae1708..1562887 100644
--- a/Swiften/Network/BoostTimer.h
+++ b/Swiften/Network/BoostTimer.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 */
@@ -10,13 +10,14 @@
10#include <boost/asio/deadline_timer.hpp> 10#include <boost/asio/deadline_timer.hpp>
11#include <boost/enable_shared_from_this.hpp> 11#include <boost/enable_shared_from_this.hpp>
12 12
13#include <Swiften/Base/API.h>
13#include <Swiften/EventLoop/EventOwner.h> 14#include <Swiften/EventLoop/EventOwner.h>
14#include <Swiften/Network/Timer.h> 15#include <Swiften/Network/Timer.h>
15 16
16namespace Swift { 17namespace Swift {
17 class EventLoop; 18 class EventLoop;
18 19
19 class BoostTimer : public Timer, public EventOwner, public boost::enable_shared_from_this<BoostTimer> { 20 class SWIFTEN_API BoostTimer : public Timer, public EventOwner, public boost::enable_shared_from_this<BoostTimer> {
20 public: 21 public:
21 typedef boost::shared_ptr<BoostTimer> ref; 22 typedef boost::shared_ptr<BoostTimer> ref;
22 23
diff --git a/Swiften/Network/BoostTimerFactory.h b/Swiften/Network/BoostTimerFactory.h
index d7be77f..9b97467 100644
--- a/Swiften/Network/BoostTimerFactory.h
+++ b/Swiften/Network/BoostTimerFactory.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,6 +8,7 @@
8 8
9#include <boost/asio/io_service.hpp> 9#include <boost/asio/io_service.hpp>
10 10
11#include <Swiften/Base/API.h>
11#include <Swiften/Network/TimerFactory.h> 12#include <Swiften/Network/TimerFactory.h>
12#include <Swiften/Network/BoostTimer.h> 13#include <Swiften/Network/BoostTimer.h>
13 14
@@ -15,7 +16,7 @@ namespace Swift {
15 class BoostTimer; 16 class BoostTimer;
16 class EventLoop; 17 class EventLoop;
17 18
18 class BoostTimerFactory : public TimerFactory { 19 class SWIFTEN_API BoostTimerFactory : public TimerFactory {
19 public: 20 public:
20 BoostTimerFactory(boost::shared_ptr<boost::asio::io_service>, EventLoop* eventLoop); 21 BoostTimerFactory(boost::shared_ptr<boost::asio::io_service>, EventLoop* eventLoop);
21 22
diff --git a/Swiften/Network/CachingDomainNameResolver.h b/Swiften/Network/CachingDomainNameResolver.h
index fa5737c..2a0b1b7 100644
--- a/Swiften/Network/CachingDomainNameResolver.h
+++ b/Swiften/Network/CachingDomainNameResolver.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2012 Isode Limited. 2 * Copyright (c) 2012-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,6 +8,7 @@
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/Network/DomainNameResolver.h> 12#include <Swiften/Network/DomainNameResolver.h>
12#include <Swiften/Network/StaticDomainNameResolver.h> 13#include <Swiften/Network/StaticDomainNameResolver.h>
13 14
@@ -17,7 +18,7 @@
17namespace Swift { 18namespace Swift {
18 class EventLoop; 19 class EventLoop;
19 20
20 class CachingDomainNameResolver : public DomainNameResolver { 21 class SWIFTEN_API CachingDomainNameResolver : public DomainNameResolver {
21 public: 22 public:
22 CachingDomainNameResolver(DomainNameResolver* realResolver, EventLoop* eventLoop); 23 CachingDomainNameResolver(DomainNameResolver* realResolver, EventLoop* eventLoop);
23 ~CachingDomainNameResolver(); 24 ~CachingDomainNameResolver();
diff --git a/Swiften/Network/ConnectionServerFactory.h b/Swiften/Network/ConnectionServerFactory.h
index df5f912..672cac7 100644
--- a/Swiften/Network/ConnectionServerFactory.h
+++ b/Swiften/Network/ConnectionServerFactory.h
@@ -4,15 +4,22 @@
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
9#include <boost/shared_ptr.hpp> 15#include <boost/shared_ptr.hpp>
16#include <Swiften/Base/API.h>
10 17
11namespace Swift { 18namespace Swift {
12 class ConnectionServer; 19 class ConnectionServer;
13 class HostAddress; 20 class HostAddress;
14 21
15 class ConnectionServerFactory { 22 class SWIFTEN_API ConnectionServerFactory {
16 public: 23 public:
17 virtual ~ConnectionServerFactory(); 24 virtual ~ConnectionServerFactory();
18 25
diff --git a/Swiften/Network/DomainNameResolveError.h b/Swiften/Network/DomainNameResolveError.h
index 6edab56..c788537 100644
--- a/Swiften/Network/DomainNameResolveError.h
+++ b/Swiften/Network/DomainNameResolveError.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/Base/Error.h> 10#include <Swiften/Base/Error.h>
10 11
11namespace Swift { 12namespace Swift {
12 class DomainNameResolveError : public Error { 13 class SWIFTEN_API DomainNameResolveError : public Error {
13 public: 14 public:
14 DomainNameResolveError() {} 15 DomainNameResolveError() {}
15 }; 16 };
diff --git a/Swiften/Network/EnvironmentProxyProvider.h b/Swiften/Network/EnvironmentProxyProvider.h
index 224d301..0afad9d 100644
--- a/Swiften/Network/EnvironmentProxyProvider.h
+++ b/Swiften/Network/EnvironmentProxyProvider.h
@@ -4,12 +4,19 @@
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/Network/ProxyProvider.h> 16#include <Swiften/Network/ProxyProvider.h>
10 17
11namespace Swift { 18namespace Swift {
12 class EnvironmentProxyProvider : public ProxyProvider { 19 class SWIFTEN_API EnvironmentProxyProvider : public ProxyProvider {
13 public: 20 public:
14 EnvironmentProxyProvider(); 21 EnvironmentProxyProvider();
15 virtual HostAddressPort getHTTPConnectProxy() const; 22 virtual HostAddressPort getHTTPConnectProxy() const;
diff --git a/Swiften/Network/HTTPConnectProxiedConnectionFactory.h b/Swiften/Network/HTTPConnectProxiedConnectionFactory.h
index b4ddd4e..9d2c982 100644
--- a/Swiften/Network/HTTPConnectProxiedConnectionFactory.h
+++ b/Swiften/Network/HTTPConnectProxiedConnectionFactory.h
@@ -12,6 +12,7 @@
12 12
13#pragma once 13#pragma once
14 14
15#include <Swiften/Base/API.h>
15#include <Swiften/Network/ConnectionFactory.h> 16#include <Swiften/Network/ConnectionFactory.h>
16#include <Swiften/Network/HostAddressPort.h> 17#include <Swiften/Network/HostAddressPort.h>
17#include <Swiften/Base/SafeString.h> 18#include <Swiften/Base/SafeString.h>
@@ -22,7 +23,7 @@ namespace Swift {
22 class EventLoop; 23 class EventLoop;
23 class HTTPTrafficFilter; 24 class HTTPTrafficFilter;
24 25
25 class HTTPConnectProxiedConnectionFactory : public ConnectionFactory { 26 class SWIFTEN_API HTTPConnectProxiedConnectionFactory : public ConnectionFactory {
26 public: 27 public:
27 HTTPConnectProxiedConnectionFactory(DomainNameResolver* resolver, ConnectionFactory* connectionFactory, TimerFactory* timerFactory, const std::string& proxyHost, int proxyPort, boost::shared_ptr<HTTPTrafficFilter> httpTrafficFilter = boost::shared_ptr<HTTPTrafficFilter>()); 28 HTTPConnectProxiedConnectionFactory(DomainNameResolver* resolver, ConnectionFactory* connectionFactory, TimerFactory* timerFactory, const std::string& proxyHost, int proxyPort, boost::shared_ptr<HTTPTrafficFilter> httpTrafficFilter = boost::shared_ptr<HTTPTrafficFilter>());
28 HTTPConnectProxiedConnectionFactory(DomainNameResolver* resolver, ConnectionFactory* connectionFactory, TimerFactory* timerFactory, const std::string& proxyHost, int proxyPort, const SafeString& authID, const SafeString& authPassword, boost::shared_ptr<HTTPTrafficFilter> httpTrafficFilter = boost::shared_ptr<HTTPTrafficFilter>()); 29 HTTPConnectProxiedConnectionFactory(DomainNameResolver* resolver, ConnectionFactory* connectionFactory, TimerFactory* timerFactory, const std::string& proxyHost, int proxyPort, const SafeString& authID, const SafeString& authPassword, boost::shared_ptr<HTTPTrafficFilter> httpTrafficFilter = boost::shared_ptr<HTTPTrafficFilter>());
diff --git a/Swiften/Network/NATPortMapping.h b/Swiften/Network/NATPortMapping.h
index 0f6bd95..3ddf39e 100644
--- a/Swiften/Network/NATPortMapping.h
+++ b/Swiften/Network/NATPortMapping.h
@@ -4,12 +4,19 @@
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/Network/HostAddress.h> 16#include <Swiften/Network/HostAddress.h>
10 17
11namespace Swift { 18namespace Swift {
12 class NATPortMapping { 19 class SWIFTEN_API NATPortMapping {
13 public: 20 public:
14 enum Protocol { 21 enum Protocol {
15 TCP, 22 TCP,
diff --git a/Swiften/Network/NATTraversalGetPublicIPRequest.h b/Swiften/Network/NATTraversalGetPublicIPRequest.h
index 1270db3..725afd2 100644
--- a/Swiften/Network/NATTraversalGetPublicIPRequest.h
+++ b/Swiften/Network/NATTraversalGetPublicIPRequest.h
@@ -4,13 +4,20 @@
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/Base/boost_bsignals.h> 16#include <Swiften/Base/boost_bsignals.h>
10#include <Swiften/Network/HostAddress.h> 17#include <Swiften/Network/HostAddress.h>
11 18
12namespace Swift { 19namespace Swift {
13 class NATTraversalGetPublicIPRequest { 20 class SWIFTEN_API NATTraversalGetPublicIPRequest {
14 public: 21 public:
15 virtual ~NATTraversalGetPublicIPRequest(); 22 virtual ~NATTraversalGetPublicIPRequest();
16 23
diff --git a/Swiften/Network/NATTraversalInterface.h b/Swiften/Network/NATTraversalInterface.h
index 09367cb..4e5f5fc 100644
--- a/Swiften/Network/NATTraversalInterface.h
+++ b/Swiften/Network/NATTraversalInterface.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2011 Isode Limited. 2 * Copyright (c) 2011-2015 Isode Limited.
3 * Licensed under the simplified BSD license. 3 * Licensed under the simplified BSD license.
4 * See Documentation/Licenses/BSD-simplified.txt for more information. 4 * See Documentation/Licenses/BSD-simplified.txt for more information.
5 */ 5 */
@@ -8,10 +8,11 @@
8 8
9#include <boost/optional.hpp> 9#include <boost/optional.hpp>
10 10
11#include <Swiften/Base/API.h>
11#include <Swiften/Network/NATPortMapping.h> 12#include <Swiften/Network/NATPortMapping.h>
12 13
13namespace Swift { 14namespace Swift {
14 class NATTraversalInterface { 15 class SWIFTEN_API NATTraversalInterface {
15 public: 16 public:
16 virtual ~NATTraversalInterface(); 17 virtual ~NATTraversalInterface();
17 18
diff --git a/Swiften/Network/NATTraversalRemovePortForwardingRequest.h b/Swiften/Network/NATTraversalRemovePortForwardingRequest.h
index 210cbcb..efbf6ea 100644
--- a/Swiften/Network/NATTraversalRemovePortForwardingRequest.h
+++ b/Swiften/Network/NATTraversalRemovePortForwardingRequest.h
@@ -4,13 +4,20 @@
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/Base/boost_bsignals.h> 16#include <Swiften/Base/boost_bsignals.h>
10#include <Swiften/Network/HostAddress.h> 17#include <Swiften/Network/HostAddress.h>
11 18
12namespace Swift { 19namespace Swift {
13 class NATTraversalRemovePortForwardingRequest { 20 class SWIFTEN_API NATTraversalRemovePortForwardingRequest {
14 public: 21 public:
15 struct PortMapping { 22 struct PortMapping {
16 enum Protocol { 23 enum Protocol {
diff --git a/Swiften/Network/NATTraverser.h b/Swiften/Network/NATTraverser.h
index 75df3d6..e86704a 100644
--- a/Swiften/Network/NATTraverser.h
+++ b/Swiften/Network/NATTraverser.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,12 +8,14 @@
8 8
9#include <boost/shared_ptr.hpp> 9#include <boost/shared_ptr.hpp>
10 10
11#include <Swiften/Base/API.h>
12
11namespace Swift { 13namespace Swift {
12 class NATTraversalGetPublicIPRequest; 14 class NATTraversalGetPublicIPRequest;
13 class NATTraversalForwardPortRequest; 15 class NATTraversalForwardPortRequest;
14 class NATTraversalRemovePortForwardingRequest; 16 class NATTraversalRemovePortForwardingRequest;
15 17
16 class NATTraverser { 18 class SWIFTEN_API NATTraverser {
17 public: 19 public:
18 virtual ~NATTraverser(); 20 virtual ~NATTraverser();
19 21
diff --git a/Swiften/Network/NetworkFactories.h b/Swiften/Network/NetworkFactories.h
index a0c4bf9..81ce0c5 100644
--- a/Swiften/Network/NetworkFactories.h
+++ b/Swiften/Network/NetworkFactories.h
@@ -1,11 +1,13 @@
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 */
6 6
7#pragma once 7#pragma once
8 8
9#include <Swiften/Base/API.h>
10
9namespace Swift { 11namespace Swift {
10 class TimerFactory; 12 class TimerFactory;
11 class ConnectionFactory; 13 class ConnectionFactory;
@@ -24,7 +26,7 @@ namespace Swift {
24 /** 26 /**
25 * An interface collecting network factories. 27 * An interface collecting network factories.
26 */ 28 */
27 class NetworkFactories { 29 class SWIFTEN_API NetworkFactories {
28 public: 30 public:
29 virtual ~NetworkFactories(); 31 virtual ~NetworkFactories();
30 32
diff --git a/Swiften/Network/NetworkInterface.h b/Swiften/Network/NetworkInterface.h
index 1d302cb..0c1ba07 100644
--- a/Swiften/Network/NetworkInterface.h
+++ b/Swiften/Network/NetworkInterface.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
9#include <vector> 15#include <vector>
10 16
17#include <Swiften/Base/API.h>
11#include <Swiften/Network/HostAddress.h> 18#include <Swiften/Network/HostAddress.h>
12 19
13namespace Swift { 20namespace Swift {
14 class NetworkInterface { 21 class SWIFTEN_API NetworkInterface {
15 public: 22 public:
16 NetworkInterface(const std::string& name, bool loopback) : name(name), loopback(loopback) { 23 NetworkInterface(const std::string& name, bool loopback) : name(name), loopback(loopback) {
17 } 24 }
diff --git a/Swiften/Network/ProxiedConnection.h b/Swiften/Network/ProxiedConnection.h
index e6c9730..91488a1 100644
--- a/Swiften/Network/ProxiedConnection.h
+++ b/Swiften/Network/ProxiedConnection.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2012 Isode Limited. 2 * Copyright (c) 2012-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,6 +9,7 @@
9 9
10#include <boost/enable_shared_from_this.hpp> 10#include <boost/enable_shared_from_this.hpp>
11 11
12#include <Swiften/Base/API.h>
12#include <Swiften/Network/Connection.h> 13#include <Swiften/Network/Connection.h>
13#include <Swiften/Network/Connector.h> 14#include <Swiften/Network/Connector.h>
14#include <Swiften/Network/HostAddressPort.h> 15#include <Swiften/Network/HostAddressPort.h>
@@ -24,7 +25,7 @@ namespace boost {
24namespace Swift { 25namespace Swift {
25 class ConnectionFactory; 26 class ConnectionFactory;
26 27
27 class ProxiedConnection : public Connection, public boost::enable_shared_from_this<ProxiedConnection> { 28 class SWIFTEN_API ProxiedConnection : public Connection, public boost::enable_shared_from_this<ProxiedConnection> {
28 public: 29 public:
29 ProxiedConnection(DomainNameResolver* resolver, ConnectionFactory* connectionFactory, TimerFactory* timerFactory, const std::string& proxyHost, int proxyPort); 30 ProxiedConnection(DomainNameResolver* resolver, ConnectionFactory* connectionFactory, TimerFactory* timerFactory, const std::string& proxyHost, int proxyPort);
30 ~ProxiedConnection(); 31 ~ProxiedConnection();
diff --git a/Swiften/Network/ProxyProvider.h b/Swiften/Network/ProxyProvider.h
index 9a1ccee..b5e3eca 100644
--- a/Swiften/Network/ProxyProvider.h
+++ b/Swiften/Network/ProxyProvider.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#include <map> 14#include <map>
9 15
10#include <Swiften/Network/HostAddressPort.h> 16#include <Swiften/Network/HostAddressPort.h>
11#include <Swiften/Base/String.h> 17#include <Swiften/Base/String.h>
18#include <Swiften/Base/API.h>
12 19
13namespace Swift { 20namespace Swift {
14 class ProxyProvider { 21 class SWIFTEN_API ProxyProvider {
15 public: 22 public:
16 ProxyProvider(); 23 ProxyProvider();
17 virtual ~ProxyProvider(); 24 virtual ~ProxyProvider();
diff --git a/Swiften/Network/SOCKS5ProxiedConnection.h b/Swiften/Network/SOCKS5ProxiedConnection.h
index 2c93468..ee58d96 100644
--- a/Swiften/Network/SOCKS5ProxiedConnection.h
+++ b/Swiften/Network/SOCKS5ProxiedConnection.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/Network/ProxiedConnection.h> 16#include <Swiften/Network/ProxiedConnection.h>
10 17
11namespace Swift { 18namespace Swift {
@@ -13,7 +20,7 @@ namespace Swift {
13 class DomainNameResolver; 20 class DomainNameResolver;
14 class TimerFactory; 21 class TimerFactory;
15 22
16 class SOCKS5ProxiedConnection : public ProxiedConnection { 23 class SWIFTEN_API SOCKS5ProxiedConnection : public ProxiedConnection {
17 public: 24 public:
18 typedef boost::shared_ptr<SOCKS5ProxiedConnection> ref; 25 typedef boost::shared_ptr<SOCKS5ProxiedConnection> ref;
19 26
diff --git a/Swiften/Network/SOCKS5ProxiedConnectionFactory.h b/Swiften/Network/SOCKS5ProxiedConnectionFactory.h
index 4c5c585..0915a9b 100644
--- a/Swiften/Network/SOCKS5ProxiedConnectionFactory.h
+++ b/Swiften/Network/SOCKS5ProxiedConnectionFactory.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/Network/ConnectionFactory.h> 16#include <Swiften/Network/ConnectionFactory.h>
10#include <Swiften/Network/HostAddressPort.h> 17#include <Swiften/Network/HostAddressPort.h>
11#include <Swiften/Network/HostNameOrAddress.h> 18#include <Swiften/Network/HostNameOrAddress.h>
@@ -14,7 +21,7 @@ namespace Swift {
14 class DomainNameResolver; 21 class DomainNameResolver;
15 class TimerFactory; 22 class TimerFactory;
16 23
17 class SOCKS5ProxiedConnectionFactory : public ConnectionFactory { 24 class SWIFTEN_API SOCKS5ProxiedConnectionFactory : public ConnectionFactory {
18 public: 25 public:
19 SOCKS5ProxiedConnectionFactory(DomainNameResolver* resolver, ConnectionFactory* connectionFactory, TimerFactory* timerFactory, const std::string& proxyHost, int proxyPort); 26 SOCKS5ProxiedConnectionFactory(DomainNameResolver* resolver, ConnectionFactory* connectionFactory, TimerFactory* timerFactory, const std::string& proxyHost, int proxyPort);
20 27
diff --git a/Swiften/Network/TLSConnection.h b/Swiften/Network/TLSConnection.h
index 3c2d8f7..ebf2e43 100644
--- a/Swiften/Network/TLSConnection.h
+++ b/Swiften/Network/TLSConnection.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 */
@@ -10,6 +10,7 @@
10#include <boost/enable_shared_from_this.hpp> 10#include <boost/enable_shared_from_this.hpp>
11#include <Swiften/Base/boost_bsignals.h> 11#include <Swiften/Base/boost_bsignals.h>
12 12
13#include <Swiften/Base/API.h>
13#include <Swiften/Base/SafeByteArray.h> 14#include <Swiften/Base/SafeByteArray.h>
14#include <Swiften/Network/Connection.h> 15#include <Swiften/Network/Connection.h>
15 16
@@ -18,7 +19,7 @@ namespace Swift {
18 class TLSContextFactory; 19 class TLSContextFactory;
19 class TLSContext; 20 class TLSContext;
20 21
21 class TLSConnection : public Connection { 22 class SWIFTEN_API TLSConnection : public Connection {
22 public: 23 public:
23 24
24 TLSConnection(Connection::ref connection, TLSContextFactory* tlsFactory); 25 TLSConnection(Connection::ref connection, TLSContextFactory* tlsFactory);
diff --git a/Swiften/Network/TLSConnectionFactory.h b/Swiften/Network/TLSConnectionFactory.h
index 54fba6e..3dfee06 100644
--- a/Swiften/Network/TLSConnectionFactory.h
+++ b/Swiften/Network/TLSConnectionFactory.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,13 +8,14 @@
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/Network/ConnectionFactory.h> 12#include <Swiften/Network/ConnectionFactory.h>
12#include <Swiften/TLS/TLSContextFactory.h> 13#include <Swiften/TLS/TLSContextFactory.h>
13 14
14namespace Swift { 15namespace Swift {
15 class Connection; 16 class Connection;
16 17
17 class TLSConnectionFactory : public ConnectionFactory { 18 class SWIFTEN_API TLSConnectionFactory : public ConnectionFactory {
18 public: 19 public:
19 TLSConnectionFactory(TLSContextFactory* contextFactory, ConnectionFactory* connectionFactory); 20 TLSConnectionFactory(TLSContextFactory* contextFactory, ConnectionFactory* connectionFactory);
20 virtual ~TLSConnectionFactory(); 21 virtual ~TLSConnectionFactory();
diff --git a/Swiften/Parser/AuthChallengeParser.h b/Swiften/Parser/AuthChallengeParser.h
index fbe5d7d..1278221 100644
--- a/Swiften/Parser/AuthChallengeParser.h
+++ b/Swiften/Parser/AuthChallengeParser.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/Parser/GenericElementParser.h> 10#include <Swiften/Parser/GenericElementParser.h>
10#include <Swiften/Elements/AuthChallenge.h> 11#include <Swiften/Elements/AuthChallenge.h>
11#include <string> 12#include <string>
12 13
13namespace Swift { 14namespace Swift {
14 class AuthChallengeParser : public GenericElementParser<AuthChallenge> { 15 class SWIFTEN_API AuthChallengeParser : public GenericElementParser<AuthChallenge> {
15 public: 16 public:
16 AuthChallengeParser(); 17 AuthChallengeParser();
17 18
diff --git a/Swiften/Parser/AuthFailureParser.h b/Swiften/Parser/AuthFailureParser.h
index 4d7ad63..a494ebe 100644
--- a/Swiften/Parser/AuthFailureParser.h
+++ b/Swiften/Parser/AuthFailureParser.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/Parser/GenericElementParser.h> 10#include <Swiften/Parser/GenericElementParser.h>
10#include <Swiften/Elements/AuthFailure.h> 11#include <Swiften/Elements/AuthFailure.h>
11 12
12namespace Swift { 13namespace Swift {
13 class AuthFailureParser : public GenericElementParser<AuthFailure> { 14 class SWIFTEN_API AuthFailureParser : public GenericElementParser<AuthFailure> {
14 public: 15 public:
15 AuthFailureParser() : GenericElementParser<AuthFailure>() {} 16 AuthFailureParser() : GenericElementParser<AuthFailure>() {}
16 }; 17 };
diff --git a/Swiften/Parser/AuthRequestParser.h b/Swiften/Parser/AuthRequestParser.h
index 8ae8bc8..c6510c8 100644
--- a/Swiften/Parser/AuthRequestParser.h
+++ b/Swiften/Parser/AuthRequestParser.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/Parser/GenericElementParser.h> 10#include <Swiften/Parser/GenericElementParser.h>
10#include <Swiften/Elements/AuthRequest.h> 11#include <Swiften/Elements/AuthRequest.h>
11#include <string> 12#include <string>
12 13
13namespace Swift { 14namespace Swift {
14 class AuthRequestParser : public GenericElementParser<AuthRequest> { 15 class SWIFTEN_API AuthRequestParser : public GenericElementParser<AuthRequest> {
15 public: 16 public:
16 AuthRequestParser(); 17 AuthRequestParser();
17 18
diff --git a/Swiften/Parser/AuthResponseParser.h b/Swiften/Parser/AuthResponseParser.h
index e58361e..abb6585 100644
--- a/Swiften/Parser/AuthResponseParser.h
+++ b/Swiften/Parser/AuthResponseParser.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/Parser/GenericElementParser.h> 10#include <Swiften/Parser/GenericElementParser.h>
10#include <Swiften/Elements/AuthResponse.h> 11#include <Swiften/Elements/AuthResponse.h>
11#include <string> 12#include <string>
12 13
13namespace Swift { 14namespace Swift {
14 class AuthResponseParser : public GenericElementParser<AuthResponse> { 15 class SWIFTEN_API AuthResponseParser : public GenericElementParser<AuthResponse> {
15 public: 16 public:
16 AuthResponseParser(); 17 AuthResponseParser();
17 18
diff --git a/Swiften/Parser/AuthSuccessParser.h b/Swiften/Parser/AuthSuccessParser.h
index 2d06a1c..b16f80e 100644
--- a/Swiften/Parser/AuthSuccessParser.h
+++ b/Swiften/Parser/AuthSuccessParser.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/Parser/GenericElementParser.h> 10#include <Swiften/Parser/GenericElementParser.h>
10#include <Swiften/Elements/AuthSuccess.h> 11#include <Swiften/Elements/AuthSuccess.h>
11#include <string> 12#include <string>
12 13
13namespace Swift { 14namespace Swift {
14 class AuthSuccessParser : public GenericElementParser<AuthSuccess> { 15 class SWIFTEN_API AuthSuccessParser : public GenericElementParser<AuthSuccess> {
15 public: 16 public:
16 AuthSuccessParser(); 17 AuthSuccessParser();
17 18
diff --git a/Swiften/Parser/ComponentHandshakeParser.h b/Swiften/Parser/ComponentHandshakeParser.h
index 8f3a647..61739d9 100644
--- a/Swiften/Parser/ComponentHandshakeParser.h
+++ b/Swiften/Parser/ComponentHandshakeParser.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/Parser/GenericElementParser.h> 10#include <Swiften/Parser/GenericElementParser.h>
10#include <Swiften/Elements/ComponentHandshake.h> 11#include <Swiften/Elements/ComponentHandshake.h>
11#include <string> 12#include <string>
12 13
13namespace Swift { 14namespace Swift {
14 class ComponentHandshakeParser : public GenericElementParser<ComponentHandshake> { 15 class SWIFTEN_API ComponentHandshakeParser : public GenericElementParser<ComponentHandshake> {
15 public: 16 public:
16 ComponentHandshakeParser(); 17 ComponentHandshakeParser();
17 18
diff --git a/Swiften/Parser/CompressFailureParser.h b/Swiften/Parser/CompressFailureParser.h
index ddb6eef..eca53aa 100644
--- a/Swiften/Parser/CompressFailureParser.h
+++ b/Swiften/Parser/CompressFailureParser.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/Parser/GenericElementParser.h> 10#include <Swiften/Parser/GenericElementParser.h>
10#include <Swiften/Elements/CompressFailure.h> 11#include <Swiften/Elements/CompressFailure.h>
11 12
12namespace Swift { 13namespace Swift {
13 class CompressFailureParser : public GenericElementParser<CompressFailure> { 14 class SWIFTEN_API CompressFailureParser : public GenericElementParser<CompressFailure> {
14 public: 15 public:
15 CompressFailureParser() : GenericElementParser<CompressFailure>() {} 16 CompressFailureParser() : GenericElementParser<CompressFailure>() {}
16 }; 17 };
diff --git a/Swiften/Parser/CompressParser.h b/Swiften/Parser/CompressParser.h
index c9799a8..9b22db2 100644
--- a/Swiften/Parser/CompressParser.h
+++ b/Swiften/Parser/CompressParser.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 */
@@ -7,11 +7,12 @@
7#pragma once 7#pragma once
8 8
9#include <string> 9#include <string>
10#include <Swiften/Base/API.h>
10#include <Swiften/Parser/GenericElementParser.h> 11#include <Swiften/Parser/GenericElementParser.h>
11#include <Swiften/Elements/CompressRequest.h> 12#include <Swiften/Elements/CompressRequest.h>
12 13
13namespace Swift { 14namespace Swift {
14 class CompressParser : public GenericElementParser<CompressRequest> { 15 class SWIFTEN_API CompressParser : public GenericElementParser<CompressRequest> {
15 public: 16 public:
16 CompressParser(); 17 CompressParser();
17 18
diff --git a/Swiften/Parser/CompressedParser.h b/Swiften/Parser/CompressedParser.h
index cad32bc..33f56b2 100644
--- a/Swiften/Parser/CompressedParser.h
+++ b/Swiften/Parser/CompressedParser.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/Parser/GenericElementParser.h> 10#include <Swiften/Parser/GenericElementParser.h>
10#include <Swiften/Elements/Compressed.h> 11#include <Swiften/Elements/Compressed.h>
11 12
12namespace Swift { 13namespace Swift {
13 class CompressedParser : public GenericElementParser<Compressed> { 14 class SWIFTEN_API CompressedParser : public GenericElementParser<Compressed> {
14 public: 15 public:
15 CompressedParser() : GenericElementParser<Compressed>() {} 16 CompressedParser() : GenericElementParser<Compressed>() {}
16 }; 17 };
diff --git a/Swiften/Parser/EnableStreamManagementParser.h b/Swiften/Parser/EnableStreamManagementParser.h
index e323ced..54d8d40 100644
--- a/Swiften/Parser/EnableStreamManagementParser.h
+++ b/Swiften/Parser/EnableStreamManagementParser.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/Parser/GenericElementParser.h> 10#include <Swiften/Parser/GenericElementParser.h>
10#include <Swiften/Elements/EnableStreamManagement.h> 11#include <Swiften/Elements/EnableStreamManagement.h>
11 12
12namespace Swift { 13namespace Swift {
13 class EnableStreamManagementParser : public GenericElementParser<EnableStreamManagement> { 14 class SWIFTEN_API EnableStreamManagementParser : public GenericElementParser<EnableStreamManagement> {
14 public: 15 public:
15 EnableStreamManagementParser() : GenericElementParser<EnableStreamManagement>() {} 16 EnableStreamManagementParser() : GenericElementParser<EnableStreamManagement>() {}
16 }; 17 };
diff --git a/Swiften/Parser/GenericElementParser.h b/Swiften/Parser/GenericElementParser.h
index 274153f..9cdec23 100644
--- a/Swiften/Parser/GenericElementParser.h
+++ b/Swiften/Parser/GenericElementParser.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,6 +9,7 @@
9#include <boost/shared_ptr.hpp> 9#include <boost/shared_ptr.hpp>
10#include <boost/smart_ptr/make_shared.hpp> 10#include <boost/smart_ptr/make_shared.hpp>
11 11
12#include <Swiften/Base/API.h>
12#include <Swiften/Parser/ElementParser.h> 13#include <Swiften/Parser/ElementParser.h>
13 14
14namespace Swift { 15namespace Swift {
@@ -16,7 +17,7 @@ namespace Swift {
16 class PayloadParserFactoryCollection; 17 class PayloadParserFactoryCollection;
17 18
18 template<typename ElementType> 19 template<typename ElementType>
19 class GenericElementParser : public ElementParser { 20 class SWIFTEN_API GenericElementParser : public ElementParser {
20 public: 21 public:
21 GenericElementParser() { 22 GenericElementParser() {
22 stanza_ = boost::make_shared<ElementType>(); 23 stanza_ = boost::make_shared<ElementType>();
diff --git a/Swiften/Parser/GenericPayloadParser.h b/Swiften/Parser/GenericPayloadParser.h
index d833378..7bc990a 100644
--- a/Swiften/Parser/GenericPayloadParser.h
+++ b/Swiften/Parser/GenericPayloadParser.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 */
@@ -9,6 +9,7 @@
9#include <boost/shared_ptr.hpp> 9#include <boost/shared_ptr.hpp>
10#include <boost/smart_ptr/make_shared.hpp> 10#include <boost/smart_ptr/make_shared.hpp>
11 11
12#include <Swiften/Base/API.h>
12#include <Swiften/Parser/PayloadParser.h> 13#include <Swiften/Parser/PayloadParser.h>
13 14
14namespace Swift { 15namespace Swift {
@@ -22,7 +23,7 @@ namespace Swift {
22 * payload. 23 * payload.
23 */ 24 */
24 template<typename PAYLOAD_TYPE> 25 template<typename PAYLOAD_TYPE>
25 class GenericPayloadParser : public PayloadParser { 26 class SWIFTEN_API GenericPayloadParser : public PayloadParser {
26 public: 27 public:
27 GenericPayloadParser() : PayloadParser() { 28 GenericPayloadParser() : PayloadParser() {
28 payload_ = boost::make_shared<PAYLOAD_TYPE>(); 29 payload_ = boost::make_shared<PAYLOAD_TYPE>();
diff --git a/Swiften/Parser/GenericPayloadParserFactory.h b/Swiften/Parser/GenericPayloadParserFactory.h
index b9a0cfa..fd6d403 100644
--- a/Swiften/Parser/GenericPayloadParserFactory.h
+++ b/Swiften/Parser/GenericPayloadParserFactory.h
@@ -1,11 +1,12 @@
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/Parser/PayloadParserFactory.h> 10#include <Swiften/Parser/PayloadParserFactory.h>
10#include <string> 11#include <string>
11 12
@@ -15,7 +16,7 @@ namespace Swift {
15 * A generic class for PayloadParserFactories that parse a specific payload (given as the template parameter of the class). 16 * A generic class for PayloadParserFactories that parse a specific payload (given as the template parameter of the class).
16 */ 17 */
17 template<typename PARSER_TYPE> 18 template<typename PARSER_TYPE>
18 class GenericPayloadParserFactory : public PayloadParserFactory { 19 class SWIFTEN_API GenericPayloadParserFactory : public PayloadParserFactory {
19 public: 20 public:
20 /** 21 /**
21 * Construct a parser factory that can parse the given top-level tag in the given namespace. 22 * Construct a parser factory that can parse the given top-level tag in the given namespace.
diff --git a/Swiften/Parser/GenericPayloadParserFactory2.h b/Swiften/Parser/GenericPayloadParserFactory2.h
index ee6d78c..09a2dbf 100644
--- a/Swiften/Parser/GenericPayloadParserFactory2.h
+++ b/Swiften/Parser/GenericPayloadParserFactory2.h
@@ -1,11 +1,12 @@
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/Parser/PayloadParserFactory.h> 10#include <Swiften/Parser/PayloadParserFactory.h>
10#include <string> 11#include <string>
11 12
@@ -16,7 +17,7 @@ namespace Swift {
16 * A generic class for PayloadParserFactories that parse a specific payload (given as the template parameter of the class). 17 * A generic class for PayloadParserFactories that parse a specific payload (given as the template parameter of the class).
17 */ 18 */
18 template<typename PARSER_TYPE> 19 template<typename PARSER_TYPE>
19 class GenericPayloadParserFactory2 : public PayloadParserFactory { 20 class SWIFTEN_API GenericPayloadParserFactory2 : public PayloadParserFactory {
20 public: 21 public:
21 /** 22 /**
22 * Construct a parser factory that can parse the given top-level tag in the given namespace. 23 * Construct a parser factory that can parse the given top-level tag in the given namespace.
diff --git a/Swiften/Parser/GenericPayloadTreeParser.h b/Swiften/Parser/GenericPayloadTreeParser.h
index bdac85f..d90903c 100644
--- a/Swiften/Parser/GenericPayloadTreeParser.h
+++ b/Swiften/Parser/GenericPayloadTreeParser.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 */
@@ -11,6 +11,7 @@
11#include <boost/shared_ptr.hpp> 11#include <boost/shared_ptr.hpp>
12#include <boost/smart_ptr/make_shared.hpp> 12#include <boost/smart_ptr/make_shared.hpp>
13 13
14#include <Swiften/Base/API.h>
14#include <Swiften/Parser/GenericPayloadParser.h> 15#include <Swiften/Parser/GenericPayloadParser.h>
15#include <Swiften/Parser/Tree/ParserElement.h> 16#include <Swiften/Parser/Tree/ParserElement.h>
16 17
@@ -19,7 +20,7 @@ namespace Swift {
19 * Generic parser offering something a bit like a DOM to work with. 20 * Generic parser offering something a bit like a DOM to work with.
20 */ 21 */
21 template<typename PAYLOAD_TYPE> 22 template<typename PAYLOAD_TYPE>
22 class GenericPayloadTreeParser : public GenericPayloadParser<PAYLOAD_TYPE> { 23 class SWIFTEN_API GenericPayloadTreeParser : public GenericPayloadParser<PAYLOAD_TYPE> {
23 public: 24 public:
24 virtual void handleStartElement(const std::string& element, const std::string& xmlns, const AttributeMap& attributes) { 25 virtual void handleStartElement(const std::string& element, const std::string& xmlns, const AttributeMap& attributes) {
25 if (!root_) { 26 if (!root_) {
diff --git a/Swiften/Parser/GenericStanzaParser.h b/Swiften/Parser/GenericStanzaParser.h
index f446995..c9d7f70 100644
--- a/Swiften/Parser/GenericStanzaParser.h
+++ b/Swiften/Parser/GenericStanzaParser.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,6 +9,7 @@
9#include <boost/shared_ptr.hpp> 9#include <boost/shared_ptr.hpp>
10#include <boost/smart_ptr/make_shared.hpp> 10#include <boost/smart_ptr/make_shared.hpp>
11 11
12#include <Swiften/Base/API.h>
12#include <Swiften/Parser/StanzaParser.h> 13#include <Swiften/Parser/StanzaParser.h>
13 14
14namespace Swift { 15namespace Swift {
@@ -16,7 +17,7 @@ namespace Swift {
16 class PayloadParserFactoryCollection; 17 class PayloadParserFactoryCollection;
17 18
18 template<typename STANZA_TYPE> 19 template<typename STANZA_TYPE>
19 class GenericStanzaParser : public StanzaParser { 20 class SWIFTEN_API GenericStanzaParser : public StanzaParser {
20 public: 21 public:
21 GenericStanzaParser(PayloadParserFactoryCollection* collection) : 22 GenericStanzaParser(PayloadParserFactoryCollection* collection) :
22 StanzaParser(collection) { 23 StanzaParser(collection) {
diff --git a/Swiften/Parser/PayloadParsers/BlockParser.h b/Swiften/Parser/PayloadParsers/BlockParser.h
index 0c4ac6a..2e615a5 100644
--- a/Swiften/Parser/PayloadParsers/BlockParser.h
+++ b/Swiften/Parser/PayloadParsers/BlockParser.h
@@ -1,18 +1,19 @@
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/Elements/Nickname.h> 10#include <Swiften/Elements/Nickname.h>
10#include <Swiften/JID/JID.h> 11#include <Swiften/JID/JID.h>
11#include <Swiften/Parser/GenericPayloadParser.h> 12#include <Swiften/Parser/GenericPayloadParser.h>
12 13
13namespace Swift { 14namespace Swift {
14 template<typename BLOCK_ELEMENT> 15 template<typename BLOCK_ELEMENT>
15 class BlockParser : public GenericPayloadParser<BLOCK_ELEMENT> { 16 class SWIFTEN_API BlockParser : public GenericPayloadParser<BLOCK_ELEMENT> {
16 public: 17 public:
17 BlockParser() : GenericPayloadParser<BLOCK_ELEMENT>(), level(0) { 18 BlockParser() : GenericPayloadParser<BLOCK_ELEMENT>(), level(0) {
18 } 19 }
diff --git a/Swiften/Parser/PayloadParsers/BodyParser.h b/Swiften/Parser/PayloadParsers/BodyParser.h
index fa4d99f..6b6a206 100644
--- a/Swiften/Parser/PayloadParsers/BodyParser.h
+++ b/Swiften/Parser/PayloadParsers/BodyParser.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/Elements/Body.h> 10#include <Swiften/Elements/Body.h>
10#include <Swiften/Parser/GenericPayloadParser.h> 11#include <Swiften/Parser/GenericPayloadParser.h>
11 12
12namespace Swift { 13namespace Swift {
13 class BodyParser : public GenericPayloadParser<Body> { 14 class SWIFTEN_API BodyParser : public GenericPayloadParser<Body> {
14 public: 15 public:
15 BodyParser(); 16 BodyParser();
16 17
diff --git a/Swiften/Parser/PayloadParsers/BytestreamsParser.h b/Swiften/Parser/PayloadParsers/BytestreamsParser.h
index 3e44d15..4180ff9 100644
--- a/Swiften/Parser/PayloadParsers/BytestreamsParser.h
+++ b/Swiften/Parser/PayloadParsers/BytestreamsParser.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/optional.hpp> 9#include <boost/optional.hpp>
10 10
11#include <Swiften/Base/API.h>
11#include <Swiften/Elements/Bytestreams.h> 12#include <Swiften/Elements/Bytestreams.h>
12#include <Swiften/Parser/GenericPayloadParser.h> 13#include <Swiften/Parser/GenericPayloadParser.h>
13 14
14namespace Swift { 15namespace Swift {
15 class BytestreamsParser : public GenericPayloadParser<Bytestreams> { 16 class SWIFTEN_API BytestreamsParser : public GenericPayloadParser<Bytestreams> {
16 public: 17 public:
17 BytestreamsParser(); 18 BytestreamsParser();
18 ~BytestreamsParser(); 19 ~BytestreamsParser();
diff --git a/Swiften/Parser/PayloadParsers/CapsInfoParser.h b/Swiften/Parser/PayloadParsers/CapsInfoParser.h
index 27330ed..6e4610a 100644
--- a/Swiften/Parser/PayloadParsers/CapsInfoParser.h
+++ b/Swiften/Parser/PayloadParsers/CapsInfoParser.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/Elements/CapsInfo.h> 10#include <Swiften/Elements/CapsInfo.h>
10#include <Swiften/Parser/GenericPayloadParser.h> 11#include <Swiften/Parser/GenericPayloadParser.h>
11 12
12namespace Swift { 13namespace Swift {
13 class CapsInfoParser : public GenericPayloadParser<CapsInfo> { 14 class SWIFTEN_API CapsInfoParser : public GenericPayloadParser<CapsInfo> {
14 public: 15 public:
15 CapsInfoParser(); 16 CapsInfoParser();
16 17
diff --git a/Swiften/Parser/PayloadParsers/ChatStateParser.h b/Swiften/Parser/PayloadParsers/ChatStateParser.h
index df8662f..e18e17b 100644
--- a/Swiften/Parser/PayloadParsers/ChatStateParser.h
+++ b/Swiften/Parser/PayloadParsers/ChatStateParser.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/Elements/ChatState.h> 10#include <Swiften/Elements/ChatState.h>
10#include <Swiften/Parser/GenericPayloadParser.h> 11#include <Swiften/Parser/GenericPayloadParser.h>
11 12
12namespace Swift { 13namespace Swift {
13 class ChatStateParser : public GenericPayloadParser<ChatState> { 14 class SWIFTEN_API ChatStateParser : public GenericPayloadParser<ChatState> {
14 public: 15 public:
15 ChatStateParser(); 16 ChatStateParser();
16 17
diff --git a/Swiften/Parser/PayloadParsers/ChatStateParserFactory.h b/Swiften/Parser/PayloadParsers/ChatStateParserFactory.h
index 017272c..ac1c14d 100644
--- a/Swiften/Parser/PayloadParsers/ChatStateParserFactory.h
+++ b/Swiften/Parser/PayloadParsers/ChatStateParserFactory.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/Parser/PayloadParserFactory.h> 10#include <Swiften/Parser/PayloadParserFactory.h>
10#include <Swiften/Parser/PayloadParsers/ChatStateParser.h> 11#include <Swiften/Parser/PayloadParsers/ChatStateParser.h>
11 12
12namespace Swift { 13namespace Swift {
13 class PayloadParserFactoryCollection; 14 class PayloadParserFactoryCollection;
14 15
15 class ChatStateParserFactory : public PayloadParserFactory { 16 class SWIFTEN_API ChatStateParserFactory : public PayloadParserFactory {
16 public: 17 public:
17 ChatStateParserFactory() { 18 ChatStateParserFactory() {
18 } 19 }
diff --git a/Swiften/Parser/PayloadParsers/CommandParser.h b/Swiften/Parser/PayloadParsers/CommandParser.h
index 61d9279..11badd4 100644
--- a/Swiften/Parser/PayloadParsers/CommandParser.h
+++ b/Swiften/Parser/PayloadParsers/CommandParser.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,6 +8,7 @@
8 8
9#include <boost/optional.hpp> 9#include <boost/optional.hpp>
10 10
11#include <Swiften/Base/API.h>
11#include <Swiften/Elements/Command.h> 12#include <Swiften/Elements/Command.h>
12#include <Swiften/Parser/GenericPayloadParser.h> 13#include <Swiften/Parser/GenericPayloadParser.h>
13 14
@@ -15,7 +16,7 @@ namespace Swift {
15 class FormParserFactory; 16 class FormParserFactory;
16 class FormParser; 17 class FormParser;
17 18
18 class CommandParser : public GenericPayloadParser<Command> { 19 class SWIFTEN_API CommandParser : public GenericPayloadParser<Command> {
19 public: 20 public:
20 CommandParser(); 21 CommandParser();
21 ~CommandParser(); 22 ~CommandParser();
diff --git a/Swiften/Parser/PayloadParsers/DelayParser.h b/Swiften/Parser/PayloadParsers/DelayParser.h
index 3a45f90..d5fa58f 100644
--- a/Swiften/Parser/PayloadParsers/DelayParser.h
+++ b/Swiften/Parser/PayloadParsers/DelayParser.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/Elements/Delay.h> 10#include <Swiften/Elements/Delay.h>
10#include <Swiften/Parser/GenericPayloadParser.h> 11#include <Swiften/Parser/GenericPayloadParser.h>
11 12
12namespace Swift { 13namespace Swift {
13 class DelayParser : public GenericPayloadParser<Delay> { 14 class SWIFTEN_API DelayParser : public GenericPayloadParser<Delay> {
14 public: 15 public:
15 DelayParser(); 16 DelayParser();
16 17
diff --git a/Swiften/Parser/PayloadParsers/DeliveryReceiptParser.h b/Swiften/Parser/PayloadParsers/DeliveryReceiptParser.h
index 90a0921..bcb73f3 100644
--- a/Swiften/Parser/PayloadParsers/DeliveryReceiptParser.h
+++ b/Swiften/Parser/PayloadParsers/DeliveryReceiptParser.h
@@ -4,13 +4,20 @@
4 * See http://www.opensource.org/licenses/bsd-license.php for more information. 4 * See http://www.opensource.org/licenses/bsd-license.php 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/DeliveryReceipt.h> 16#include <Swiften/Elements/DeliveryReceipt.h>
10#include <Swiften/Parser/GenericPayloadParser.h> 17#include <Swiften/Parser/GenericPayloadParser.h>
11 18
12namespace Swift { 19namespace Swift {
13 class DeliveryReceiptParser : public GenericPayloadParser<DeliveryReceipt> { 20 class SWIFTEN_API DeliveryReceiptParser : public GenericPayloadParser<DeliveryReceipt> {
14 public: 21 public:
15 DeliveryReceiptParser(); 22 DeliveryReceiptParser();
16 23
diff --git a/Swiften/Parser/PayloadParsers/DeliveryReceiptParserFactory.h b/Swiften/Parser/PayloadParsers/DeliveryReceiptParserFactory.h
index 259e04a..aa5d856 100644
--- a/Swiften/Parser/PayloadParsers/DeliveryReceiptParserFactory.h
+++ b/Swiften/Parser/PayloadParsers/DeliveryReceiptParserFactory.h
@@ -4,15 +4,22 @@
4 * See http://www.opensource.org/licenses/bsd-license.php for more information. 4 * See http://www.opensource.org/licenses/bsd-license.php 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/Parser/PayloadParserFactory.h> 16#include <Swiften/Parser/PayloadParserFactory.h>
10#include <Swiften/Parser/PayloadParsers/DeliveryReceiptParser.h> 17#include <Swiften/Parser/PayloadParsers/DeliveryReceiptParser.h>
11 18
12namespace Swift { 19namespace Swift {
13 class PayloadParserFactoryCollection; 20 class PayloadParserFactoryCollection;
14 21
15 class DeliveryReceiptParserFactory : public PayloadParserFactory { 22 class SWIFTEN_API DeliveryReceiptParserFactory : public PayloadParserFactory {
16 public: 23 public:
17 DeliveryReceiptParserFactory() { 24 DeliveryReceiptParserFactory() {
18 } 25 }
diff --git a/Swiften/Parser/PayloadParsers/DeliveryReceiptRequestParser.h b/Swiften/Parser/PayloadParsers/DeliveryReceiptRequestParser.h
index 55f7997..5bf27fa 100644
--- a/Swiften/Parser/PayloadParsers/DeliveryReceiptRequestParser.h
+++ b/Swiften/Parser/PayloadParsers/DeliveryReceiptRequestParser.h
@@ -4,13 +4,20 @@
4 * See http://www.opensource.org/licenses/bsd-license.php for more information. 4 * See http://www.opensource.org/licenses/bsd-license.php 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/DeliveryReceiptRequest.h> 16#include <Swiften/Elements/DeliveryReceiptRequest.h>
10#include <Swiften/Parser/GenericPayloadParser.h> 17#include <Swiften/Parser/GenericPayloadParser.h>
11 18
12namespace Swift { 19namespace Swift {
13 class DeliveryReceiptRequestParser : public GenericPayloadParser<DeliveryReceiptRequest> { 20 class SWIFTEN_API DeliveryReceiptRequestParser : public GenericPayloadParser<DeliveryReceiptRequest> {
14 public: 21 public:
15 DeliveryReceiptRequestParser(); 22 DeliveryReceiptRequestParser();
16 23
diff --git a/Swiften/Parser/PayloadParsers/DeliveryReceiptRequestParserFactory.h b/Swiften/Parser/PayloadParsers/DeliveryReceiptRequestParserFactory.h
index 9bd98c2..509db63 100644
--- a/Swiften/Parser/PayloadParsers/DeliveryReceiptRequestParserFactory.h
+++ b/Swiften/Parser/PayloadParsers/DeliveryReceiptRequestParserFactory.h
@@ -4,15 +4,22 @@
4 * See http://www.opensource.org/licenses/bsd-license.php for more information. 4 * See http://www.opensource.org/licenses/bsd-license.php 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/Parser/PayloadParserFactory.h> 16#include <Swiften/Parser/PayloadParserFactory.h>
10#include <Swiften/Parser/PayloadParsers/DeliveryReceiptRequestParser.h> 17#include <Swiften/Parser/PayloadParsers/DeliveryReceiptRequestParser.h>
11 18
12namespace Swift { 19namespace Swift {
13 class PayloadParserFactoryCollection; 20 class PayloadParserFactoryCollection;
14 21
15 class DeliveryReceiptRequestParserFactory : public PayloadParserFactory { 22 class SWIFTEN_API DeliveryReceiptRequestParserFactory : public PayloadParserFactory {
16 public: 23 public:
17 DeliveryReceiptRequestParserFactory() { 24 DeliveryReceiptRequestParserFactory() {
18 } 25 }
diff --git a/Swiften/Parser/PayloadParsers/DiscoItemsParser.h b/Swiften/Parser/PayloadParsers/DiscoItemsParser.h
index c603938..b467ca1 100644
--- a/Swiften/Parser/PayloadParsers/DiscoItemsParser.h
+++ b/Swiften/Parser/PayloadParsers/DiscoItemsParser.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/Elements/DiscoItems.h> 10#include <Swiften/Elements/DiscoItems.h>
10#include <Swiften/Parser/GenericPayloadParser.h> 11#include <Swiften/Parser/GenericPayloadParser.h>
11 12
12namespace Swift { 13namespace Swift {
13 class DiscoItemsParser : public GenericPayloadParser<DiscoItems> { 14 class SWIFTEN_API DiscoItemsParser : public GenericPayloadParser<DiscoItems> {
14 public: 15 public:
15 DiscoItemsParser(); 16 DiscoItemsParser();
16 17
diff --git a/Swiften/Parser/PayloadParsers/ErrorParser.h b/Swiften/Parser/PayloadParsers/ErrorParser.h
index 513b503..fc4a5cb 100644
--- a/Swiften/Parser/PayloadParsers/ErrorParser.h
+++ b/Swiften/Parser/PayloadParsers/ErrorParser.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/Elements/ErrorPayload.h> 10#include <Swiften/Elements/ErrorPayload.h>
10#include <Swiften/Parser/GenericPayloadParser.h> 11#include <Swiften/Parser/GenericPayloadParser.h>
11 12
12namespace Swift { 13namespace Swift {
13 class PayloadParserFactoryCollection; 14 class PayloadParserFactoryCollection;
14 class ErrorParser : public GenericPayloadParser<ErrorPayload> { 15 class SWIFTEN_API ErrorParser : public GenericPayloadParser<ErrorPayload> {
15 public: 16 public:
16 ErrorParser(PayloadParserFactoryCollection* factories); 17 ErrorParser(PayloadParserFactoryCollection* factories);
17 18
diff --git a/Swiften/Parser/PayloadParsers/ErrorParserFactory.h b/Swiften/Parser/PayloadParsers/ErrorParserFactory.h
index b7376fd..bcced8b 100644
--- a/Swiften/Parser/PayloadParsers/ErrorParserFactory.h
+++ b/Swiften/Parser/PayloadParsers/ErrorParserFactory.h
@@ -1,18 +1,19 @@
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/Parser/PayloadParserFactory.h> 10#include <Swiften/Parser/PayloadParserFactory.h>
10#include <Swiften/Parser/PayloadParsers/ErrorParser.h> 11#include <Swiften/Parser/PayloadParsers/ErrorParser.h>
11 12
12namespace Swift { 13namespace Swift {
13 class PayloadParserFactoryCollection; 14 class PayloadParserFactoryCollection;
14 15
15 class ErrorParserFactory : public PayloadParserFactory { 16 class SWIFTEN_API ErrorParserFactory : public PayloadParserFactory {
16 public: 17 public:
17 ErrorParserFactory(PayloadParserFactoryCollection* factories) : factories(factories) { 18 ErrorParserFactory(PayloadParserFactoryCollection* factories) : factories(factories) {
18 } 19 }
diff --git a/Swiften/Parser/PayloadParsers/FormParser.h b/Swiften/Parser/PayloadParsers/FormParser.h
index f865a38..a3b7556 100644
--- a/Swiften/Parser/PayloadParsers/FormParser.h
+++ b/Swiften/Parser/PayloadParsers/FormParser.h
@@ -6,11 +6,12 @@
6 6
7#pragma once 7#pragma once
8 8
9#include <Swiften/Base/API.h>
9#include <Swiften/Elements/Form.h> 10#include <Swiften/Elements/Form.h>
10#include <Swiften/Parser/GenericPayloadParser.h> 11#include <Swiften/Parser/GenericPayloadParser.h>
11 12
12namespace Swift { 13namespace Swift {
13 class FormParser : public GenericPayloadParser<Form> { 14 class SWIFTEN_API FormParser : public GenericPayloadParser<Form> {
14 public: 15 public:
15 FormParser(); 16 FormParser();
16 17
diff --git a/Swiften/Parser/PayloadParsers/FormParserFactory.h b/Swiften/Parser/PayloadParsers/FormParserFactory.h
index 3551d08..74b2d35 100644
--- a/Swiften/Parser/PayloadParsers/FormParserFactory.h
+++ b/Swiften/Parser/PayloadParsers/FormParserFactory.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/Parser/PayloadParserFactory.h> 10#include <Swiften/Parser/PayloadParserFactory.h>
10#include <Swiften/Parser/PayloadParsers/FormParser.h> 11#include <Swiften/Parser/PayloadParsers/FormParser.h>
11 12
12namespace Swift { 13namespace Swift {
13 class PayloadParserFactoryCollection; 14 class PayloadParserFactoryCollection;
14 15
15 class FormParserFactory : public PayloadParserFactory { 16 class SWIFTEN_API FormParserFactory : public PayloadParserFactory {
16 public: 17 public:
17 FormParserFactory() { 18 FormParserFactory() {
18 } 19 }
diff --git a/Swiften/Parser/PayloadParsers/IBBParser.h b/Swiften/Parser/PayloadParsers/IBBParser.h
index 8c0f77a..95fe61a 100644
--- a/Swiften/Parser/PayloadParsers/IBBParser.h
+++ b/Swiften/Parser/PayloadParsers/IBBParser.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/optional.hpp> 9#include <boost/optional.hpp>
10 10
11#include <Swiften/Base/API.h>
11#include <Swiften/Elements/IBB.h> 12#include <Swiften/Elements/IBB.h>
12#include <Swiften/Parser/GenericPayloadParser.h> 13#include <Swiften/Parser/GenericPayloadParser.h>
13 14
14namespace Swift { 15namespace Swift {
15 class IBBParser : public GenericPayloadParser<IBB> { 16 class SWIFTEN_API IBBParser : public GenericPayloadParser<IBB> {
16 public: 17 public:
17 IBBParser(); 18 IBBParser();
18 ~IBBParser(); 19 ~IBBParser();
diff --git a/Swiften/Parser/PayloadParsers/IdleParser.h b/Swiften/Parser/PayloadParsers/IdleParser.h
index 38001b2..e8bbcf6 100644
--- a/Swiften/Parser/PayloadParsers/IdleParser.h
+++ b/Swiften/Parser/PayloadParsers/IdleParser.h
@@ -4,13 +4,20 @@
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#pragma once 7/*
8 * Copyright (c) 2015 Isode Limited.
9 * All rights reserved.
10 * See the COPYING file for more information.
11 */
8 12
13#pragma once
14
15#include <Swiften/Base/API.h>
9#include <Swiften/Elements/Idle.h> 16#include <Swiften/Elements/Idle.h>
10#include <Swiften/Parser/GenericPayloadParser.h> 17#include <Swiften/Parser/GenericPayloadParser.h>
11 18
12namespace Swift { 19namespace Swift {
13 class IdleParser : public GenericPayloadParser<Idle> { 20 class SWIFTEN_API IdleParser : public GenericPayloadParser<Idle> {
14 public: 21 public:
15 IdleParser(); 22 IdleParser();
16 23
diff --git a/Swiften/Parser/PayloadParsers/InBandRegistrationPayloadParser.h b/Swiften/Parser/PayloadParsers/InBandRegistrationPayloadParser.h
index 2cd061e..cd8c452 100644
--- a/Swiften/Parser/PayloadParsers/InBandRegistrationPayloadParser.h
+++ b/Swiften/Parser/PayloadParsers/InBandRegistrationPayloadParser.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,6 +8,7 @@
8 8
9#include <boost/optional.hpp> 9#include <boost/optional.hpp>
10 10
11#include <Swiften/Base/API.h>
11#include <Swiften/Elements/InBandRegistrationPayload.h> 12#include <Swiften/Elements/InBandRegistrationPayload.h>
12#include <Swiften/Parser/GenericPayloadParser.h> 13#include <Swiften/Parser/GenericPayloadParser.h>
13 14
@@ -15,7 +16,7 @@ namespace Swift {
15 class FormParserFactory; 16 class FormParserFactory;
16 class FormParser; 17 class FormParser;
17 18
18 class InBandRegistrationPayloadParser : public GenericPayloadParser<InBandRegistrationPayload> { 19 class SWIFTEN_API InBandRegistrationPayloadParser : public GenericPayloadParser<InBandRegistrationPayload> {
19 public: 20 public:
20 InBandRegistrationPayloadParser(); 21 InBandRegistrationPayloadParser();
21 ~InBandRegistrationPayloadParser(); 22 ~InBandRegistrationPayloadParser();
diff --git a/Swiften/Parser/PayloadParsers/JingleContentPayloadParser.h b/Swiften/Parser/PayloadParsers/JingleContentPayloadParser.h
index a871cc4..977d2eb 100644
--- a/Swiften/Parser/PayloadParsers/JingleContentPayloadParser.h
+++ b/Swiften/Parser/PayloadParsers/JingleContentPayloadParser.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/JingleContentPayload.h> 16#include <Swiften/Elements/JingleContentPayload.h>
10#include <Swiften/Parser/GenericPayloadParser.h> 17#include <Swiften/Parser/GenericPayloadParser.h>
11 18
@@ -13,7 +20,7 @@ namespace Swift {
13 20
14class PayloadParserFactoryCollection; 21class PayloadParserFactoryCollection;
15 22
16class JingleContentPayloadParser : public GenericPayloadParser<JingleContentPayload> { 23class SWIFTEN_API JingleContentPayloadParser : public GenericPayloadParser<JingleContentPayload> {
17 public: 24 public:
18 JingleContentPayloadParser(PayloadParserFactoryCollection* factories); 25 JingleContentPayloadParser(PayloadParserFactoryCollection* factories);
19 26
diff --git a/Swiften/Parser/PayloadParsers/JingleContentPayloadParserFactory.h b/Swiften/Parser/PayloadParsers/JingleContentPayloadParserFactory.h
index 6d66e74..b343c24 100644
--- a/Swiften/Parser/PayloadParsers/JingleContentPayloadParserFactory.h
+++ b/Swiften/Parser/PayloadParsers/JingleContentPayloadParserFactory.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/Parser/GenericPayloadParserFactory.h> 16#include <Swiften/Parser/GenericPayloadParserFactory.h>
10#include <Swiften/Parser/PayloadParsers/JingleContentPayloadParser.h> 17#include <Swiften/Parser/PayloadParsers/JingleContentPayloadParser.h>
11 18
@@ -13,7 +20,7 @@ namespace Swift {
13 20
14 class PayloadParserFactoryCollection; 21 class PayloadParserFactoryCollection;
15 22
16 class JingleContentPayloadParserFactory : public PayloadParserFactory { 23 class SWIFTEN_API JingleContentPayloadParserFactory : public PayloadParserFactory {
17 public: 24 public:
18 JingleContentPayloadParserFactory(PayloadParserFactoryCollection* factories) : factories(factories) { 25 JingleContentPayloadParserFactory(PayloadParserFactoryCollection* factories) : factories(factories) {
19 } 26 }
diff --git a/Swiften/Parser/PayloadParsers/JingleFileTransferDescriptionParser.h b/Swiften/Parser/PayloadParsers/JingleFileTransferDescriptionParser.h
index a1215c1..52dd232 100644
--- a/Swiften/Parser/PayloadParsers/JingleFileTransferDescriptionParser.h
+++ b/Swiften/Parser/PayloadParsers/JingleFileTransferDescriptionParser.h
@@ -5,13 +5,14 @@
5 */ 5 */
6 6
7/* 7/*
8 * Copyright (c) 2014 Isode Limited. 8 * Copyright (c) 2014-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/Elements/JingleFileTransferDescription.h> 16#include <Swiften/Elements/JingleFileTransferDescription.h>
16#include <Swiften/Parser/GenericPayloadParser.h> 17#include <Swiften/Parser/GenericPayloadParser.h>
17#include <Swiften/Parser/PayloadParser.h> 18#include <Swiften/Parser/PayloadParser.h>
@@ -20,7 +21,7 @@ namespace Swift {
20 21
21class PayloadParserFactoryCollection; 22class PayloadParserFactoryCollection;
22 23
23class JingleFileTransferDescriptionParser : public GenericPayloadParser<JingleFileTransferDescription> { 24class SWIFTEN_API JingleFileTransferDescriptionParser : public GenericPayloadParser<JingleFileTransferDescription> {
24 public: 25 public:
25 JingleFileTransferDescriptionParser(PayloadParserFactoryCollection* factories); 26 JingleFileTransferDescriptionParser(PayloadParserFactoryCollection* factories);
26 27
diff --git a/Swiften/Parser/PayloadParsers/JingleFileTransferDescriptionParserFactory.h b/Swiften/Parser/PayloadParsers/JingleFileTransferDescriptionParserFactory.h
index 7bd4b8a..f8a340c 100644
--- a/Swiften/Parser/PayloadParsers/JingleFileTransferDescriptionParserFactory.h
+++ b/Swiften/Parser/PayloadParsers/JingleFileTransferDescriptionParserFactory.h
@@ -5,13 +5,14 @@
5 */ 5 */
6 6
7/* 7/*
8 * Copyright (c) 2014 Isode Limited. 8 * Copyright (c) 2014-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/Parser/GenericPayloadParserFactory.h> 16#include <Swiften/Parser/GenericPayloadParserFactory.h>
16#include <Swiften/Parser/PayloadParsers/JingleFileTransferDescriptionParser.h> 17#include <Swiften/Parser/PayloadParsers/JingleFileTransferDescriptionParser.h>
17 18
@@ -19,7 +20,7 @@ namespace Swift {
19 20
20 class PayloadParserFactoryCollection; 21 class PayloadParserFactoryCollection;
21 22
22 class JingleFileTransferDescriptionParserFactory : public PayloadParserFactory { 23 class SWIFTEN_API JingleFileTransferDescriptionParserFactory : public PayloadParserFactory {
23 public: 24 public:
24 JingleFileTransferDescriptionParserFactory(PayloadParserFactoryCollection* factories) : factories(factories) { 25 JingleFileTransferDescriptionParserFactory(PayloadParserFactoryCollection* factories) : factories(factories) {
25 } 26 }
diff --git a/Swiften/Parser/PayloadParsers/JingleFileTransferFileInfoParser.h b/Swiften/Parser/PayloadParsers/JingleFileTransferFileInfoParser.h
index eb6245c..e49ee69 100644
--- a/Swiften/Parser/PayloadParsers/JingleFileTransferFileInfoParser.h
+++ b/Swiften/Parser/PayloadParsers/JingleFileTransferFileInfoParser.h
@@ -1,17 +1,18 @@
1/* 1/*
2 * Copyright (c) 2014 Isode Limited. 2 * Copyright (c) 2014-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/JingleFileTransferFileInfo.h> 10#include <Swiften/Elements/JingleFileTransferFileInfo.h>
10#include <Swiften/Parser/GenericPayloadParser.h> 11#include <Swiften/Parser/GenericPayloadParser.h>
11 12
12namespace Swift { 13namespace Swift {
13 14
14class JingleFileTransferFileInfoParser : public GenericPayloadParser<JingleFileTransferFileInfo> { 15class SWIFTEN_API JingleFileTransferFileInfoParser : public GenericPayloadParser<JingleFileTransferFileInfo> {
15 public: 16 public:
16 JingleFileTransferFileInfoParser(); 17 JingleFileTransferFileInfoParser();
17 18
diff --git a/Swiften/Parser/PayloadParsers/JingleFileTransferHashParser.h b/Swiften/Parser/PayloadParsers/JingleFileTransferHashParser.h
index 5a7c6c5..15d3294 100644
--- a/Swiften/Parser/PayloadParsers/JingleFileTransferHashParser.h
+++ b/Swiften/Parser/PayloadParsers/JingleFileTransferHashParser.h
@@ -5,19 +5,20 @@
5 */ 5 */
6 6
7/* 7/*
8 * Copyright (c) 2014 Isode Limited. 8 * Copyright (c) 2014-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/Elements/JingleFileTransferHash.h> 16#include <Swiften/Elements/JingleFileTransferHash.h>
16#include <Swiften/Parser/GenericPayloadParser.h> 17#include <Swiften/Parser/GenericPayloadParser.h>
17 18
18namespace Swift { 19namespace Swift {
19 20
20class JingleFileTransferHashParser : public GenericPayloadParser<JingleFileTransferHash> { 21class SWIFTEN_API JingleFileTransferHashParser : public GenericPayloadParser<JingleFileTransferHash> {
21public: 22public:
22 JingleFileTransferHashParser(); 23 JingleFileTransferHashParser();
23 24
diff --git a/Swiften/Parser/PayloadParsers/JingleIBBTransportMethodPayloadParser.h b/Swiften/Parser/PayloadParsers/JingleIBBTransportMethodPayloadParser.h
index 311cc5b..4e22943 100644
--- a/Swiften/Parser/PayloadParsers/JingleIBBTransportMethodPayloadParser.h
+++ b/Swiften/Parser/PayloadParsers/JingleIBBTransportMethodPayloadParser.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/Elements/JingleIBBTransportPayload.h> 16#include <Swiften/Elements/JingleIBBTransportPayload.h>
10#include <Swiften/Parser/GenericPayloadParser.h> 17#include <Swiften/Parser/GenericPayloadParser.h>
11 18
12namespace Swift { 19namespace Swift {
13 20
14class JingleIBBTransportMethodPayloadParser : public GenericPayloadParser<JingleIBBTransportPayload> { 21class SWIFTEN_API JingleIBBTransportMethodPayloadParser : public GenericPayloadParser<JingleIBBTransportPayload> {
15 public: 22 public:
16 JingleIBBTransportMethodPayloadParser(); 23 JingleIBBTransportMethodPayloadParser();
17 24
diff --git a/Swiften/Parser/PayloadParsers/JingleParser.h b/Swiften/Parser/PayloadParsers/JingleParser.h
index c7bd58c..ad49e96 100644
--- a/Swiften/Parser/PayloadParsers/JingleParser.h
+++ b/Swiften/Parser/PayloadParsers/JingleParser.h
@@ -4,15 +4,22 @@
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/JinglePayload.h> 16#include <Swiften/Elements/JinglePayload.h>
10#include <Swiften/Parser/GenericPayloadParser.h> 17#include <Swiften/Parser/GenericPayloadParser.h>
11#include <Swiften/Parser/PayloadParserFactoryCollection.h> 18#include <Swiften/Parser/PayloadParserFactoryCollection.h>
12 19
13namespace Swift { 20namespace Swift {
14 21
15class JingleParser : public GenericPayloadParser<JinglePayload> { 22class SWIFTEN_API JingleParser : public GenericPayloadParser<JinglePayload> {
16 public: 23 public:
17 JingleParser(PayloadParserFactoryCollection* factories); 24 JingleParser(PayloadParserFactoryCollection* factories);
18 25
diff --git a/Swiften/Parser/PayloadParsers/JingleParserFactory.h b/Swiften/Parser/PayloadParsers/JingleParserFactory.h
index fa25aeb..73395fc 100644
--- a/Swiften/Parser/PayloadParsers/JingleParserFactory.h
+++ b/Swiften/Parser/PayloadParsers/JingleParserFactory.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/Parser/GenericPayloadParserFactory.h> 16#include <Swiften/Parser/GenericPayloadParserFactory.h>
10#include <Swiften/Parser/PayloadParsers/JingleParser.h> 17#include <Swiften/Parser/PayloadParsers/JingleParser.h>
11 18
@@ -13,7 +20,7 @@ namespace Swift {
13 20
14 class PayloadParserFactoryCollection; 21 class PayloadParserFactoryCollection;
15 22
16 class JingleParserFactory : public PayloadParserFactory { 23 class SWIFTEN_API JingleParserFactory : public PayloadParserFactory {
17 public: 24 public:
18 JingleParserFactory(PayloadParserFactoryCollection* factories) : factories(factories) { 25 JingleParserFactory(PayloadParserFactoryCollection* factories) : factories(factories) {
19 } 26 }
diff --git a/Swiften/Parser/PayloadParsers/JingleReasonParser.h b/Swiften/Parser/PayloadParsers/JingleReasonParser.h
index 08af31a..4fe334e 100644
--- a/Swiften/Parser/PayloadParsers/JingleReasonParser.h
+++ b/Swiften/Parser/PayloadParsers/JingleReasonParser.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/Elements/JinglePayload.h> 16#include <Swiften/Elements/JinglePayload.h>
10#include <Swiften/Parser/GenericPayloadParser.h> 17#include <Swiften/Parser/GenericPayloadParser.h>
11 18
12namespace Swift { 19namespace Swift {
13 20
14class JingleReasonParser : public GenericPayloadParser<JinglePayload::Reason> { 21class SWIFTEN_API JingleReasonParser : public GenericPayloadParser<JinglePayload::Reason> {
15 public: 22 public:
16 JingleReasonParser(); 23 JingleReasonParser();
17 24
diff --git a/Swiften/Parser/PayloadParsers/JingleS5BTransportMethodPayloadParser.h b/Swiften/Parser/PayloadParsers/JingleS5BTransportMethodPayloadParser.h
index 1987d3f..ccf0b1b 100644
--- a/Swiften/Parser/PayloadParsers/JingleS5BTransportMethodPayloadParser.h
+++ b/Swiften/Parser/PayloadParsers/JingleS5BTransportMethodPayloadParser.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/Elements/JingleS5BTransportPayload.h> 16#include <Swiften/Elements/JingleS5BTransportPayload.h>
10#include <Swiften/Parser/GenericPayloadParser.h> 17#include <Swiften/Parser/GenericPayloadParser.h>
11 18
12namespace Swift { 19namespace Swift {
13 20
14class JingleS5BTransportMethodPayloadParser : public GenericPayloadParser<JingleS5BTransportPayload> { 21class SWIFTEN_API JingleS5BTransportMethodPayloadParser : public GenericPayloadParser<JingleS5BTransportPayload> {
15 public: 22 public:
16 JingleS5BTransportMethodPayloadParser(); 23 JingleS5BTransportMethodPayloadParser();
17 24
diff --git a/Swiften/Parser/PayloadParsers/LastParser.h b/Swiften/Parser/PayloadParsers/LastParser.h
index 1ccdf60..58cde22 100644
--- a/Swiften/Parser/PayloadParsers/LastParser.h
+++ b/Swiften/Parser/PayloadParsers/LastParser.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/Elements/Last.h> 10#include <Swiften/Elements/Last.h>
10#include <Swiften/Parser/GenericPayloadParser.h> 11#include <Swiften/Parser/GenericPayloadParser.h>
11 12
12namespace Swift { 13namespace Swift {
13 class LastParser : public GenericPayloadParser<Last> { 14 class SWIFTEN_API LastParser : public GenericPayloadParser<Last> {
14 public: 15 public:
15 LastParser(); 16 LastParser();
16 17
diff --git a/Swiften/Parser/PayloadParsers/MUCAdminPayloadParser.h b/Swiften/Parser/PayloadParsers/MUCAdminPayloadParser.h
index 2cef4d8..9174c7d 100644
--- a/Swiften/Parser/PayloadParsers/MUCAdminPayloadParser.h
+++ b/Swiften/Parser/PayloadParsers/MUCAdminPayloadParser.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,12 +8,13 @@
8 8
9#include <boost/optional.hpp> 9#include <boost/optional.hpp>
10 10
11#include <Swiften/Base/API.h>
11#include <Swiften/Elements/MUCAdminPayload.h> 12#include <Swiften/Elements/MUCAdminPayload.h>
12#include <Swiften/Parser/GenericPayloadTreeParser.h> 13#include <Swiften/Parser/GenericPayloadTreeParser.h>
13#include <Swiften/Parser/PayloadParsers/MUCItemParser.h> 14#include <Swiften/Parser/PayloadParsers/MUCItemParser.h>
14 15
15namespace Swift { 16namespace Swift {
16 class MUCAdminPayloadParser : public GenericPayloadTreeParser<MUCAdminPayload> { 17 class SWIFTEN_API MUCAdminPayloadParser : public GenericPayloadTreeParser<MUCAdminPayload> {
17 public: 18 public:
18 virtual void handleTree(ParserElement::ref root); 19 virtual void handleTree(ParserElement::ref root);
19 }; 20 };
diff --git a/Swiften/Parser/PayloadParsers/MUCDestroyPayloadParser.h b/Swiften/Parser/PayloadParsers/MUCDestroyPayloadParser.h
index 55d6ecd..1e5d545 100644
--- a/Swiften/Parser/PayloadParsers/MUCDestroyPayloadParser.h
+++ b/Swiften/Parser/PayloadParsers/MUCDestroyPayloadParser.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/optional.hpp> 9#include <boost/optional.hpp>
10 10
11#include <Swiften/Base/API.h>
11#include <Swiften/Elements/MUCDestroyPayload.h> 12#include <Swiften/Elements/MUCDestroyPayload.h>
12#include <Swiften/Parser/GenericPayloadTreeParser.h> 13#include <Swiften/Parser/GenericPayloadTreeParser.h>
13 14
14namespace Swift { 15namespace Swift {
15 class MUCDestroyPayloadParser : public GenericPayloadTreeParser<MUCDestroyPayload> { 16 class SWIFTEN_API MUCDestroyPayloadParser : public GenericPayloadTreeParser<MUCDestroyPayload> {
16 public: 17 public:
17 virtual void handleTree(ParserElement::ref root); 18 virtual void handleTree(ParserElement::ref root);
18 }; 19 };
diff --git a/Swiften/Parser/PayloadParsers/MUCInvitationPayloadParser.h b/Swiften/Parser/PayloadParsers/MUCInvitationPayloadParser.h
index df365e0..f79c971 100644
--- a/Swiften/Parser/PayloadParsers/MUCInvitationPayloadParser.h
+++ b/Swiften/Parser/PayloadParsers/MUCInvitationPayloadParser.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/Elements/MUCInvitationPayload.h> 10#include <Swiften/Elements/MUCInvitationPayload.h>
10#include <Swiften/Parser/GenericPayloadTreeParser.h> 11#include <Swiften/Parser/GenericPayloadTreeParser.h>
11 12
12namespace Swift { 13namespace Swift {
13 class MUCInvitationPayloadParser : public GenericPayloadTreeParser<MUCInvitationPayload> { 14 class SWIFTEN_API MUCInvitationPayloadParser : public GenericPayloadTreeParser<MUCInvitationPayload> {
14 public: 15 public:
15 virtual void handleTree(ParserElement::ref root); 16 virtual void handleTree(ParserElement::ref root);
16 }; 17 };
diff --git a/Swiften/Parser/PayloadParsers/MUCItemParser.h b/Swiften/Parser/PayloadParsers/MUCItemParser.h
index ccfc610..fc5d657 100644
--- a/Swiften/Parser/PayloadParsers/MUCItemParser.h
+++ b/Swiften/Parser/PayloadParsers/MUCItemParser.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/Elements/MUCItem.h> 10#include <Swiften/Elements/MUCItem.h>
10#include <Swiften/Parser/GenericPayloadTreeParser.h> 11#include <Swiften/Parser/GenericPayloadTreeParser.h>
11 12
12namespace Swift { 13namespace Swift {
13 class MUCItemParser { 14 class SWIFTEN_API MUCItemParser {
14 public: 15 public:
15 static MUCItem itemFromTree(ParserElement::ref root); 16 static MUCItem itemFromTree(ParserElement::ref root);
16 private: 17 private:
diff --git a/Swiften/Parser/PayloadParsers/MUCOwnerPayloadParser.h b/Swiften/Parser/PayloadParsers/MUCOwnerPayloadParser.h
index 50d1aa6..85db82f 100644
--- a/Swiften/Parser/PayloadParsers/MUCOwnerPayloadParser.h
+++ b/Swiften/Parser/PayloadParsers/MUCOwnerPayloadParser.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,13 +8,14 @@
8 8
9#include <boost/optional.hpp> 9#include <boost/optional.hpp>
10 10
11#include <Swiften/Base/API.h>
11#include <Swiften/Elements/MUCOwnerPayload.h> 12#include <Swiften/Elements/MUCOwnerPayload.h>
12#include <Swiften/Parser/GenericPayloadParser.h> 13#include <Swiften/Parser/GenericPayloadParser.h>
13 14
14namespace Swift { 15namespace Swift {
15 class PayloadParserFactoryCollection; 16 class PayloadParserFactoryCollection;
16 17
17 class MUCOwnerPayloadParser : public GenericPayloadParser<MUCOwnerPayload> { 18 class SWIFTEN_API MUCOwnerPayloadParser : public GenericPayloadParser<MUCOwnerPayload> {
18 public: 19 public:
19 MUCOwnerPayloadParser(PayloadParserFactoryCollection* factories); 20 MUCOwnerPayloadParser(PayloadParserFactoryCollection* factories);
20 21
diff --git a/Swiften/Parser/PayloadParsers/MUCOwnerPayloadParserFactory.h b/Swiften/Parser/PayloadParsers/MUCOwnerPayloadParserFactory.h
index eb682ab..9270dc7 100644
--- a/Swiften/Parser/PayloadParsers/MUCOwnerPayloadParserFactory.h
+++ b/Swiften/Parser/PayloadParsers/MUCOwnerPayloadParserFactory.h
@@ -1,18 +1,19 @@
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/Parser/PayloadParserFactory.h> 10#include <Swiften/Parser/PayloadParserFactory.h>
10#include <Swiften/Parser/PayloadParsers/MUCOwnerPayloadParser.h> 11#include <Swiften/Parser/PayloadParsers/MUCOwnerPayloadParser.h>
11 12
12namespace Swift { 13namespace Swift {
13 class PayloadParserFactoryCollection; 14 class PayloadParserFactoryCollection;
14 15
15 class MUCOwnerPayloadParserFactory : public PayloadParserFactory { 16 class SWIFTEN_API MUCOwnerPayloadParserFactory : public PayloadParserFactory {
16 public: 17 public:
17 MUCOwnerPayloadParserFactory(PayloadParserFactoryCollection* factories) : factories(factories) { 18 MUCOwnerPayloadParserFactory(PayloadParserFactoryCollection* factories) : factories(factories) {
18 } 19 }
diff --git a/Swiften/Parser/PayloadParsers/MUCUserPayloadParser.h b/Swiften/Parser/PayloadParsers/MUCUserPayloadParser.h
index b940604..3d7a53b 100644
--- a/Swiften/Parser/PayloadParsers/MUCUserPayloadParser.h
+++ b/Swiften/Parser/PayloadParsers/MUCUserPayloadParser.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/optional.hpp> 9#include <boost/optional.hpp>
10 10
11#include <Swiften/Base/API.h>
11#include <Swiften/Elements/MUCUserPayload.h> 12#include <Swiften/Elements/MUCUserPayload.h>
12#include <Swiften/Parser/GenericPayloadTreeParser.h> 13#include <Swiften/Parser/GenericPayloadTreeParser.h>
13#include <Swiften/Parser/PayloadParsers/MUCItemParser.h> 14#include <Swiften/Parser/PayloadParsers/MUCItemParser.h>
14 15
15namespace Swift { 16namespace Swift {
16 class PayloadParserFactoryCollection; 17 class PayloadParserFactoryCollection;
17 class MUCUserPayloadParser : public GenericPayloadTreeParser<MUCUserPayload> { 18 class SWIFTEN_API MUCUserPayloadParser : public GenericPayloadTreeParser<MUCUserPayload> {
18 public: 19 public:
19 MUCUserPayloadParser(PayloadParserFactoryCollection* collection) : factories(collection) {} 20 MUCUserPayloadParser(PayloadParserFactoryCollection* collection) : factories(collection) {}
20 virtual void handleTree(ParserElement::ref root); 21 virtual void handleTree(ParserElement::ref root);
diff --git a/Swiften/Parser/PayloadParsers/MUCUserPayloadParserFactory.h b/Swiften/Parser/PayloadParsers/MUCUserPayloadParserFactory.h
index 4521ad6..4cc9134 100644
--- a/Swiften/Parser/PayloadParsers/MUCUserPayloadParserFactory.h
+++ b/Swiften/Parser/PayloadParsers/MUCUserPayloadParserFactory.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/Parser/GenericPayloadParserFactory.h> 10#include <Swiften/Parser/GenericPayloadParserFactory.h>
10#include <Swiften/Parser/PayloadParsers/MUCUserPayloadParser.h> 11#include <Swiften/Parser/PayloadParsers/MUCUserPayloadParser.h>
11 12
12namespace Swift { 13namespace Swift {
13 class MUCUserPayloadParserFactory : public PayloadParserFactory { 14 class SWIFTEN_API MUCUserPayloadParserFactory : public PayloadParserFactory {
14 public: 15 public:
15 MUCUserPayloadParserFactory(PayloadParserFactoryCollection* factories) : factories(factories) { 16 MUCUserPayloadParserFactory(PayloadParserFactoryCollection* factories) : factories(factories) {
16 } 17 }
diff --git a/Swiften/Parser/PayloadParsers/NicknameParser.h b/Swiften/Parser/PayloadParsers/NicknameParser.h
index 653ff27..d8ac5b5 100644
--- a/Swiften/Parser/PayloadParsers/NicknameParser.h
+++ b/Swiften/Parser/PayloadParsers/NicknameParser.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/Elements/Nickname.h> 10#include <Swiften/Elements/Nickname.h>
10#include <Swiften/Parser/GenericPayloadParser.h> 11#include <Swiften/Parser/GenericPayloadParser.h>
11 12
12namespace Swift { 13namespace Swift {
13 class NicknameParser : public GenericPayloadParser<Nickname> { 14 class SWIFTEN_API NicknameParser : public GenericPayloadParser<Nickname> {
14 public: 15 public:
15 NicknameParser(); 16 NicknameParser();
16 17
diff --git a/Swiften/Parser/PayloadParsers/PriorityParser.h b/Swiften/Parser/PayloadParsers/PriorityParser.h
index d84d961..6c34e3b 100644
--- a/Swiften/Parser/PayloadParsers/PriorityParser.h
+++ b/Swiften/Parser/PayloadParsers/PriorityParser.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/Elements/Priority.h> 10#include <Swiften/Elements/Priority.h>
10#include <Swiften/Parser/GenericPayloadParser.h> 11#include <Swiften/Parser/GenericPayloadParser.h>
11 12
12namespace Swift { 13namespace Swift {
13 class PriorityParser : public GenericPayloadParser<Priority> { 14 class SWIFTEN_API PriorityParser : public GenericPayloadParser<Priority> {
14 public: 15 public:
15 PriorityParser(); 16 PriorityParser();
16 17
diff --git a/Swiften/Parser/PayloadParsers/PrivateStorageParser.h b/Swiften/Parser/PayloadParsers/PrivateStorageParser.h
index eb10594..57e4136 100644
--- a/Swiften/Parser/PayloadParsers/PrivateStorageParser.h
+++ b/Swiften/Parser/PayloadParsers/PrivateStorageParser.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/optional.hpp> 9#include <boost/optional.hpp>
10 10
11#include <Swiften/Base/API.h>
11#include <Swiften/Elements/PrivateStorage.h> 12#include <Swiften/Elements/PrivateStorage.h>
12#include <Swiften/Parser/GenericPayloadParser.h> 13#include <Swiften/Parser/GenericPayloadParser.h>
13 14
14namespace Swift { 15namespace Swift {
15 class PayloadParserFactoryCollection; 16 class PayloadParserFactoryCollection;
16 17
17 class PrivateStorageParser : public GenericPayloadParser<PrivateStorage> { 18 class SWIFTEN_API PrivateStorageParser : public GenericPayloadParser<PrivateStorage> {
18 public: 19 public:
19 PrivateStorageParser(PayloadParserFactoryCollection* factories); 20 PrivateStorageParser(PayloadParserFactoryCollection* factories);
20 21
diff --git a/Swiften/Parser/PayloadParsers/PrivateStorageParserFactory.h b/Swiften/Parser/PayloadParsers/PrivateStorageParserFactory.h
index 6e7c1d2..e8db9af 100644
--- a/Swiften/Parser/PayloadParsers/PrivateStorageParserFactory.h
+++ b/Swiften/Parser/PayloadParsers/PrivateStorageParserFactory.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/Parser/PayloadParserFactory.h> 10#include <Swiften/Parser/PayloadParserFactory.h>
10#include <Swiften/Parser/PayloadParsers/PrivateStorageParser.h> 11#include <Swiften/Parser/PayloadParsers/PrivateStorageParser.h>
11 12
12namespace Swift { 13namespace Swift {
13 class PayloadParserFactoryCollection; 14 class PayloadParserFactoryCollection;
14 15
15 class PrivateStorageParserFactory : public PayloadParserFactory { 16 class SWIFTEN_API PrivateStorageParserFactory : public PayloadParserFactory {
16 public: 17 public:
17 PrivateStorageParserFactory(PayloadParserFactoryCollection* factories) : factories(factories) { 18 PrivateStorageParserFactory(PayloadParserFactoryCollection* factories) : factories(factories) {
18 } 19 }
diff --git a/Swiften/Parser/PayloadParsers/PubSubErrorParserFactory.h b/Swiften/Parser/PayloadParsers/PubSubErrorParserFactory.h
index 2d2b443..e421581 100644
--- a/Swiften/Parser/PayloadParsers/PubSubErrorParserFactory.h
+++ b/Swiften/Parser/PayloadParsers/PubSubErrorParserFactory.h
@@ -1,16 +1,17 @@
1/* 1/*
2 * Copyright (c) 2013 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/Parser/PayloadParserFactory.h> 10#include <Swiften/Parser/PayloadParserFactory.h>
10#include <Swiften/Parser/PayloadParsers/PubSubErrorParser.h> 11#include <Swiften/Parser/PayloadParsers/PubSubErrorParser.h>
11 12
12namespace Swift { 13namespace Swift {
13 class PubSubErrorParserFactory : public PayloadParserFactory { 14 class SWIFTEN_API PubSubErrorParserFactory : public PayloadParserFactory {
14 public: 15 public:
15 PubSubErrorParserFactory() { 16 PubSubErrorParserFactory() {
16 } 17 }
diff --git a/Swiften/Parser/PayloadParsers/RawXMLPayloadParserFactory.h b/Swiften/Parser/PayloadParsers/RawXMLPayloadParserFactory.h
index 7b9a32f..a363098 100644
--- a/Swiften/Parser/PayloadParsers/RawXMLPayloadParserFactory.h
+++ b/Swiften/Parser/PayloadParsers/RawXMLPayloadParserFactory.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/Parser/PayloadParserFactory.h> 10#include <Swiften/Parser/PayloadParserFactory.h>
10#include <Swiften/Parser/PayloadParsers/RawXMLPayloadParser.h> 11#include <Swiften/Parser/PayloadParsers/RawXMLPayloadParser.h>
11#include <string> 12#include <string>
12 13
13namespace Swift { 14namespace Swift {
14 class RawXMLPayloadParserFactory : public PayloadParserFactory { 15 class SWIFTEN_API RawXMLPayloadParserFactory : public PayloadParserFactory {
15 public: 16 public:
16 RawXMLPayloadParserFactory() {} 17 RawXMLPayloadParserFactory() {}
17 18
diff --git a/Swiften/Parser/PayloadParsers/ReplaceParser.h b/Swiften/Parser/PayloadParsers/ReplaceParser.h
index 4d73459..3c1fbbc 100644
--- a/Swiften/Parser/PayloadParsers/ReplaceParser.h
+++ b/Swiften/Parser/PayloadParsers/ReplaceParser.h
@@ -4,13 +4,20 @@
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/Replace.h> 16#include <Swiften/Elements/Replace.h>
10#include <Swiften/Parser/GenericPayloadParser.h> 17#include <Swiften/Parser/GenericPayloadParser.h>
11 18
12namespace Swift { 19namespace Swift {
13 class ReplaceParser : public GenericPayloadParser<Replace> { 20 class SWIFTEN_API ReplaceParser : public GenericPayloadParser<Replace> {
14 public: 21 public:
15 ReplaceParser(); 22 ReplaceParser();
16 virtual void handleStartElement(const std::string& element, const std::string&, const AttributeMap& attributes); 23 virtual void handleStartElement(const std::string& element, const std::string&, const AttributeMap& attributes);
diff --git a/Swiften/Parser/PayloadParsers/ResourceBindParser.h b/Swiften/Parser/PayloadParsers/ResourceBindParser.h
index fd9cf73..134bf14 100644
--- a/Swiften/Parser/PayloadParsers/ResourceBindParser.h
+++ b/Swiften/Parser/PayloadParsers/ResourceBindParser.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/Elements/ResourceBind.h> 10#include <Swiften/Elements/ResourceBind.h>
10#include <Swiften/Parser/GenericPayloadParser.h> 11#include <Swiften/Parser/GenericPayloadParser.h>
11 12
12namespace Swift { 13namespace Swift {
13 class ResourceBindParser : public GenericPayloadParser<ResourceBind> { 14 class SWIFTEN_API ResourceBindParser : public GenericPayloadParser<ResourceBind> {
14 public: 15 public:
15 ResourceBindParser(); 16 ResourceBindParser();
16 17
diff --git a/Swiften/Parser/PayloadParsers/RosterItemExchangeParser.h b/Swiften/Parser/PayloadParsers/RosterItemExchangeParser.h
index 5652b94..bf3dace 100644
--- a/Swiften/Parser/PayloadParsers/RosterItemExchangeParser.h
+++ b/Swiften/Parser/PayloadParsers/RosterItemExchangeParser.h
@@ -4,15 +4,22 @@
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/RosterItemExchangePayload.h> 16#include <Swiften/Elements/RosterItemExchangePayload.h>
10#include <Swiften/Parser/GenericPayloadParser.h> 17#include <Swiften/Parser/GenericPayloadParser.h>
11 18
12namespace Swift { 19namespace Swift {
13 class SerializingParser; 20 class SerializingParser;
14 21
15 class RosterItemExchangeParser : public GenericPayloadParser<RosterItemExchangePayload> { 22 class SWIFTEN_API RosterItemExchangeParser : public GenericPayloadParser<RosterItemExchangePayload> {
16 public: 23 public:
17 RosterItemExchangeParser(); 24 RosterItemExchangeParser();
18 25
diff --git a/Swiften/Parser/PayloadParsers/S5BProxyRequestParser.h b/Swiften/Parser/PayloadParsers/S5BProxyRequestParser.h
index 0bf1a26..408bb5a 100644
--- a/Swiften/Parser/PayloadParsers/S5BProxyRequestParser.h
+++ b/Swiften/Parser/PayloadParsers/S5BProxyRequestParser.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#pragma once 13#pragma once
8 14
9#include <string> 15#include <string>
10 16
17#include <Swiften/Base/API.h>
11#include <Swiften/Elements/S5BProxyRequest.h> 18#include <Swiften/Elements/S5BProxyRequest.h>
12#include <Swiften/Parser/GenericPayloadParser.h> 19#include <Swiften/Parser/GenericPayloadParser.h>
13 20
14namespace Swift { 21namespace Swift {
15 22
16class S5BProxyRequestParser : public GenericPayloadParser<S5BProxyRequest> { 23class SWIFTEN_API S5BProxyRequestParser : public GenericPayloadParser<S5BProxyRequest> {
17public: 24public:
18 S5BProxyRequestParser(); 25 S5BProxyRequestParser();
19 virtual ~S5BProxyRequestParser(); 26 virtual ~S5BProxyRequestParser();
diff --git a/Swiften/Parser/PayloadParsers/SearchPayloadParser.h b/Swiften/Parser/PayloadParsers/SearchPayloadParser.h
index 75e64c7..bfcb86d 100644
--- a/Swiften/Parser/PayloadParsers/SearchPayloadParser.h
+++ b/Swiften/Parser/PayloadParsers/SearchPayloadParser.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,6 +8,7 @@
8 8
9#include <boost/optional.hpp> 9#include <boost/optional.hpp>
10 10
11#include <Swiften/Base/API.h>
11#include <Swiften/Elements/SearchPayload.h> 12#include <Swiften/Elements/SearchPayload.h>
12#include <Swiften/Parser/GenericPayloadParser.h> 13#include <Swiften/Parser/GenericPayloadParser.h>
13 14
@@ -15,7 +16,7 @@ namespace Swift {
15 class FormParserFactory; 16 class FormParserFactory;
16 class FormParser; 17 class FormParser;
17 18
18 class SearchPayloadParser : public GenericPayloadParser<SearchPayload> { 19 class SWIFTEN_API SearchPayloadParser : public GenericPayloadParser<SearchPayload> {
19 public: 20 public:
20 SearchPayloadParser(); 21 SearchPayloadParser();
21 ~SearchPayloadParser(); 22 ~SearchPayloadParser();
diff --git a/Swiften/Parser/PayloadParsers/SecurityLabelParser.h b/Swiften/Parser/PayloadParsers/SecurityLabelParser.h
index 0933fa6..857df6a 100644
--- a/Swiften/Parser/PayloadParsers/SecurityLabelParser.h
+++ b/Swiften/Parser/PayloadParsers/SecurityLabelParser.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/Elements/SecurityLabel.h> 10#include <Swiften/Elements/SecurityLabel.h>
10#include <Swiften/Parser/GenericPayloadParser.h> 11#include <Swiften/Parser/GenericPayloadParser.h>
11 12
12namespace Swift { 13namespace Swift {
13 class SerializingParser; 14 class SerializingParser;
14 15
15 class SecurityLabelParser : public GenericPayloadParser<SecurityLabel> { 16 class SWIFTEN_API SecurityLabelParser : public GenericPayloadParser<SecurityLabel> {
16 public: 17 public:
17 SecurityLabelParser(); 18 SecurityLabelParser();
18 19
diff --git a/Swiften/Parser/PayloadParsers/SecurityLabelParserFactory.h b/Swiften/Parser/PayloadParsers/SecurityLabelParserFactory.h
index fe7f889..1eabb07 100644
--- a/Swiften/Parser/PayloadParsers/SecurityLabelParserFactory.h
+++ b/Swiften/Parser/PayloadParsers/SecurityLabelParserFactory.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/Parser/GenericPayloadParserFactory.h> 10#include <Swiften/Parser/GenericPayloadParserFactory.h>
10#include <Swiften/Parser/PayloadParsers/SecurityLabelParser.h> 11#include <Swiften/Parser/PayloadParsers/SecurityLabelParser.h>
11 12
12namespace Swift { 13namespace Swift {
13 class SecurityLabelParserFactory : public GenericPayloadParserFactory<SecurityLabelParser> { 14 class SWIFTEN_API SecurityLabelParserFactory : public GenericPayloadParserFactory<SecurityLabelParser> {
14 public: 15 public:
15 SecurityLabelParserFactory() : GenericPayloadParserFactory<SecurityLabelParser>("securitylabel", "urn:xmpp:sec-label:0") {} 16 SecurityLabelParserFactory() : GenericPayloadParserFactory<SecurityLabelParser>("securitylabel", "urn:xmpp:sec-label:0") {}
16 }; 17 };
diff --git a/Swiften/Parser/PayloadParsers/SecurityLabelsCatalogParser.h b/Swiften/Parser/PayloadParsers/SecurityLabelsCatalogParser.h
index fc66379..689ebb8 100644
--- a/Swiften/Parser/PayloadParsers/SecurityLabelsCatalogParser.h
+++ b/Swiften/Parser/PayloadParsers/SecurityLabelsCatalogParser.h
@@ -1,11 +1,12 @@
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/Elements/SecurityLabelsCatalog.h> 10#include <Swiften/Elements/SecurityLabelsCatalog.h>
10#include <Swiften/Parser/GenericPayloadParser.h> 11#include <Swiften/Parser/GenericPayloadParser.h>
11 12
@@ -13,7 +14,7 @@ namespace Swift {
13 class SecurityLabelParserFactory; 14 class SecurityLabelParserFactory;
14 class SecurityLabelParser; 15 class SecurityLabelParser;
15 16
16 class SecurityLabelsCatalogParser : public GenericPayloadParser<SecurityLabelsCatalog> { 17 class SWIFTEN_API SecurityLabelsCatalogParser : public GenericPayloadParser<SecurityLabelsCatalog> {
17 public: 18 public:
18 SecurityLabelsCatalogParser(); 19 SecurityLabelsCatalogParser();
19 ~SecurityLabelsCatalogParser(); 20 ~SecurityLabelsCatalogParser();
diff --git a/Swiften/Parser/PayloadParsers/SoftwareVersionParser.h b/Swiften/Parser/PayloadParsers/SoftwareVersionParser.h
index 1f4310b..a66dd1a 100644
--- a/Swiften/Parser/PayloadParsers/SoftwareVersionParser.h
+++ b/Swiften/Parser/PayloadParsers/SoftwareVersionParser.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/Elements/SoftwareVersion.h> 10#include <Swiften/Elements/SoftwareVersion.h>
10#include <Swiften/Parser/GenericPayloadParser.h> 11#include <Swiften/Parser/GenericPayloadParser.h>
11 12
12namespace Swift { 13namespace Swift {
13 class SoftwareVersionParser : public GenericPayloadParser<SoftwareVersion> { 14 class SWIFTEN_API SoftwareVersionParser : public GenericPayloadParser<SoftwareVersion> {
14 public: 15 public:
15 SoftwareVersionParser(); 16 SoftwareVersionParser();
16 17
diff --git a/Swiften/Parser/PayloadParsers/StartSessionParser.h b/Swiften/Parser/PayloadParsers/StartSessionParser.h
index ae8a4fa..d5a9c2e 100644
--- a/Swiften/Parser/PayloadParsers/StartSessionParser.h
+++ b/Swiften/Parser/PayloadParsers/StartSessionParser.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/Elements/StartSession.h> 10#include <Swiften/Elements/StartSession.h>
10#include <Swiften/Parser/GenericPayloadParser.h> 11#include <Swiften/Parser/GenericPayloadParser.h>
11 12
12namespace Swift { 13namespace Swift {
13 class StartSessionParser : public GenericPayloadParser<StartSession> { 14 class SWIFTEN_API StartSessionParser : public GenericPayloadParser<StartSession> {
14 public: 15 public:
15 StartSessionParser() {} 16 StartSessionParser() {}
16 17
diff --git a/Swiften/Parser/PayloadParsers/StatusParser.h b/Swiften/Parser/PayloadParsers/StatusParser.h
index 4929f20..689897b 100644
--- a/Swiften/Parser/PayloadParsers/StatusParser.h
+++ b/Swiften/Parser/PayloadParsers/StatusParser.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/Elements/Status.h> 10#include <Swiften/Elements/Status.h>
10#include <Swiften/Parser/GenericPayloadParser.h> 11#include <Swiften/Parser/GenericPayloadParser.h>
11 12
12namespace Swift { 13namespace Swift {
13 class StatusParser : public GenericPayloadParser<Status> { 14 class SWIFTEN_API StatusParser : public GenericPayloadParser<Status> {
14 public: 15 public:
15 StatusParser(); 16 StatusParser();
16 17
diff --git a/Swiften/Parser/PayloadParsers/StatusShowParser.h b/Swiften/Parser/PayloadParsers/StatusShowParser.h
index f442ab7..2bdcd56 100644
--- a/Swiften/Parser/PayloadParsers/StatusShowParser.h
+++ b/Swiften/Parser/PayloadParsers/StatusShowParser.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/Elements/StatusShow.h> 10#include <Swiften/Elements/StatusShow.h>
10#include <Swiften/Parser/GenericPayloadParser.h> 11#include <Swiften/Parser/GenericPayloadParser.h>
11 12
12namespace Swift { 13namespace Swift {
13 class StatusShowParser : public GenericPayloadParser<StatusShow> { 14 class SWIFTEN_API StatusShowParser : public GenericPayloadParser<StatusShow> {
14 public: 15 public:
15 StatusShowParser(); 16 StatusShowParser();
16 17
diff --git a/Swiften/Parser/PayloadParsers/StorageParser.h b/Swiften/Parser/PayloadParsers/StorageParser.h
index 0cbf288..0fea4c9 100644
--- a/Swiften/Parser/PayloadParsers/StorageParser.h
+++ b/Swiften/Parser/PayloadParsers/StorageParser.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/optional.hpp> 9#include <boost/optional.hpp>
10 10
11#include <Swiften/Base/API.h>
11#include <Swiften/Elements/Storage.h> 12#include <Swiften/Elements/Storage.h>
12#include <Swiften/Parser/GenericPayloadParser.h> 13#include <Swiften/Parser/GenericPayloadParser.h>
13 14
14namespace Swift { 15namespace Swift {
15 class StorageParser : public GenericPayloadParser<Storage> { 16 class SWIFTEN_API StorageParser : public GenericPayloadParser<Storage> {
16 public: 17 public:
17 StorageParser(); 18 StorageParser();
18 19
diff --git a/Swiften/Parser/PayloadParsers/StreamInitiationFileInfoParser.h b/Swiften/Parser/PayloadParsers/StreamInitiationFileInfoParser.h
index 6d3591d..722797d 100644
--- a/Swiften/Parser/PayloadParsers/StreamInitiationFileInfoParser.h
+++ b/Swiften/Parser/PayloadParsers/StreamInitiationFileInfoParser.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/Elements/StreamInitiationFileInfo.h> 16#include <Swiften/Elements/StreamInitiationFileInfo.h>
10#include <Swiften/Parser/GenericPayloadParser.h> 17#include <Swiften/Parser/GenericPayloadParser.h>
11 18
12namespace Swift { 19namespace Swift {
13 20
14class StreamInitiationFileInfoParser : public GenericPayloadParser<StreamInitiationFileInfo> { 21class SWIFTEN_API StreamInitiationFileInfoParser : public GenericPayloadParser<StreamInitiationFileInfo> {
15 public: 22 public:
16 StreamInitiationFileInfoParser(); 23 StreamInitiationFileInfoParser();
17 24
diff --git a/Swiften/Parser/PayloadParsers/StreamInitiationParser.h b/Swiften/Parser/PayloadParsers/StreamInitiationParser.h
index 51adf44..66ce778 100644
--- a/Swiften/Parser/PayloadParsers/StreamInitiationParser.h
+++ b/Swiften/Parser/PayloadParsers/StreamInitiationParser.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,6 +8,7 @@
8 8
9#include <boost/optional.hpp> 9#include <boost/optional.hpp>
10 10
11#include <Swiften/Base/API.h>
11#include <Swiften/Elements/StreamInitiation.h> 12#include <Swiften/Elements/StreamInitiation.h>
12#include <Swiften/Parser/GenericPayloadParser.h> 13#include <Swiften/Parser/GenericPayloadParser.h>
13 14
@@ -15,7 +16,7 @@ namespace Swift {
15 class FormParserFactory; 16 class FormParserFactory;
16 class FormParser; 17 class FormParser;
17 18
18 class StreamInitiationParser : public GenericPayloadParser<StreamInitiation> { 19 class SWIFTEN_API StreamInitiationParser : public GenericPayloadParser<StreamInitiation> {
19 public: 20 public:
20 StreamInitiationParser(); 21 StreamInitiationParser();
21 ~StreamInitiationParser(); 22 ~StreamInitiationParser();
diff --git a/Swiften/Parser/PayloadParsers/SubjectParser.h b/Swiften/Parser/PayloadParsers/SubjectParser.h
index 8edfe40..804c50b 100644
--- a/Swiften/Parser/PayloadParsers/SubjectParser.h
+++ b/Swiften/Parser/PayloadParsers/SubjectParser.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/Elements/Subject.h> 10#include <Swiften/Elements/Subject.h>
10#include <Swiften/Parser/GenericPayloadParser.h> 11#include <Swiften/Parser/GenericPayloadParser.h>
11 12
12namespace Swift { 13namespace Swift {
13 class SubjectParser : public GenericPayloadParser<Subject> { 14 class SWIFTEN_API SubjectParser : public GenericPayloadParser<Subject> {
14 public: 15 public:
15 SubjectParser(); 16 SubjectParser();
16 17
diff --git a/Swiften/Parser/PayloadParsers/VCardUpdateParser.h b/Swiften/Parser/PayloadParsers/VCardUpdateParser.h
index 931213b..cbd08e7 100644
--- a/Swiften/Parser/PayloadParsers/VCardUpdateParser.h
+++ b/Swiften/Parser/PayloadParsers/VCardUpdateParser.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/Elements/VCardUpdate.h> 10#include <Swiften/Elements/VCardUpdate.h>
10#include <Swiften/Parser/GenericPayloadParser.h> 11#include <Swiften/Parser/GenericPayloadParser.h>
11 12
12namespace Swift { 13namespace Swift {
13 class SerializingParser; 14 class SerializingParser;
14 15
15 class VCardUpdateParser : public GenericPayloadParser<VCardUpdate> { 16 class SWIFTEN_API VCardUpdateParser : public GenericPayloadParser<VCardUpdate> {
16 public: 17 public:
17 VCardUpdateParser(); 18 VCardUpdateParser();
18 19
diff --git a/Swiften/Parser/PayloadParsers/WhiteboardParser.h b/Swiften/Parser/PayloadParsers/WhiteboardParser.h
index 0368c7c..89848b5 100644
--- a/Swiften/Parser/PayloadParsers/WhiteboardParser.h
+++ b/Swiften/Parser/PayloadParsers/WhiteboardParser.h
@@ -4,15 +4,22 @@
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/Parser/GenericPayloadParser.h> 17#include <Swiften/Parser/GenericPayloadParser.h>
11#include <Swiften/Elements/Whiteboard/WhiteboardElement.h> 18#include <Swiften/Elements/Whiteboard/WhiteboardElement.h>
12#include <Swiften/Elements/Whiteboard/WhiteboardOperation.h> 19#include <Swiften/Elements/Whiteboard/WhiteboardOperation.h>
13 20
14namespace Swift { 21namespace Swift {
15 class WhiteboardParser : public Swift::GenericPayloadParser<WhiteboardPayload> { 22 class SWIFTEN_API WhiteboardParser : public Swift::GenericPayloadParser<WhiteboardPayload> {
16 public: 23 public:
17 WhiteboardParser(); 24 WhiteboardParser();
18 25
diff --git a/Swiften/Parser/StanzaAckRequestParser.h b/Swiften/Parser/StanzaAckRequestParser.h
index 8b55704..039cf26 100644
--- a/Swiften/Parser/StanzaAckRequestParser.h
+++ b/Swiften/Parser/StanzaAckRequestParser.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/Parser/GenericElementParser.h> 10#include <Swiften/Parser/GenericElementParser.h>
10#include <Swiften/Elements/StanzaAckRequest.h> 11#include <Swiften/Elements/StanzaAckRequest.h>
11 12
12namespace Swift { 13namespace Swift {
13 class StanzaAckRequestParser : public GenericElementParser<StanzaAckRequest> { 14 class SWIFTEN_API StanzaAckRequestParser : public GenericElementParser<StanzaAckRequest> {
14 public: 15 public:
15 StanzaAckRequestParser() : GenericElementParser<StanzaAckRequest>() {} 16 StanzaAckRequestParser() : GenericElementParser<StanzaAckRequest>() {}
16 }; 17 };
diff --git a/Swiften/Parser/StartTLSFailureParser.h b/Swiften/Parser/StartTLSFailureParser.h
index 46a4966..216449c 100644
--- a/Swiften/Parser/StartTLSFailureParser.h
+++ b/Swiften/Parser/StartTLSFailureParser.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/Parser/GenericElementParser.h> 10#include <Swiften/Parser/GenericElementParser.h>
10#include <Swiften/Elements/StartTLSFailure.h> 11#include <Swiften/Elements/StartTLSFailure.h>
11 12
12namespace Swift { 13namespace Swift {
13 class StartTLSFailureParser : public GenericElementParser<StartTLSFailure> { 14 class SWIFTEN_API StartTLSFailureParser : public GenericElementParser<StartTLSFailure> {
14 public: 15 public:
15 StartTLSFailureParser() : GenericElementParser<StartTLSFailure>() {} 16 StartTLSFailureParser() : GenericElementParser<StartTLSFailure>() {}
16 }; 17 };
diff --git a/Swiften/Parser/StartTLSParser.h b/Swiften/Parser/StartTLSParser.h
index 7a84c1a..0282456 100644
--- a/Swiften/Parser/StartTLSParser.h
+++ b/Swiften/Parser/StartTLSParser.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/Parser/GenericElementParser.h> 10#include <Swiften/Parser/GenericElementParser.h>
10#include <Swiften/Elements/StartTLSRequest.h> 11#include <Swiften/Elements/StartTLSRequest.h>
11 12
12namespace Swift { 13namespace Swift {
13 class StartTLSParser : public GenericElementParser<StartTLSRequest> { 14 class SWIFTEN_API StartTLSParser : public GenericElementParser<StartTLSRequest> {
14 public: 15 public:
15 StartTLSParser() : GenericElementParser<StartTLSRequest>() {} 16 StartTLSParser() : GenericElementParser<StartTLSRequest>() {}
16 }; 17 };
diff --git a/Swiften/Parser/StreamErrorParser.h b/Swiften/Parser/StreamErrorParser.h
index f8d1159..74f9127 100644
--- a/Swiften/Parser/StreamErrorParser.h
+++ b/Swiften/Parser/StreamErrorParser.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/Elements/StreamError.h> 10#include <Swiften/Elements/StreamError.h>
10#include <Swiften/Parser/GenericElementParser.h> 11#include <Swiften/Parser/GenericElementParser.h>
11 12
12namespace Swift { 13namespace Swift {
13 class StreamErrorParser : public GenericElementParser<StreamError> { 14 class SWIFTEN_API StreamErrorParser : public GenericElementParser<StreamError> {
14 public: 15 public:
15 StreamErrorParser(); 16 StreamErrorParser();
16 17
diff --git a/Swiften/Parser/StreamManagementFailedParser.h b/Swiften/Parser/StreamManagementFailedParser.h
index 5c30184..af490b7 100644
--- a/Swiften/Parser/StreamManagementFailedParser.h
+++ b/Swiften/Parser/StreamManagementFailedParser.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/Parser/GenericElementParser.h> 10#include <Swiften/Parser/GenericElementParser.h>
10#include <Swiften/Elements/StreamManagementFailed.h> 11#include <Swiften/Elements/StreamManagementFailed.h>
11 12
12namespace Swift { 13namespace Swift {
13 class StreamManagementFailedParser : public GenericElementParser<StreamManagementFailed> { 14 class SWIFTEN_API StreamManagementFailedParser : public GenericElementParser<StreamManagementFailed> {
14 public: 15 public:
15 StreamManagementFailedParser() : GenericElementParser<StreamManagementFailed>() {} 16 StreamManagementFailedParser() : GenericElementParser<StreamManagementFailed>() {}
16 }; 17 };
diff --git a/Swiften/Parser/StreamResumeParser.h b/Swiften/Parser/StreamResumeParser.h
index 4b9b7f9..a8659c1 100644
--- a/Swiften/Parser/StreamResumeParser.h
+++ b/Swiften/Parser/StreamResumeParser.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/Parser/GenericElementParser.h> 10#include <Swiften/Parser/GenericElementParser.h>
10#include <Swiften/Elements/StreamResume.h> 11#include <Swiften/Elements/StreamResume.h>
11 12
12namespace Swift { 13namespace Swift {
13 class StreamResumeParser : public GenericElementParser<StreamResume> { 14 class SWIFTEN_API StreamResumeParser : public GenericElementParser<StreamResume> {
14 public: 15 public:
15 StreamResumeParser(); 16 StreamResumeParser();
16 ~StreamResumeParser(); 17 ~StreamResumeParser();
diff --git a/Swiften/Parser/StreamResumedParser.h b/Swiften/Parser/StreamResumedParser.h
index f4698fa..66722bf 100644
--- a/Swiften/Parser/StreamResumedParser.h
+++ b/Swiften/Parser/StreamResumedParser.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/Parser/GenericElementParser.h> 10#include <Swiften/Parser/GenericElementParser.h>
10#include <Swiften/Elements/StreamResumed.h> 11#include <Swiften/Elements/StreamResumed.h>
11 12
12namespace Swift { 13namespace Swift {
13 class StreamResumedParser : public GenericElementParser<StreamResumed> { 14 class SWIFTEN_API StreamResumedParser : public GenericElementParser<StreamResumed> {
14 public: 15 public:
15 StreamResumedParser(); 16 StreamResumedParser();
16 ~StreamResumedParser(); 17 ~StreamResumedParser();
diff --git a/Swiften/Parser/TLSProceedParser.h b/Swiften/Parser/TLSProceedParser.h
index 549d2f6..6c6464f 100644
--- a/Swiften/Parser/TLSProceedParser.h
+++ b/Swiften/Parser/TLSProceedParser.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/Parser/GenericElementParser.h> 10#include <Swiften/Parser/GenericElementParser.h>
10#include <Swiften/Elements/TLSProceed.h> 11#include <Swiften/Elements/TLSProceed.h>
11 12
12namespace Swift { 13namespace Swift {
13 class TLSProceedParser : public GenericElementParser<TLSProceed> { 14 class SWIFTEN_API TLSProceedParser : public GenericElementParser<TLSProceed> {
14 public: 15 public:
15 TLSProceedParser() : GenericElementParser<TLSProceed>() {} 16 TLSProceedParser() : GenericElementParser<TLSProceed>() {}
16 }; 17 };
diff --git a/Swiften/Parser/Tree/NullParserElement.h b/Swiften/Parser/Tree/NullParserElement.h
index d844567..60d8353 100644
--- a/Swiften/Parser/Tree/NullParserElement.h
+++ b/Swiften/Parser/Tree/NullParserElement.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 */
@@ -7,10 +7,11 @@
7#pragma once 7#pragma once
8 8
9#include <string> 9#include <string>
10#include <Swiften/Base/API.h>
10#include <Swiften/Parser/Tree/ParserElement.h> 11#include <Swiften/Parser/Tree/ParserElement.h>
11 12
12namespace Swift { 13namespace Swift {
13 class NullParserElement : public ParserElement { 14 class SWIFTEN_API NullParserElement : public ParserElement {
14 public: 15 public:
15 NullParserElement() : ParserElement("", "", AttributeMap()) {} 16 NullParserElement() : ParserElement("", "", AttributeMap()) {}
16 17
diff --git a/Swiften/Parser/Tree/TreeReparser.h b/Swiften/Parser/Tree/TreeReparser.h
index 8342000..80a326b 100644
--- a/Swiften/Parser/Tree/TreeReparser.h
+++ b/Swiften/Parser/Tree/TreeReparser.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/Parser/GenericPayloadTreeParser.h> 10#include <Swiften/Parser/GenericPayloadTreeParser.h>
10#include <Swiften/Parser/PayloadParsers/MUCItemParser.h> 11#include <Swiften/Parser/PayloadParsers/MUCItemParser.h>
11 12
12namespace Swift { 13namespace Swift {
13 class PayloadParserFactoryCollection; 14 class PayloadParserFactoryCollection;
14 class TreeReparser { 15 class SWIFTEN_API TreeReparser {
15 public: 16 public:
16 static boost::shared_ptr<Payload> parseTree(ParserElement::ref root, PayloadParserFactoryCollection* collection); 17 static boost::shared_ptr<Payload> parseTree(ParserElement::ref root, PayloadParserFactoryCollection* collection);
17 18
diff --git a/Swiften/Parser/UnknownElementParser.h b/Swiften/Parser/UnknownElementParser.h
index 89c3175..ac9cc79 100644
--- a/Swiften/Parser/UnknownElementParser.h
+++ b/Swiften/Parser/UnknownElementParser.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/Parser/GenericElementParser.h> 10#include <Swiften/Parser/GenericElementParser.h>
10#include <Swiften/Elements/UnknownElement.h> 11#include <Swiften/Elements/UnknownElement.h>
11 12
12namespace Swift { 13namespace Swift {
13 class UnknownElementParser : public GenericElementParser<UnknownElement> { 14 class SWIFTEN_API UnknownElementParser : public GenericElementParser<UnknownElement> {
14 public: 15 public:
15 UnknownElementParser() : GenericElementParser<UnknownElement>() {} 16 UnknownElementParser() : GenericElementParser<UnknownElement>() {}
16 }; 17 };
diff --git a/Swiften/Parser/UnknownPayloadParser.h b/Swiften/Parser/UnknownPayloadParser.h
index 366b16a..96e7b77 100644
--- a/Swiften/Parser/UnknownPayloadParser.h
+++ b/Swiften/Parser/UnknownPayloadParser.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,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/Parser/PayloadParser.h> 12#include <Swiften/Parser/PayloadParser.h>
12 13
13namespace Swift { 14namespace Swift {
14 class UnknownPayloadParser : public PayloadParser { 15 class SWIFTEN_API UnknownPayloadParser : public PayloadParser {
15 public: 16 public:
16 UnknownPayloadParser() {} 17 UnknownPayloadParser() {}
17 18
diff --git a/Swiften/Presence/PresenceSender.h b/Swiften/Presence/PresenceSender.h
index 72cdd0e..97725cb 100644
--- a/Swiften/Presence/PresenceSender.h
+++ b/Swiften/Presence/PresenceSender.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/Elements/Presence.h> 10#include <Swiften/Elements/Presence.h>
10 11
11namespace Swift { 12namespace Swift {
12 class PresenceSender { 13 class SWIFTEN_API PresenceSender {
13 public: 14 public:
14 virtual ~PresenceSender(); 15 virtual ~PresenceSender();
15 16
diff --git a/Swiften/Queries/GenericRequest.h b/Swiften/Queries/GenericRequest.h
index b1e7dd3..d6cca1c 100644
--- a/Swiften/Queries/GenericRequest.h
+++ b/Swiften/Queries/GenericRequest.h
@@ -1,11 +1,12 @@
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/Base/boost_bsignals.h> 10#include <Swiften/Base/boost_bsignals.h>
10#include <Swiften/Queries/Request.h> 11#include <Swiften/Queries/Request.h>
11 12
@@ -20,7 +21,7 @@ namespace Swift {
20 * To send the iq, then call send() - onResponse will be called when a reply is received. 21 * To send the iq, then call send() - onResponse will be called when a reply is received.
21 */ 22 */
22 template<typename PAYLOAD_TYPE> 23 template<typename PAYLOAD_TYPE>
23 class GenericRequest : public Request { 24 class SWIFTEN_API GenericRequest : public Request {
24 public: 25 public:
25 typedef boost::shared_ptr<GenericRequest<PAYLOAD_TYPE> > ref; 26 typedef boost::shared_ptr<GenericRequest<PAYLOAD_TYPE> > ref;
26 27
diff --git a/Swiften/Queries/PubSubRequest.h b/Swiften/Queries/PubSubRequest.h
index 24b2234..9cf4404 100644
--- a/Swiften/Queries/PubSubRequest.h
+++ b/Swiften/Queries/PubSubRequest.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2013 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 */
@@ -8,6 +8,7 @@
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/Base/boost_bsignals.h> 12#include <Swiften/Base/boost_bsignals.h>
12#include <Swiften/Queries/Request.h> 13#include <Swiften/Queries/Request.h>
13#include <Swiften/Elements/ContainerPayload.h> 14#include <Swiften/Elements/ContainerPayload.h>
@@ -47,7 +48,7 @@ namespace Swift {
47 } 48 }
48 49
49 template<typename T> 50 template<typename T>
50 class PubSubRequest : public Request { 51 class SWIFTEN_API PubSubRequest : public Request {
51 typedef typename Detail::PubSubPayloadTraits<T>::ContainerType ContainerType; 52 typedef typename Detail::PubSubPayloadTraits<T>::ContainerType ContainerType;
52 typedef typename Detail::PubSubPayloadTraits<T>::ResponseType ResponseType; 53 typedef typename Detail::PubSubPayloadTraits<T>::ResponseType ResponseType;
53 54
diff --git a/Swiften/Queries/RawRequest.h b/Swiften/Queries/RawRequest.h
index b730f4e..0d0336e 100644
--- a/Swiften/Queries/RawRequest.h
+++ b/Swiften/Queries/RawRequest.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 */
@@ -9,6 +9,7 @@
9#include <boost/smart_ptr/make_shared.hpp> 9#include <boost/smart_ptr/make_shared.hpp>
10#include <typeinfo> 10#include <typeinfo>
11 11
12#include <Swiften/Base/API.h>
12#include <Swiften/Base/boost_bsignals.h> 13#include <Swiften/Base/boost_bsignals.h>
13#include <Swiften/Queries/Request.h> 14#include <Swiften/Queries/Request.h>
14#include <Swiften/Elements/RawXMLPayload.h> 15#include <Swiften/Elements/RawXMLPayload.h>
@@ -18,7 +19,7 @@
18#include <Swiften/Serializer/PayloadSerializers/FullPayloadSerializerCollection.h> 19#include <Swiften/Serializer/PayloadSerializers/FullPayloadSerializerCollection.h>
19 20
20namespace Swift { 21namespace Swift {
21 class RawRequest : public Request { 22 class SWIFTEN_API RawRequest : public Request {
22 public: 23 public:
23 typedef boost::shared_ptr<RawRequest> ref; 24 typedef boost::shared_ptr<RawRequest> ref;
24 25
diff --git a/Swiften/Queries/Requests/GetInBandRegistrationFormRequest.h b/Swiften/Queries/Requests/GetInBandRegistrationFormRequest.h
index 109ce38..b952875 100644
--- a/Swiften/Queries/Requests/GetInBandRegistrationFormRequest.h
+++ b/Swiften/Queries/Requests/GetInBandRegistrationFormRequest.h
@@ -1,17 +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/Queries/GenericRequest.h> 10#include <Swiften/Queries/GenericRequest.h>
10#include <Swiften/Elements/InBandRegistrationPayload.h> 11#include <Swiften/Elements/InBandRegistrationPayload.h>
11 12
12
13namespace Swift { 13namespace Swift {
14 class GetInBandRegistrationFormRequest : public GenericRequest<InBandRegistrationPayload> { 14 class SWIFTEN_API GetInBandRegistrationFormRequest : public GenericRequest<InBandRegistrationPayload> {
15 public: 15 public:
16 typedef boost::shared_ptr<GetInBandRegistrationFormRequest> ref; 16 typedef boost::shared_ptr<GetInBandRegistrationFormRequest> ref;
17 17
diff --git a/Swiften/Queries/Requests/GetPrivateStorageRequest.h b/Swiften/Queries/Requests/GetPrivateStorageRequest.h
index 89499ff..97711a6 100644
--- a/Swiften/Queries/Requests/GetPrivateStorageRequest.h
+++ b/Swiften/Queries/Requests/GetPrivateStorageRequest.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 */
@@ -10,13 +10,14 @@
10#include <boost/shared_ptr.hpp> 10#include <boost/shared_ptr.hpp>
11#include <boost/smart_ptr/make_shared.hpp> 11#include <boost/smart_ptr/make_shared.hpp>
12 12
13#include <Swiften/Base/API.h>
13#include <Swiften/Queries/Request.h> 14#include <Swiften/Queries/Request.h>
14#include <Swiften/Elements/PrivateStorage.h> 15#include <Swiften/Elements/PrivateStorage.h>
15#include <Swiften/Elements/ErrorPayload.h> 16#include <Swiften/Elements/ErrorPayload.h>
16 17
17namespace Swift { 18namespace Swift {
18 template<typename PAYLOAD_TYPE> 19 template<typename PAYLOAD_TYPE>
19 class GetPrivateStorageRequest : public Request { 20 class SWIFTEN_API GetPrivateStorageRequest : public Request {
20 public: 21 public:
21 typedef boost::shared_ptr<GetPrivateStorageRequest<PAYLOAD_TYPE> > ref; 22 typedef boost::shared_ptr<GetPrivateStorageRequest<PAYLOAD_TYPE> > ref;
22 23
diff --git a/Swiften/Queries/Requests/GetSecurityLabelsCatalogRequest.h b/Swiften/Queries/Requests/GetSecurityLabelsCatalogRequest.h
index ae534b4..7a76fcc 100644
--- a/Swiften/Queries/Requests/GetSecurityLabelsCatalogRequest.h
+++ b/Swiften/Queries/Requests/GetSecurityLabelsCatalogRequest.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,12 +8,13 @@
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/Queries/GenericRequest.h> 12#include <Swiften/Queries/GenericRequest.h>
12#include <Swiften/Elements/SecurityLabelsCatalog.h> 13#include <Swiften/Elements/SecurityLabelsCatalog.h>
13 14
14 15
15namespace Swift { 16namespace Swift {
16 class GetSecurityLabelsCatalogRequest : public GenericRequest<SecurityLabelsCatalog> { 17 class SWIFTEN_API GetSecurityLabelsCatalogRequest : public GenericRequest<SecurityLabelsCatalog> {
17 public: 18 public:
18 typedef boost::shared_ptr<GetSecurityLabelsCatalogRequest> ref; 19 typedef boost::shared_ptr<GetSecurityLabelsCatalogRequest> ref;
19 20
diff --git a/Swiften/Queries/Requests/GetSoftwareVersionRequest.h b/Swiften/Queries/Requests/GetSoftwareVersionRequest.h
index 439660d..1084a0b 100644
--- a/Swiften/Queries/Requests/GetSoftwareVersionRequest.h
+++ b/Swiften/Queries/Requests/GetSoftwareVersionRequest.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/Queries/GenericRequest.h> 10#include <Swiften/Queries/GenericRequest.h>
10#include <Swiften/Elements/SoftwareVersion.h> 11#include <Swiften/Elements/SoftwareVersion.h>
11#include <boost/smart_ptr/make_shared.hpp> 12#include <boost/smart_ptr/make_shared.hpp>
12 13
13 14
14namespace Swift { 15namespace Swift {
15 class GetSoftwareVersionRequest : public GenericRequest<SoftwareVersion> { 16 class SWIFTEN_API GetSoftwareVersionRequest : public GenericRequest<SoftwareVersion> {
16 public: 17 public:
17 typedef boost::shared_ptr<GetSoftwareVersionRequest> ref; 18 typedef boost::shared_ptr<GetSoftwareVersionRequest> ref;
18 19
diff --git a/Swiften/Queries/Requests/SetPrivateStorageRequest.h b/Swiften/Queries/Requests/SetPrivateStorageRequest.h
index 140f167..9ab65f7 100644
--- a/Swiften/Queries/Requests/SetPrivateStorageRequest.h
+++ b/Swiften/Queries/Requests/SetPrivateStorageRequest.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 */
@@ -10,13 +10,14 @@
10#include <boost/shared_ptr.hpp> 10#include <boost/shared_ptr.hpp>
11#include <boost/smart_ptr/make_shared.hpp> 11#include <boost/smart_ptr/make_shared.hpp>
12 12
13#include <Swiften/Base/API.h>
13#include <Swiften/Queries/Request.h> 14#include <Swiften/Queries/Request.h>
14#include <Swiften/Elements/PrivateStorage.h> 15#include <Swiften/Elements/PrivateStorage.h>
15#include <Swiften/Elements/ErrorPayload.h> 16#include <Swiften/Elements/ErrorPayload.h>
16 17
17namespace Swift { 18namespace Swift {
18 template<typename PAYLOAD_TYPE> 19 template<typename PAYLOAD_TYPE>
19 class SetPrivateStorageRequest : public Request { 20 class SWIFTEN_API SetPrivateStorageRequest : public Request {
20 public: 21 public:
21 typedef boost::shared_ptr<SetPrivateStorageRequest<PAYLOAD_TYPE> > ref; 22 typedef boost::shared_ptr<SetPrivateStorageRequest<PAYLOAD_TYPE> > ref;
22 23
diff --git a/Swiften/Queries/Requests/SubmitInBandRegistrationFormRequest.h b/Swiften/Queries/Requests/SubmitInBandRegistrationFormRequest.h
index 82e1612..e79562a 100644
--- a/Swiften/Queries/Requests/SubmitInBandRegistrationFormRequest.h
+++ b/Swiften/Queries/Requests/SubmitInBandRegistrationFormRequest.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 */
@@ -9,12 +9,13 @@
9#include <Swiften/Base/boost_bsignals.h> 9#include <Swiften/Base/boost_bsignals.h>
10#include <boost/shared_ptr.hpp> 10#include <boost/shared_ptr.hpp>
11 11
12#include <Swiften/Base/API.h>
12#include <Swiften/Queries/Request.h> 13#include <Swiften/Queries/Request.h>
13#include <Swiften/Elements/InBandRegistrationPayload.h> 14#include <Swiften/Elements/InBandRegistrationPayload.h>
14 15
15 16
16namespace Swift { 17namespace Swift {
17 class SetInBandRegistrationRequest : public Request { 18 class SWIFTEN_API SetInBandRegistrationRequest : public Request {
18 public: 19 public:
19 typedef boost::shared_ptr<SetInBandRegistrationRequest> ref; 20 typedef boost::shared_ptr<SetInBandRegistrationRequest> ref;
20 21
diff --git a/Swiften/Queries/Responder.h b/Swiften/Queries/Responder.h
index 84d232a..8a201e6 100644
--- a/Swiften/Queries/Responder.h
+++ b/Swiften/Queries/Responder.h
@@ -6,6 +6,7 @@
6 6
7#pragma once 7#pragma once
8 8
9#include <Swiften/Base/API.h>
9#include <Swiften/Queries/IQHandler.h> 10#include <Swiften/Queries/IQHandler.h>
10#include <Swiften/Queries/IQRouter.h> 11#include <Swiften/Queries/IQRouter.h>
11#include <Swiften/Elements/ErrorPayload.h> 12#include <Swiften/Elements/ErrorPayload.h>
@@ -21,7 +22,7 @@ namespace Swift {
21 * payload type will be passed to handleGetRequest() and handleSetRequest() 22 * payload type will be passed to handleGetRequest() and handleSetRequest()
22 */ 23 */
23 template<typename PAYLOAD_TYPE> 24 template<typename PAYLOAD_TYPE>
24 class Responder : public IQHandler { 25 class SWIFTEN_API Responder : public IQHandler {
25 public: 26 public:
26 Responder(IQRouter* router) : router_(router), isFinalResonder_(true) { 27 Responder(IQRouter* router) : router_(router), isFinalResonder_(true) {
27 } 28 }
diff --git a/Swiften/Queries/SetResponder.h b/Swiften/Queries/SetResponder.h
index 0117275..5e7d42d 100644
--- a/Swiften/Queries/SetResponder.h
+++ b/Swiften/Queries/SetResponder.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/Queries/Responder.h> 10#include <Swiften/Queries/Responder.h>
10 11
11namespace Swift { 12namespace Swift {
12 template<typename T> 13 template<typename T>
13 class SetResponder : public Responder<T> { 14 class SWIFTEN_API SetResponder : public Responder<T> {
14 public: 15 public:
15 SetResponder(IQRouter* router) : Responder<T>(router) {} 16 SetResponder(IQRouter* router) : Responder<T>(router) {}
16 17
diff --git a/Swiften/Roster/GetRosterRequest.h b/Swiften/Roster/GetRosterRequest.h
index ccb7f01..56ee2bb 100644
--- a/Swiften/Roster/GetRosterRequest.h
+++ b/Swiften/Roster/GetRosterRequest.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/Queries/GenericRequest.h> 10#include <Swiften/Queries/GenericRequest.h>
10#include <Swiften/Elements/RosterPayload.h> 11#include <Swiften/Elements/RosterPayload.h>
11 12
12 13
13namespace Swift { 14namespace Swift {
14 class GetRosterRequest : public GenericRequest<RosterPayload> { 15 class SWIFTEN_API GetRosterRequest : public GenericRequest<RosterPayload> {
15 public: 16 public:
16 typedef boost::shared_ptr<GetRosterRequest> ref; 17 typedef boost::shared_ptr<GetRosterRequest> ref;
17 18
diff --git a/Swiften/Roster/RosterPushResponder.h b/Swiften/Roster/RosterPushResponder.h
index be2ed51..a54438b 100644
--- a/Swiften/Roster/RosterPushResponder.h
+++ b/Swiften/Roster/RosterPushResponder.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 */
@@ -7,12 +7,12 @@
7#pragma once 7#pragma once
8 8
9#include <Swiften/Base/boost_bsignals.h> 9#include <Swiften/Base/boost_bsignals.h>
10 10#include <Swiften/Base/API.h>
11#include <Swiften/Queries/SetResponder.h> 11#include <Swiften/Queries/SetResponder.h>
12#include <Swiften/Elements/RosterPayload.h> 12#include <Swiften/Elements/RosterPayload.h>
13 13
14namespace Swift { 14namespace Swift {
15 class RosterPushResponder : public SetResponder<RosterPayload> { 15 class SWIFTEN_API RosterPushResponder : public SetResponder<RosterPayload> {
16 public: 16 public:
17 RosterPushResponder(IQRouter* router) : SetResponder<RosterPayload>(router) {} 17 RosterPushResponder(IQRouter* router) : SetResponder<RosterPayload>(router) {}
18 18
diff --git a/Swiften/Roster/SetRosterRequest.h b/Swiften/Roster/SetRosterRequest.h
index f2e5e76..95a9f65 100644
--- a/Swiften/Roster/SetRosterRequest.h
+++ b/Swiften/Roster/SetRosterRequest.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 */
@@ -9,12 +9,13 @@
9#include <Swiften/Base/boost_bsignals.h> 9#include <Swiften/Base/boost_bsignals.h>
10#include <boost/shared_ptr.hpp> 10#include <boost/shared_ptr.hpp>
11 11
12#include <Swiften/Base/API.h>
12#include <Swiften/Queries/Request.h> 13#include <Swiften/Queries/Request.h>
13#include <Swiften/Elements/RosterPayload.h> 14#include <Swiften/Elements/RosterPayload.h>
14 15
15 16
16namespace Swift { 17namespace Swift {
17 class SetRosterRequest : public Request { 18 class SWIFTEN_API SetRosterRequest : public Request {
18 public: 19 public:
19 typedef boost::shared_ptr<SetRosterRequest> ref; 20 typedef boost::shared_ptr<SetRosterRequest> ref;
20 21
diff --git a/Swiften/Roster/XMPPRoster.h b/Swiften/Roster/XMPPRoster.h
index 2d3effa..d454516 100644
--- a/Swiften/Roster/XMPPRoster.h
+++ b/Swiften/Roster/XMPPRoster.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 */
@@ -12,6 +12,7 @@
12#include <Swiften/Base/boost_bsignals.h> 12#include <Swiften/Base/boost_bsignals.h>
13 13
14#include <string> 14#include <string>
15#include <Swiften/Base/API.h>
15#include <Swiften/JID/JID.h> 16#include <Swiften/JID/JID.h>
16#include <Swiften/Elements/RosterItemPayload.h> 17#include <Swiften/Elements/RosterItemPayload.h>
17#include <Swiften/Roster/XMPPRosterItem.h> 18#include <Swiften/Roster/XMPPRosterItem.h>
@@ -23,7 +24,7 @@ namespace Swift {
23 * Changes to the roster (either due to subscription requests or by going online/offline) are 24 * Changes to the roster (either due to subscription requests or by going online/offline) are
24 * emitted through signals. 25 * emitted through signals.
25 */ 26 */
26 class XMPPRoster { 27 class SWIFTEN_API XMPPRoster {
27 public: 28 public:
28 XMPPRoster(); 29 XMPPRoster();
29 virtual ~XMPPRoster(); 30 virtual ~XMPPRoster();
diff --git a/Swiften/Roster/XMPPRosterItem.h b/Swiften/Roster/XMPPRosterItem.h
index 3a9c691..3ea11ce 100644
--- a/Swiften/Roster/XMPPRosterItem.h
+++ b/Swiften/Roster/XMPPRosterItem.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 9
10#include <vector> 10#include <vector>
11
12#include <string> 11#include <string>
12
13#include <Swiften/Base/API.h>
13#include <Swiften/JID/JID.h> 14#include <Swiften/JID/JID.h>
14#include <Swiften/Elements/RosterItemPayload.h> 15#include <Swiften/Elements/RosterItemPayload.h>
15 16
16namespace Swift { 17namespace Swift {
17 class XMPPRosterItem { 18 class SWIFTEN_API XMPPRosterItem {
18 public: 19 public:
19 XMPPRosterItem(const JID& jid, const std::string& name, const std::vector<std::string>& groups, RosterItemPayload::Subscription subscription) : jid(jid), name(name), groups(groups), subscription(subscription) { 20 XMPPRosterItem(const JID& jid, const std::string& name, const std::vector<std::string>& groups, RosterItemPayload::Subscription subscription) : jid(jid), name(name), groups(groups), subscription(subscription) {
20 } 21 }
diff --git a/Swiften/SASL/EXTERNALClientAuthenticator.h b/Swiften/SASL/EXTERNALClientAuthenticator.h
index 67b0bf9..2b87ec3 100644
--- a/Swiften/SASL/EXTERNALClientAuthenticator.h
+++ b/Swiften/SASL/EXTERNALClientAuthenticator.h
@@ -1,16 +1,17 @@
1/* 1/*
2 * Copyright (c) 2012 Isode Limited. 2 * Copyright (c) 2012-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/SASL/ClientAuthenticator.h> 10#include <Swiften/SASL/ClientAuthenticator.h>
10#include <Swiften/Base/ByteArray.h> 11#include <Swiften/Base/ByteArray.h>
11 12
12namespace Swift { 13namespace Swift {
13 class EXTERNALClientAuthenticator : public ClientAuthenticator { 14 class SWIFTEN_API EXTERNALClientAuthenticator : public ClientAuthenticator {
14 public: 15 public:
15 EXTERNALClientAuthenticator(); 16 EXTERNALClientAuthenticator();
16 17
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
15namespace Swift { 16namespace 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
14namespace Swift { 15namespace 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
15namespace Swift { 16namespace 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
13namespace Swift { 14namespace 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
15namespace Swift { 16namespace 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
13namespace Swift { 14namespace 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
13namespace Swift { 14namespace 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
11namespace Swift { 12namespace 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
15namespace Swift { 16namespace 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 @@
14namespace Swift { 15namespace 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
15namespace Swift { 16namespace 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
13namespace Swift { 14namespace 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
12namespace Swift { 13namespace 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
12namespace Swift { 13namespace 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
12namespace Swift { 13namespace 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
12namespace Swift { 13namespace 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
12namespace Swift { 13namespace 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
12namespace Swift { 13namespace 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
13namespace Swift { 20namespace 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
13namespace Swift { 20namespace 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
15namespace Swift { 20namespace 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
14namespace Swift { 15namespace 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
12namespace Swift { 13namespace 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
12namespace Swift { 13namespace 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
12namespace Swift { 13namespace 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
12namespace Swift { 13namespace 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
12namespace Swift { 13namespace 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
12namespace Swift { 13namespace 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
14namespace Swift { 15namespace 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
12namespace Swift { 13namespace 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
12namespace Swift { 13namespace 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
19namespace Swift { 20namespace 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 @@
22namespace Swift { 23namespace 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
14namespace Swift { 15namespace 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
16namespace Swift { 17namespace 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
12namespace Swift { 13namespace 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
12namespace Swift { 13namespace 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
13namespace Swift { 14namespace 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
20namespace Swift { 27namespace 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
14namespace Swift { 15namespace 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
15namespace Swift { 16namespace 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
16namespace Swift { 17namespace 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
15namespace Swift { 16namespace 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
15namespace Swift { 16namespace 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
12namespace Swift { 13namespace 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
14namespace Swift { 15namespace 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
15namespace Swift { 16namespace 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
14namespace Swift { 15namespace 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
14namespace Swift { 15namespace 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
15namespace Swift { 16namespace 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
11namespace Swift { 12namespace 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
12namespace Swift { 13namespace 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
diff --git a/Swiften/Session/BOSHSessionStream.h b/Swiften/Session/BOSHSessionStream.h
index c796905..e97436c 100644
--- a/Swiften/Session/BOSHSessionStream.h
+++ b/Swiften/Session/BOSHSessionStream.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,6 +8,7 @@
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/Base/SafeString.h> 12#include <Swiften/Base/SafeString.h>
12#include <Swiften/Base/SafeByteArray.h> 13#include <Swiften/Base/SafeByteArray.h>
13#include <Swiften/Network/BOSHConnectionPool.h> 14#include <Swiften/Network/BOSHConnectionPool.h>
@@ -27,7 +28,7 @@ namespace Swift {
27 class TLSContextFactory; 28 class TLSContextFactory;
28 class EventLoop; 29 class EventLoop;
29 30
30 class BOSHSessionStream : public SessionStream, public EventOwner, public boost::enable_shared_from_this<BOSHSessionStream> { 31 class SWIFTEN_API BOSHSessionStream : public SessionStream, public EventOwner, public boost::enable_shared_from_this<BOSHSessionStream> {
31 public: 32 public:
32 BOSHSessionStream( 33 BOSHSessionStream(
33 const URL& boshURL, 34 const URL& boshURL,
diff --git a/Swiften/Session/BasicSessionStream.h b/Swiften/Session/BasicSessionStream.h
index a3b703c..7832e42 100644
--- a/Swiften/Session/BasicSessionStream.h
+++ b/Swiften/Session/BasicSessionStream.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,6 +8,7 @@
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/Base/SafeByteArray.h> 12#include <Swiften/Base/SafeByteArray.h>
12#include <Swiften/Network/Connection.h> 13#include <Swiften/Network/Connection.h>
13#include <Swiften/Session/SessionStream.h> 14#include <Swiften/Session/SessionStream.h>
@@ -27,7 +28,7 @@ namespace Swift {
27 class CompressionLayer; 28 class CompressionLayer;
28 class XMLParserFactory; 29 class XMLParserFactory;
29 30
30 class BasicSessionStream : public SessionStream { 31 class SWIFTEN_API BasicSessionStream : public SessionStream {
31 public: 32 public:
32 BasicSessionStream( 33 BasicSessionStream(
33 StreamType streamType, 34 StreamType streamType,
diff --git a/Swiften/Session/SessionStream.h b/Swiften/Session/SessionStream.h
index 7f611ea..8513c1a 100644
--- a/Swiften/Session/SessionStream.h
+++ b/Swiften/Session/SessionStream.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 */
@@ -22,7 +22,7 @@
22namespace Swift { 22namespace Swift {
23 class SWIFTEN_API SessionStream { 23 class SWIFTEN_API SessionStream {
24 public: 24 public:
25 class SessionStreamError : public Swift::Error { 25 class SWIFTEN_API SessionStreamError : public Swift::Error {
26 public: 26 public:
27 enum Type { 27 enum Type {
28 ParseError, 28 ParseError,
diff --git a/Swiften/Session/SessionTracer.h b/Swiften/Session/SessionTracer.h
index af34319..4900fd6 100644
--- a/Swiften/Session/SessionTracer.h
+++ b/Swiften/Session/SessionTracer.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 <string> 9#include <string>
10 10
11#include <Swiften/Base/API.h>
11#include <Swiften/Session/Session.h> 12#include <Swiften/Session/Session.h>
12#include <Swiften/Base/SafeByteArray.h> 13#include <Swiften/Base/SafeByteArray.h>
13 14
14namespace Swift { 15namespace Swift {
15 class SessionTracer { 16 class SWIFTEN_API SessionTracer {
16 public: 17 public:
17 SessionTracer(boost::shared_ptr<Session> session); 18 SessionTracer(boost::shared_ptr<Session> session);
18 19
diff --git a/Swiften/StreamStack/CompressionLayer.h b/Swiften/StreamStack/CompressionLayer.h
index 4f0812b..db43b60 100644
--- a/Swiften/StreamStack/CompressionLayer.h
+++ b/Swiften/StreamStack/CompressionLayer.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 */
@@ -9,6 +9,7 @@
9#include <boost/noncopyable.hpp> 9#include <boost/noncopyable.hpp>
10#include <Swiften/Base/boost_bsignals.h> 10#include <Swiften/Base/boost_bsignals.h>
11 11
12#include <Swiften/Base/API.h>
12#include <Swiften/Base/SafeByteArray.h> 13#include <Swiften/Base/SafeByteArray.h>
13#include <Swiften/StreamStack/StreamLayer.h> 14#include <Swiften/StreamStack/StreamLayer.h>
14#include <Swiften/Compress/ZLibException.h> 15#include <Swiften/Compress/ZLibException.h>
@@ -19,7 +20,7 @@ namespace Swift {
19 class ZLibCompressor; 20 class ZLibCompressor;
20 class ZLibDecompressor; 21 class ZLibDecompressor;
21 22
22 class CompressionLayer : public StreamLayer, boost::noncopyable { 23 class SWIFTEN_API CompressionLayer : public StreamLayer, boost::noncopyable {
23 public: 24 public:
24 CompressionLayer() {} 25 CompressionLayer() {}
25 26
diff --git a/Swiften/StreamStack/ConnectionLayer.h b/Swiften/StreamStack/ConnectionLayer.h
index b850016..2ff1c3c 100644
--- a/Swiften/StreamStack/ConnectionLayer.h
+++ b/Swiften/StreamStack/ConnectionLayer.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/shared_ptr.hpp> 9#include <boost/shared_ptr.hpp>
10 10
11#include <Swiften/Base/API.h>
11#include <Swiften/StreamStack/LowLayer.h> 12#include <Swiften/StreamStack/LowLayer.h>
12#include <Swiften/Network/Connection.h> 13#include <Swiften/Network/Connection.h>
13 14
14namespace Swift { 15namespace Swift {
15 class ConnectionLayer : public LowLayer { 16 class SWIFTEN_API ConnectionLayer : public LowLayer {
16 public: 17 public:
17 ConnectionLayer(boost::shared_ptr<Connection> connection); 18 ConnectionLayer(boost::shared_ptr<Connection> connection);
18 ~ConnectionLayer(); 19 ~ConnectionLayer();
diff --git a/Swiften/StreamStack/StreamLayer.h b/Swiften/StreamStack/StreamLayer.h
index d3f7388..b860c93 100644
--- a/Swiften/StreamStack/StreamLayer.h
+++ b/Swiften/StreamStack/StreamLayer.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/StreamStack/LowLayer.h> 10#include <Swiften/StreamStack/LowLayer.h>
10#include <Swiften/StreamStack/HighLayer.h> 11#include <Swiften/StreamStack/HighLayer.h>
11 12
12namespace Swift { 13namespace Swift {
13 class StreamLayer : public LowLayer, public HighLayer { 14 class SWIFTEN_API StreamLayer : public LowLayer, public HighLayer {
14 public: 15 public:
15 StreamLayer() {} 16 StreamLayer() {}
16 }; 17 };
diff --git a/Swiften/StreamStack/TLSLayer.h b/Swiften/StreamStack/TLSLayer.h
index 748b6ac..089512d 100644
--- a/Swiften/StreamStack/TLSLayer.h
+++ b/Swiften/StreamStack/TLSLayer.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,6 +8,7 @@
8 8
9#include <Swiften/Base/boost_bsignals.h> 9#include <Swiften/Base/boost_bsignals.h>
10 10
11#include <Swiften/Base/API.h>
11#include <Swiften/Base/SafeByteArray.h> 12#include <Swiften/Base/SafeByteArray.h>
12#include <Swiften/StreamStack/StreamLayer.h> 13#include <Swiften/StreamStack/StreamLayer.h>
13#include <Swiften/TLS/Certificate.h> 14#include <Swiften/TLS/Certificate.h>
@@ -19,7 +20,7 @@ namespace Swift {
19 class TLSContext; 20 class TLSContext;
20 class TLSContextFactory; 21 class TLSContextFactory;
21 22
22 class TLSLayer : public StreamLayer { 23 class SWIFTEN_API TLSLayer : public StreamLayer {
23 public: 24 public:
24 TLSLayer(TLSContextFactory*); 25 TLSLayer(TLSContextFactory*);
25 ~TLSLayer(); 26 ~TLSLayer();
diff --git a/Swiften/StreamStack/WhitespacePingLayer.h b/Swiften/StreamStack/WhitespacePingLayer.h
index 18d13d1..17b0654 100644
--- a/Swiften/StreamStack/WhitespacePingLayer.h
+++ b/Swiften/StreamStack/WhitespacePingLayer.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 */
@@ -9,13 +9,14 @@
9#include <boost/noncopyable.hpp> 9#include <boost/noncopyable.hpp>
10#include <boost/shared_ptr.hpp> 10#include <boost/shared_ptr.hpp>
11 11
12#include <Swiften/Base/API.h>
12#include <Swiften/StreamStack/StreamLayer.h> 13#include <Swiften/StreamStack/StreamLayer.h>
13 14
14namespace Swift { 15namespace Swift {
15 class Timer; 16 class Timer;
16 class TimerFactory; 17 class TimerFactory;
17 18
18 class WhitespacePingLayer : public StreamLayer, boost::noncopyable { 19 class SWIFTEN_API WhitespacePingLayer : public StreamLayer, boost::noncopyable {
19 public: 20 public:
20 WhitespacePingLayer(TimerFactory* timerFactory); 21 WhitespacePingLayer(TimerFactory* timerFactory);
21 22
diff --git a/Swiften/StringCodecs/PBKDF2.h b/Swiften/StringCodecs/PBKDF2.h
index c02c0da..dddad6f 100644
--- a/Swiften/StringCodecs/PBKDF2.h
+++ b/Swiften/StringCodecs/PBKDF2.h
@@ -1,17 +1,18 @@
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 */
6 6
7#pragma once 7#pragma once
8 8
9#include <Swiften/Base/API.h>
9#include <Swiften/Base/SafeByteArray.h> 10#include <Swiften/Base/SafeByteArray.h>
10#include <Swiften/Base/Concat.h> 11#include <Swiften/Base/Concat.h>
11#include <Swiften/Crypto/CryptoProvider.h> 12#include <Swiften/Crypto/CryptoProvider.h>
12 13
13namespace Swift { 14namespace Swift {
14 class PBKDF2 { 15 class SWIFTEN_API PBKDF2 {
15 public: 16 public:
16 static ByteArray encode(const SafeByteArray& password, const ByteArray& salt, int iterations, CryptoProvider* crypto) { 17 static ByteArray encode(const SafeByteArray& password, const ByteArray& salt, int iterations, CryptoProvider* crypto) {
17 ByteArray u = crypto->getHMACSHA1(password, concat(salt, createByteArray("\0\0\0\1", 4))); 18 ByteArray u = crypto->getHMACSHA1(password, concat(salt, createByteArray("\0\0\0\1", 4)));
diff --git a/Swiften/TLS/BlindCertificateTrustChecker.h b/Swiften/TLS/BlindCertificateTrustChecker.h
index 2c1f6a6..b21f7a6 100644
--- a/Swiften/TLS/BlindCertificateTrustChecker.h
+++ b/Swiften/TLS/BlindCertificateTrustChecker.h
@@ -1,11 +1,12 @@
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/TLS/CertificateTrustChecker.h> 10#include <Swiften/TLS/CertificateTrustChecker.h>
10 11
11namespace Swift { 12namespace Swift {
@@ -17,7 +18,7 @@ namespace Swift {
17 * 18 *
18 * \see Client::setAlwaysTrustCertificates() 19 * \see Client::setAlwaysTrustCertificates()
19 */ 20 */
20 class BlindCertificateTrustChecker : public CertificateTrustChecker { 21 class SWIFTEN_API BlindCertificateTrustChecker : public CertificateTrustChecker {
21 public: 22 public:
22 virtual bool isCertificateTrusted(const std::vector<Certificate::ref>&) { 23 virtual bool isCertificateTrusted(const std::vector<Certificate::ref>&) {
23 return true; 24 return true;
diff --git a/Swiften/TLS/CertificateFactory.h b/Swiften/TLS/CertificateFactory.h
index efd3733..28d39bb 100644
--- a/Swiften/TLS/CertificateFactory.h
+++ b/Swiften/TLS/CertificateFactory.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/TLS/Certificate.h> 10#include <Swiften/TLS/Certificate.h>
10 11
11namespace Swift { 12namespace Swift {
12 class CertificateFactory { 13 class SWIFTEN_API CertificateFactory {
13 public: 14 public:
14 virtual ~CertificateFactory(); 15 virtual ~CertificateFactory();
15 16
diff --git a/Swiften/TLS/CertificateVerificationError.h b/Swiften/TLS/CertificateVerificationError.h
index c940818..f1596dc 100644
--- a/Swiften/TLS/CertificateVerificationError.h
+++ b/Swiften/TLS/CertificateVerificationError.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2010-2012 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 */
@@ -7,10 +7,11 @@
7#pragma once 7#pragma once
8 8
9#include <boost/shared_ptr.hpp> 9#include <boost/shared_ptr.hpp>
10#include <Swiften/Base/API.h>
10#include <Swiften/Base/Error.h> 11#include <Swiften/Base/Error.h>
11 12
12namespace Swift { 13namespace Swift {
13 class CertificateVerificationError : public Error { 14 class SWIFTEN_API CertificateVerificationError : public Error {
14 public: 15 public:
15 typedef boost::shared_ptr<CertificateVerificationError> ref; 16 typedef boost::shared_ptr<CertificateVerificationError> ref;
16 17
diff --git a/Swiften/TLS/CertificateWithKey.h b/Swiften/TLS/CertificateWithKey.h
index 2cec1fc..687118a 100644
--- a/Swiften/TLS/CertificateWithKey.h
+++ b/Swiften/TLS/CertificateWithKey.h
@@ -1,15 +1,16 @@
1/* 1/*
2 * Copyright (c) 2010-2012 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/Base/SafeByteArray.h> 10#include <Swiften/Base/SafeByteArray.h>
10 11
11namespace Swift { 12namespace Swift {
12 class CertificateWithKey { 13 class SWIFTEN_API CertificateWithKey {
13 public: 14 public:
14 typedef boost::shared_ptr<CertificateWithKey> ref; 15 typedef boost::shared_ptr<CertificateWithKey> ref;
15 CertificateWithKey() {} 16 CertificateWithKey() {}
diff --git a/Swiften/TLS/PKCS12Certificate.h b/Swiften/TLS/PKCS12Certificate.h
index d699ccd..0fd3f56 100644
--- a/Swiften/TLS/PKCS12Certificate.h
+++ b/Swiften/TLS/PKCS12Certificate.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/Base/SafeByteArray.h> 10#include <Swiften/Base/SafeByteArray.h>
10#include <Swiften/TLS/CertificateWithKey.h> 11#include <Swiften/TLS/CertificateWithKey.h>
11#include <boost/filesystem/path.hpp> 12#include <boost/filesystem/path.hpp>
12 13
13namespace Swift { 14namespace Swift {
14 class PKCS12Certificate : public Swift::CertificateWithKey { 15 class SWIFTEN_API PKCS12Certificate : public Swift::CertificateWithKey {
15 public: 16 public:
16 PKCS12Certificate() {} 17 PKCS12Certificate() {}
17 18
diff --git a/Swiften/TLS/SimpleCertificate.h b/Swiften/TLS/SimpleCertificate.h
index da94bf7..88688c0 100644
--- a/Swiften/TLS/SimpleCertificate.h
+++ b/Swiften/TLS/SimpleCertificate.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 */
@@ -7,10 +7,11 @@
7#pragma once 7#pragma once
8 8
9#include <string> 9#include <string>
10#include <Swiften/Base/API.h>
10#include <Swiften/TLS/Certificate.h> 11#include <Swiften/TLS/Certificate.h>
11 12
12namespace Swift { 13namespace Swift {
13 class SimpleCertificate : public Certificate { 14 class SWIFTEN_API SimpleCertificate : public Certificate {
14 public: 15 public:
15 typedef boost::shared_ptr<SimpleCertificate> ref; 16 typedef boost::shared_ptr<SimpleCertificate> ref;
16 17
diff --git a/Swiften/TLS/TLSContext.h b/Swiften/TLS/TLSContext.h
index f5d0515..c5703e7 100644
--- a/Swiften/TLS/TLSContext.h
+++ b/Swiften/TLS/TLSContext.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 */
@@ -9,6 +9,7 @@
9#include <Swiften/Base/boost_bsignals.h> 9#include <Swiften/Base/boost_bsignals.h>
10#include <boost/shared_ptr.hpp> 10#include <boost/shared_ptr.hpp>
11 11
12#include <Swiften/Base/API.h>
12#include <Swiften/Base/SafeByteArray.h> 13#include <Swiften/Base/SafeByteArray.h>
13#include <Swiften/TLS/Certificate.h> 14#include <Swiften/TLS/Certificate.h>
14#include <Swiften/TLS/CertificateWithKey.h> 15#include <Swiften/TLS/CertificateWithKey.h>
@@ -17,7 +18,7 @@
17 18
18namespace Swift { 19namespace Swift {
19 20
20 class TLSContext { 21 class SWIFTEN_API TLSContext {
21 public: 22 public:
22 virtual ~TLSContext(); 23 virtual ~TLSContext();
23 24
diff --git a/Swiften/TLS/TLSContextFactory.h b/Swiften/TLS/TLSContextFactory.h
index 79e2b05..10c5577 100644
--- a/Swiften/TLS/TLSContextFactory.h
+++ b/Swiften/TLS/TLSContextFactory.h
@@ -1,15 +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>
10
9namespace Swift { 11namespace Swift {
10 class TLSContext; 12 class TLSContext;
11 13
12 class TLSContextFactory { 14 class SWIFTEN_API TLSContextFactory {
13 public: 15 public:
14 virtual ~TLSContextFactory(); 16 virtual ~TLSContextFactory();
15 17
diff --git a/Swiften/TLS/TLSError.h b/Swiften/TLS/TLSError.h
index 2589a2a..27e4b03 100644
--- a/Swiften/TLS/TLSError.h
+++ b/Swiften/TLS/TLSError.h
@@ -1,16 +1,17 @@
1/* 1/*
2 * Copyright (c) 2012 Isode Limited. 2 * Copyright (c) 2012-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 <boost/shared_ptr.hpp> 10#include <boost/shared_ptr.hpp>
10#include <Swiften/Base/Error.h> 11#include <Swiften/Base/Error.h>
11 12
12namespace Swift { 13namespace Swift {
13 class TLSError : public Error { 14 class SWIFTEN_API TLSError : public Error {
14 public: 15 public:
15 typedef boost::shared_ptr<TLSError> ref; 16 typedef boost::shared_ptr<TLSError> ref;
16 17
diff --git a/Swiften/VCards/GetVCardRequest.h b/Swiften/VCards/GetVCardRequest.h
index e9a28e8..47c302d 100644
--- a/Swiften/VCards/GetVCardRequest.h
+++ b/Swiften/VCards/GetVCardRequest.h
@@ -1,17 +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/Queries/GenericRequest.h> 10#include <Swiften/Queries/GenericRequest.h>
10#include <Swiften/Elements/VCard.h> 11#include <Swiften/Elements/VCard.h>
11 12
12
13namespace Swift { 13namespace Swift {
14 class GetVCardRequest : public GenericRequest<VCard> { 14 class SWIFTEN_API GetVCardRequest : public GenericRequest<VCard> {
15 public: 15 public:
16 typedef boost::shared_ptr<GetVCardRequest> ref; 16 typedef boost::shared_ptr<GetVCardRequest> ref;
17 17
diff --git a/Swiften/VCards/SetVCardRequest.h b/Swiften/VCards/SetVCardRequest.h
index 2728cde..d59c3bc 100644
--- a/Swiften/VCards/SetVCardRequest.h
+++ b/Swiften/VCards/SetVCardRequest.h
@@ -1,17 +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/Queries/GenericRequest.h> 10#include <Swiften/Queries/GenericRequest.h>
10#include <Swiften/Elements/VCard.h> 11#include <Swiften/Elements/VCard.h>
11 12
12
13namespace Swift { 13namespace Swift {
14 class SetVCardRequest : public GenericRequest<VCard> { 14 class SWIFTEN_API SetVCardRequest : public GenericRequest<VCard> {
15 public: 15 public:
16 typedef boost::shared_ptr<SetVCardRequest> ref; 16 typedef boost::shared_ptr<SetVCardRequest> ref;
17 17
diff --git a/Swiften/VCards/VCardMemoryStorage.h b/Swiften/VCards/VCardMemoryStorage.h
index 3758b89..989d46e 100644
--- a/Swiften/VCards/VCardMemoryStorage.h
+++ b/Swiften/VCards/VCardMemoryStorage.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 */
@@ -10,11 +10,12 @@
10 10
11#include <map> 11#include <map>
12 12
13#include <Swiften/Base/API.h>
13#include <Swiften/JID/JID.h> 14#include <Swiften/JID/JID.h>
14#include <Swiften/VCards/VCardStorage.h> 15#include <Swiften/VCards/VCardStorage.h>
15 16
16namespace Swift { 17namespace Swift {
17 class VCardMemoryStorage : public VCardStorage { 18 class SWIFTEN_API VCardMemoryStorage : public VCardStorage {
18 public: 19 public:
19 VCardMemoryStorage(CryptoProvider* crypto) : VCardStorage(crypto) {} 20 VCardMemoryStorage(CryptoProvider* crypto) : VCardStorage(crypto) {}
20 21
diff --git a/Swiften/Whiteboard/WhiteboardResponder.h b/Swiften/Whiteboard/WhiteboardResponder.h
index c05be23..23c6341 100644
--- a/Swiften/Whiteboard/WhiteboardResponder.h
+++ b/Swiften/Whiteboard/WhiteboardResponder.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/Queries/SetResponder.h> 16#include <Swiften/Queries/SetResponder.h>
10#include <Swiften/Elements/WhiteboardPayload.h> 17#include <Swiften/Elements/WhiteboardPayload.h>
11 18
@@ -13,7 +20,7 @@ namespace Swift {
13 class IQRouter; 20 class IQRouter;
14 class WhiteboardSessionManager; 21 class WhiteboardSessionManager;
15 22
16 class WhiteboardResponder : public SetResponder<WhiteboardPayload> { 23 class SWIFTEN_API WhiteboardResponder : public SetResponder<WhiteboardPayload> {
17 public: 24 public:
18 WhiteboardResponder(WhiteboardSessionManager* sessionManager, IQRouter* router); 25 WhiteboardResponder(WhiteboardSessionManager* sessionManager, IQRouter* router);
19 bool handleSetRequest(const JID& from, const JID& /*to*/, const std::string& id, boost::shared_ptr<WhiteboardPayload> payload); 26 bool handleSetRequest(const JID& from, const JID& /*to*/, const std::string& id, boost::shared_ptr<WhiteboardPayload> payload);