diff options
Diffstat (limited to 'Swiften/Elements')
84 files changed, 313 insertions, 163 deletions
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,21 +1,22 @@ /* - * Copyright (c) 2010-2014 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <boost/optional.hpp> #include <vector> +#include <Swiften/Base/API.h> #include <Swiften/Elements/ToplevelElement.h> namespace Swift { - class AuthChallenge : public ToplevelElement { + class SWIFTEN_API AuthChallenge : public ToplevelElement { public: AuthChallenge() { } AuthChallenge(const std::vector<unsigned char>& value) : value(value) { } 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,20 +1,21 @@ /* - * Copyright (c) 2010-2014 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <boost/shared_ptr.hpp> +#include <Swiften/Base/API.h> #include <Swiften/Elements/ToplevelElement.h> namespace Swift { - class AuthFailure : public ToplevelElement { + class SWIFTEN_API AuthFailure : public ToplevelElement { public: typedef boost::shared_ptr<AuthFailure> ref; AuthFailure() {} }; } 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,23 +1,24 @@ /* - * Copyright (c) 2010-2014 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <vector> #include <string> #include <boost/optional.hpp> +#include <Swiften/Base/API.h> #include <Swiften/Elements/ToplevelElement.h> #include <Swiften/Base/SafeByteArray.h> namespace Swift { - class AuthRequest : public ToplevelElement { + class SWIFTEN_API AuthRequest : public ToplevelElement { public: AuthRequest(const std::string& mechanism = "") : mechanism_(mechanism) { } AuthRequest(const std::string& mechanism, const SafeByteArray& message) : mechanism_(mechanism), message_(message) { 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,22 +1,23 @@ /* - * Copyright (c) 2010-2014 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <vector> #include <boost/optional.hpp> +#include <Swiften/Base/API.h> #include <Swiften/Elements/ToplevelElement.h> #include <Swiften/Base/SafeByteArray.h> namespace Swift { - class AuthResponse : public ToplevelElement { + class SWIFTEN_API AuthResponse : public ToplevelElement { public: AuthResponse() { } AuthResponse(const SafeByteArray& value) : value(value) { } 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,21 +1,22 @@ /* - * Copyright (c) 2010-2014 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <vector> #include <boost/optional.hpp> +#include <Swiften/Base/API.h> #include <Swiften/Elements/ToplevelElement.h> namespace Swift { - class AuthSuccess : public ToplevelElement { + class SWIFTEN_API AuthSuccess : public ToplevelElement { public: AuthSuccess() {} const boost::optional<std::vector<unsigned char> >& getValue() const { return value; } 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,21 +1,22 @@ /* - * Copyright (c) 2011 Isode Limited. + * Copyright (c) 2011-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <vector> +#include <Swiften/Base/API.h> #include <Swiften/JID/JID.h> #include <Swiften/Elements/Payload.h> namespace Swift { - class BlockListPayload : public Payload { + class SWIFTEN_API BlockListPayload : public Payload { public: BlockListPayload(const std::vector<JID>& items = std::vector<JID>()) : items(items) { } void addItem(const JID& item) { items.push_back(item); 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,21 +1,22 @@ /* - * Copyright (c) 2011 Isode Limited. + * Copyright (c) 2011-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <vector> +#include <Swiften/Base/API.h> #include <Swiften/JID/JID.h> #include <Swiften/Elements/Payload.h> namespace Swift { - class BlockPayload : public Payload { + class SWIFTEN_API BlockPayload : public Payload { public: BlockPayload(const std::vector<JID>& jids = std::vector<JID>()) : items(jids) { } void addItem(const JID& jid) { items.push_back(jid); 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,20 +1,21 @@ /* - * Copyright (c) 2010 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <string> +#include <Swiften/Base/API.h> #include <Swiften/Elements/Payload.h> namespace Swift { - class Body : public Payload { + class SWIFTEN_API Body : public Payload { public: Body(const std::string& text = "") : text_(text) { } void setText(const std::string& text) { text_ = text; 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,24 +1,25 @@ /* - * Copyright (c) 2010 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <vector> #include <boost/optional.hpp> #include <boost/shared_ptr.hpp> #include <string> +#include <Swiften/Base/API.h> #include <Swiften/JID/JID.h> #include <Swiften/Elements/Payload.h> namespace Swift { - class Bytestreams : public Payload { + class SWIFTEN_API Bytestreams : public Payload { public: typedef boost::shared_ptr<Bytestreams> ref; struct StreamHost { StreamHost(const std::string& host = "", const JID& jid = JID(), int port = -1) : host(host), jid(jid), port(port) {} 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,21 +1,22 @@ /* - * Copyright (c) 2010 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <boost/shared_ptr.hpp> #include <string> +#include <Swiften/Base/API.h> #include <Swiften/Elements/Payload.h> namespace Swift { - class CapsInfo : public Payload { + class SWIFTEN_API CapsInfo : public Payload { public: typedef boost::shared_ptr<CapsInfo> ref; CapsInfo(const std::string& node = "", const std::string& version = "", const std::string& hash = "sha-1") : node_(node), version_(version), hash_(hash) {} bool operator==(const CapsInfo& o) const { 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,20 +1,21 @@ /* - * Copyright (c) 2010 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <string> +#include <Swiften/Base/API.h> #include <Swiften/Elements/Payload.h> namespace Swift { - class ChatState : public Payload { + class SWIFTEN_API ChatState : public Payload { public: enum ChatStateType {Active, Composing, Paused, Inactive, Gone}; ChatState(ChatStateType state = Active) { state_ = state; } 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,25 +1,26 @@ /* - * Copyright (c) 2010 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <boost/shared_ptr.hpp> #include <string> +#include <Swiften/Base/API.h> #include <Swiften/Elements/Payload.h> #include <Swiften/Elements/Form.h> namespace Swift { /** * Ad-Hoc Command (XEP-0050). */ - class Command : public Payload { + class SWIFTEN_API Command : public Payload { public: typedef boost::shared_ptr<Command> ref; enum Status {Executing, Completed, Canceled, NoStatus}; enum Action {Cancel, Execute, Complete, Prev, Next, NoAction}; 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,21 +1,22 @@ /* - * Copyright (c) 2010-2014 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <boost/shared_ptr.hpp> #include <string> +#include <Swiften/Base/API.h> #include <Swiften/Elements/ToplevelElement.h> namespace Swift { - class ComponentHandshake : public ToplevelElement { + class SWIFTEN_API ComponentHandshake : public ToplevelElement { public: typedef boost::shared_ptr<ComponentHandshake> ref; ComponentHandshake(const std::string& data = "") : data(data) { } 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,17 +1,17 @@ /* - * Copyright (c) 2010-2014 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once - +#include <Swiften/Base/API.h> #include <Swiften/Elements/ToplevelElement.h> namespace Swift { - class CompressFailure : public ToplevelElement { + class SWIFTEN_API CompressFailure : public ToplevelElement { public: CompressFailure() {} }; } 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,18 +1,19 @@ /* - * Copyright (c) 2010-2014 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once +#include <Swiften/Base/API.h> #include <Swiften/Elements/ToplevelElement.h> namespace Swift { - class CompressRequest : public ToplevelElement + class SWIFTEN_API CompressRequest : public ToplevelElement { public: CompressRequest(const std::string& method = "") : method_(method) {} const std::string& getMethod() const { return 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,16 +1,17 @@ /* - * Copyright (c) 2010-2014 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once +#include <Swiften/Base/API.h> #include <Swiften/Elements/ToplevelElement.h> namespace Swift { - class Compressed : public ToplevelElement { + class SWIFTEN_API Compressed : public ToplevelElement { public: Compressed() {} }; } 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,22 +1,23 @@ /* - * Copyright (c) 2010 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <boost/date_time/posix_time/posix_time_types.hpp> #include <boost/optional.hpp> +#include <Swiften/Base/API.h> #include <Swiften/Elements/Payload.h> #include <Swiften/JID/JID.h> namespace Swift { - class Delay : public Payload { + class SWIFTEN_API Delay : public Payload { public: Delay() {} Delay(const boost::posix_time::ptime& time, const JID& from = JID()) : time_(time), from_(from) {} const boost::posix_time::ptime& getStamp() const {return time_;} void setStamp(const boost::posix_time::ptime& time) {time_ = time;} 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 @@ -1,23 +1,28 @@ /* * Copyright (c) 2011 Tobias Markmann * Licensed under the BSD license. * See http://www.opensource.org/licenses/bsd-license.php for more information. */ -#pragma once +/* + * Copyright (c) 2015 Isode Limited. + * All rights reserved. + * See the COPYING file for more information. + */ -#include <string> +#pragma once #include <string> +#include <Swiften/Base/API.h> #include <Swiften/Elements/Payload.h> namespace Swift { -class DeliveryReceipt : public Payload { +class SWIFTEN_API DeliveryReceipt : public Payload { public: typedef boost::shared_ptr<DeliveryReceipt> ref; public: DeliveryReceipt() {} 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 @@ -1,19 +1,26 @@ /* * Copyright (c) 2011 Tobias Markmann * Licensed under the BSD license. * See http://www.opensource.org/licenses/bsd-license.php for more information. */ +/* + * Copyright (c) 2015 Isode Limited. + * All rights reserved. + * See the COPYING file for more information. + */ + #pragma once +#include <Swiften/Base/API.h> #include <Swiften/Elements/Payload.h> namespace Swift { -class DeliveryReceiptRequest : public Payload { +class SWIFTEN_API DeliveryReceiptRequest : public Payload { public: typedef boost::shared_ptr<DeliveryReceiptRequest> ref; public: DeliveryReceiptRequest() {} }; 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,25 +1,26 @@ /* - * Copyright (c) 2010 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <vector> #include <string> +#include <Swiften/Base/API.h> #include <Swiften/Elements/Payload.h> #include <Swiften/JID/JID.h> namespace Swift { /** * Service discovery disco#items from XEP-0030. */ - class DiscoItems : public Payload { + class SWIFTEN_API DiscoItems : public Payload { public: /** * A single result item. */ class Item { public: 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,17 +1,17 @@ /* - * Copyright (c) 2010-2014 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <Swiften/Elements/ToplevelElement.h> - +#include <Swiften/Base/API.h> namespace Swift { - class EnableStreamManagement : public ToplevelElement { + class SWIFTEN_API EnableStreamManagement : public ToplevelElement { public: EnableStreamManagement() {} }; } 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,21 +1,22 @@ /* - * Copyright (c) 2010 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <boost/shared_ptr.hpp> #include <string> +#include <Swiften/Base/API.h> #include <Swiften/Elements/Payload.h> namespace Swift { - class ErrorPayload : public Payload { + class SWIFTEN_API ErrorPayload : public Payload { public: typedef boost::shared_ptr<ErrorPayload> ref; enum Type { Cancel, Continue, Modify, Auth, Wait }; enum Condition { 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,22 +1,23 @@ /* - * Copyright (c) 2010-2013 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <vector> #include <boost/shared_ptr.hpp> #include <string> +#include <Swiften/Base/API.h> #include <Swiften/JID/JID.h> namespace Swift { - class FormField { + class SWIFTEN_API FormField { public: typedef boost::shared_ptr<FormField> ref; enum Type { UnknownType, BooleanType, 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,23 +1,24 @@ /* - * Copyright (c) 2014 Isode Limited. + * Copyright (c) 2014-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <string> +#include <Swiften/Base/API.h> #include <Swiften/Base/ByteArray.h> namespace Swift { /* * @brief This class represents a XEP-0300 <hash/> element. */ - class HashElement { + class SWIFTEN_API HashElement { public: HashElement(const std::string& algorithm, const ByteArray& hash) : algorithm_(algorithm), hash_(hash) { } void setHashValue(const std::string& algorithm, const ByteArray& hash) { algorithm_ = algorithm; 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,23 +1,24 @@ /* - * Copyright (c) 2010 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <string> #include <vector> #include <boost/shared_ptr.hpp> #include <boost/smart_ptr/make_shared.hpp> +#include <Swiften/Base/API.h> #include <Swiften/Elements/Payload.h> namespace Swift { - class IBB : public Payload { + class SWIFTEN_API IBB : public Payload { public: typedef boost::shared_ptr<IBB> ref; enum Action { Open, Close, 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 @@ -1,22 +1,29 @@ /* * Copyright (c) 2013 Tobias Markmann * Licensed under the simplified BSD license. * See Documentation/Licenses/BSD-simplified.txt for more information. */ +/* + * Copyright (c) 2015 Isode Limited. + * All rights reserved. + * See the COPYING file for more information. + */ + #pragma once #include <boost/shared_ptr.hpp> #include <boost/date_time/posix_time/posix_time_types.hpp> +#include <Swiften/Base/API.h> #include <Swiften/Elements/Payload.h> namespace Swift { - class Idle : public Payload { + class SWIFTEN_API Idle : public Payload { public: typedef boost::shared_ptr<Idle> ref; public: Idle() {} Idle(boost::posix_time::ptime since) : since_(since) { 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,23 +1,24 @@ /* - * Copyright (c) 2010 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <boost/shared_ptr.hpp> #include <boost/optional.hpp> #include <string> +#include <Swiften/Base/API.h> #include <Swiften/Elements/Payload.h> #include <Swiften/Elements/Form.h> namespace Swift { - class InBandRegistrationPayload : public Payload { + class SWIFTEN_API InBandRegistrationPayload : public Payload { public: typedef boost::shared_ptr<InBandRegistrationPayload> ref; InBandRegistrationPayload() : registered(false), remove(false) {} Form::ref getForm() const { return form; } 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,25 +1,26 @@ /* - * Copyright (c) 2011 Isode Limited. + * Copyright (c) 2011-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <vector> #include <boost/optional.hpp> #include <string> +#include <Swiften/Base/API.h> #include <Swiften/JID/JID.h> #include <Swiften/Elements/Payload.h> #include <Swiften/Elements/JingleDescription.h> #include <Swiften/Elements/JingleTransportPayload.h> namespace Swift { - class JingleContentPayload : public Payload { + class SWIFTEN_API JingleContentPayload : public Payload { public: typedef boost::shared_ptr<JingleContentPayload> ref; enum Creator { UnknownCreator, InitiatorCreator, 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,18 +1,19 @@ /* - * Copyright (c) 2011 Isode Limited. + * Copyright (c) 2011-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <boost/shared_ptr.hpp> +#include <Swiften/Base/API.h> #include <Swiften/Elements/Payload.h> namespace Swift { - class JingleDescription : public Payload { + class SWIFTEN_API JingleDescription : public Payload { public: typedef boost::shared_ptr<JingleDescription> ref; }; } 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,22 +1,23 @@ /* - * Copyright (c) 2011-2014 Isode Limited. + * Copyright (c) 2011-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <boost/shared_ptr.hpp> #include <vector> +#include <Swiften/Base/API.h> #include <Swiften/Elements/JingleDescription.h> #include <Swiften/Elements/JingleFileTransferFileInfo.h> namespace Swift { - class JingleFileTransferDescription : public JingleDescription { + class SWIFTEN_API JingleFileTransferDescription : public JingleDescription { public: typedef boost::shared_ptr<JingleFileTransferDescription> ref; void setFileInfo(const JingleFileTransferFileInfo& fileInfo) { fileInfo_ = fileInfo; } 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,8 +1,8 @@ /* - * Copyright (c) 2014 Isode Limited. + * Copyright (c) 2014-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once @@ -11,21 +11,22 @@ #include <map> #include <boost/optional.hpp> #include <boost/shared_ptr.hpp> #include <boost/date_time/posix_time/posix_time_types.hpp> +#include <Swiften/Base/API.h> #include <Swiften/Elements/HashElement.h> #include <Swiften/Elements/Payload.h> namespace Swift { /** * @brief This class represents the file info used in XEP-0234. */ - class JingleFileTransferFileInfo : public Payload { + class SWIFTEN_API JingleFileTransferFileInfo : public Payload { typedef boost::shared_ptr<JingleFileTransferFileInfo> ref; public: JingleFileTransferFileInfo(const std::string& name = "", const std::string& description = "", unsigned long long size = 0, const boost::posix_time::ptime &date = boost::posix_time::ptime()) : name_(name), description_(description), size_(size), date_(date), supportsRangeRequests_(false), rangeOffset_(0) { } 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 @@ -2,29 +2,30 @@ * Copyright (c) 2011 Tobias Markmann * Licensed under the simplified BSD license. * See Documentation/Licenses/BSD-simplified.txt for more information. */ /* - * Copyright (c) 2014 Isode Limited. + * Copyright (c) 2014-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <boost/shared_ptr.hpp> #include <map> #include <string> +#include <Swiften/Base/API.h> #include <Swiften/Elements/JingleDescription.h> #include <Swiften/Elements/JingleFileTransferFileInfo.h> namespace Swift { -class JingleFileTransferHash : public Payload { +class SWIFTEN_API JingleFileTransferHash : public Payload { public: typedef boost::shared_ptr<JingleFileTransferHash> ref; void setFileInfo(const JingleFileTransferFileInfo& fileInfo) { fileInfo_ = fileInfo; } 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,22 +1,23 @@ /* - * Copyright (c) 2011-2014 Isode Limited. + * Copyright (c) 2011-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <boost/shared_ptr.hpp> #include <boost/optional.hpp> #include <string> +#include <Swiften/Base/API.h> #include <Swiften/Elements/JingleTransportPayload.h> namespace Swift { - class JingleIBBTransportPayload : public JingleTransportPayload { + class SWIFTEN_API JingleIBBTransportPayload : public JingleTransportPayload { public: typedef boost::shared_ptr<JingleIBBTransportPayload> ref; enum StanzaType { IQStanza, MessageStanza 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,8 +1,8 @@ /* - * Copyright (c) 2011-2014 Isode Limited. + * Copyright (c) 2011-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once @@ -14,13 +14,13 @@ #include <Swiften/Base/API.h> #include <Swiften/JID/JID.h> #include <Swiften/Elements/Payload.h> #include <Swiften/Elements/JingleContentPayload.h> namespace Swift { - class JinglePayload : public Payload { + class SWIFTEN_API JinglePayload : public Payload { public: typedef boost::shared_ptr<JinglePayload> ref; struct Reason : public Payload { enum Type { UnknownType, AlternativeSession, 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 @@ -7,19 +7,20 @@ #pragma once #include <vector> #include <boost/shared_ptr.hpp> +#include <Swiften/Base/API.h> #include <Swiften/Elements/JingleTransportPayload.h> #include <Swiften/Elements/Bytestreams.h> #include <Swiften/Network/HostAddressPort.h> namespace Swift { - class JingleS5BTransportPayload : public JingleTransportPayload { + class SWIFTEN_API JingleS5BTransportPayload : public JingleTransportPayload { public: enum Mode { TCPMode, // default case UDPMode }; 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,20 +1,21 @@ /* - * Copyright (c) 2011 Isode Limited. + * Copyright (c) 2011-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <boost/shared_ptr.hpp> +#include <Swiften/Base/API.h> #include <Swiften/Elements/Payload.h> namespace Swift { - class JingleTransportPayload : public Payload { + class SWIFTEN_API JingleTransportPayload : public Payload { public: void setSessionID(const std::string& id) { sessionID = id; } const std::string& getSessionID() const { 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,18 +1,19 @@ /* - * Copyright (c) 2011 Isode Limited. + * Copyright (c) 2011-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once +#include <Swiften/Base/API.h> #include <Swiften/Elements/Payload.h> namespace Swift { - class Last : public Payload { + class SWIFTEN_API Last : public Payload { public: Last(int seconds = 0) : seconds_(seconds) {} int getSeconds() const {return seconds_;} void setSeconds(int seconds) {seconds_ = seconds;} 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,26 +1,27 @@ /* - * Copyright (c) 2010 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <boost/optional.hpp> #include <boost/shared_ptr.hpp> #include <string> #include <vector> +#include <Swiften/Base/API.h> #include <Swiften/JID/JID.h> #include <Swiften/Elements/Payload.h> #include <Swiften/Elements/MUCOccupant.h> #include <Swiften/Elements/MUCItem.h> namespace Swift { - class MUCAdminPayload : public Payload { + class SWIFTEN_API MUCAdminPayload : public Payload { public: typedef boost::shared_ptr<MUCAdminPayload> ref; MUCAdminPayload() { } 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,21 +1,22 @@ /* - * Copyright (c) 2011 Isode Limited. + * Copyright (c) 2011-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <string> +#include <Swiften/Base/API.h> #include <Swiften/Elements/Payload.h> #include <Swiften/JID/JID.h> namespace Swift { - class MUCDestroyPayload : public Payload { + class SWIFTEN_API MUCDestroyPayload : public Payload { public: typedef boost::shared_ptr<MUCDestroyPayload> ref; MUCDestroyPayload() { } 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,21 +1,22 @@ /* - * Copyright (c) 2011 Isode Limited. + * Copyright (c) 2011-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <string> +#include <Swiften/Base/API.h> #include <Swiften/Elements/Payload.h> #include <Swiften/JID/JID.h> namespace Swift { - class MUCInvitationPayload : public Payload { + class SWIFTEN_API MUCInvitationPayload : public Payload { public: typedef boost::shared_ptr<MUCInvitationPayload> ref; MUCInvitationPayload() : continuation_(false), impromptu_(false) { } void setIsContinuation(bool b) { 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,21 +1,22 @@ /* - * Copyright (c) 2010 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <boost/optional.hpp> +#include <Swiften/Base/API.h> #include <Swiften/Elements/Payload.h> #include <Swiften/Elements/Form.h> namespace Swift { - class MUCOwnerPayload : public Payload { + class SWIFTEN_API MUCOwnerPayload : public Payload { public: typedef boost::shared_ptr<MUCOwnerPayload> ref; MUCOwnerPayload() { } 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,23 +1,24 @@ /* - * Copyright (c) 2010 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <boost/optional.hpp> #include <boost/date_time/posix_time/posix_time_types.hpp> +#include <Swiften/Base/API.h> #include <Swiften/JID/JID.h> #include <string> #include <Swiften/Elements/Payload.h> namespace Swift { - class MUCPayload : public Payload { + class SWIFTEN_API MUCPayload : public Payload { public: typedef boost::shared_ptr<MUCPayload> ref; MUCPayload() { maxChars_ = -1; maxStanzas_ = -1; 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,26 +1,27 @@ /* - * Copyright (c) 2010 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <boost/optional.hpp> #include <boost/shared_ptr.hpp> #include <string> #include <vector> +#include <Swiften/Base/API.h> #include <Swiften/JID/JID.h> #include <Swiften/Elements/Payload.h> #include <Swiften/Elements/MUCOccupant.h> #include <Swiften/Elements/MUCItem.h> namespace Swift { - class MUCUserPayload : public Payload { + class SWIFTEN_API MUCUserPayload : public Payload { public: typedef boost::shared_ptr<MUCUserPayload> ref; struct StatusCode { StatusCode() : code(0) {} StatusCode(int code) : code(code) {} 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,27 +1,28 @@ /* - * Copyright (c) 2010 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <boost/optional.hpp> #include <boost/shared_ptr.hpp> #include <boost/smart_ptr/make_shared.hpp> #include <string> +#include <Swiften/Base/API.h> #include <Swiften/Elements/Body.h> #include <Swiften/Elements/Subject.h> #include <Swiften/Elements/ErrorPayload.h> #include <Swiften/Elements/Stanza.h> #include <Swiften/Elements/Replace.h> namespace Swift { - class Message : public Stanza { + class SWIFTEN_API Message : public Stanza { public: typedef boost::shared_ptr<Message> ref; enum Type { Normal, Chat, Error, Groupchat, Headline }; Message() : type_(Chat) { } 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,19 +1,20 @@ /* - * Copyright (c) 2010 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once +#include <Swiften/Base/API.h> #include <Swiften/Elements/Payload.h> #include <string> namespace Swift { - class Nickname : public Payload { + class SWIFTEN_API Nickname : public Payload { public: Nickname(const std::string& nickname = "") : nickname(nickname) { } void setNickname(const std::string& nickname) { this->nickname = nickname; 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,18 +1,19 @@ /* - * Copyright (c) 2010 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once +#include <Swiften/Base/API.h> #include <Swiften/Elements/Payload.h> namespace Swift { - class Priority : public Payload { + class SWIFTEN_API Priority : public Payload { public: Priority(int priority = 0) : priority_(priority) { } void setPriority(int priority) { priority_ = priority; 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,20 +1,21 @@ /* - * Copyright (c) 2010 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <boost/shared_ptr.hpp> +#include <Swiften/Base/API.h> #include <Swiften/Elements/Payload.h> namespace Swift { - class PrivateStorage : public Payload { + class SWIFTEN_API PrivateStorage : public Payload { public: PrivateStorage(boost::shared_ptr<Payload> payload = boost::shared_ptr<Payload>()) : payload(payload) { } boost::shared_ptr<Payload> getPayload() const { return payload; 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,18 +1,20 @@ /* - * Copyright (c) 2010 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <string> +#include <Swiften/Base/API.h> + namespace Swift { - class ProtocolHeader { + class SWIFTEN_API ProtocolHeader { public: ProtocolHeader() : version("1.0") {} const std::string& getTo() const { return to; } void setTo(const std::string& a) { to = a; 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,20 +1,21 @@ /* - * Copyright (c) 2011 Isode Limited. + * Copyright (c) 2011-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <string> +#include <Swiften/Base/API.h> #include <Swiften/Elements/Payload.h> namespace Swift { - class RawXMLPayload : public Payload { + class SWIFTEN_API RawXMLPayload : public Payload { public: RawXMLPayload(const std::string& data = "") : rawXML_(data) {} void setRawXML(const std::string& data) { rawXML_ = data; } 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 @@ -1,21 +1,28 @@ /* * Copyright (c) 2011 Vlad Voicu * Licensed under the Simplified BSD license. * See Documentation/Licenses/BSD-simplified.txt for more information. */ +/* + * Copyright (c) 2015 Isode Limited. + * All rights reserved. + * See the COPYING file for more information. + */ + #pragma once #include <boost/shared_ptr.hpp> #include <string> +#include <Swiften/Base/API.h> #include <Swiften/Elements/Payload.h> namespace Swift { - class Replace : public Payload { + class SWIFTEN_API Replace : public Payload { public: typedef boost::shared_ptr<Replace> ref; Replace(const std::string& id = std::string()) : replaceID_(id) {} const std::string& getID() const { return replaceID_; } 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,20 +1,22 @@ /* - * Copyright (c) 2010 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <string> + +#include <Swiften/Base/API.h> #include <Swiften/Elements/Payload.h> #include <Swiften/JID/JID.h> namespace Swift { - class ResourceBind : public Payload { + class SWIFTEN_API ResourceBind : public Payload { public: ResourceBind() {} void setJID(const JID& jid) { jid_ = jid; } 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,21 +1,22 @@ /* - * Copyright (c) 2010 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <vector> #include <string> +#include <Swiften/Base/API.h> #include <Swiften/JID/JID.h> namespace Swift { - class RosterItemPayload { + class SWIFTEN_API RosterItemPayload { public: enum Subscription { None, To, From, Both, Remove }; RosterItemPayload() : subscription_(None), ask_(false) {} RosterItemPayload(const JID& jid, const std::string& name, Subscription subscription, const std::vector<std::string>& groups = std::vector<std::string>()) : jid_(jid), name_(name), subscription_(subscription), groups_(groups), ask_(false) { } 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 @@ -13,19 +13,20 @@ #pragma once #include <string> #include <boost/optional.hpp> +#include <Swiften/Base/API.h> #include <Swiften/Elements/Payload.h> #include <Swiften/JID/JID.h> #include <Swiften/Network/HostAddressPort.h> namespace Swift { -class S5BProxyRequest : public Payload { +class SWIFTEN_API S5BProxyRequest : public Payload { public: typedef boost::shared_ptr<S5BProxyRequest> ref; public: struct StreamHost { std::string host; 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,26 +1,27 @@ /* - * Copyright (c) 2010 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <boost/shared_ptr.hpp> #include <boost/optional.hpp> +#include <Swiften/Base/API.h> #include <Swiften/Elements/Payload.h> #include <Swiften/Elements/Form.h> #include <string> namespace Swift { /** * XEP-0055 search payload. */ - class SearchPayload : public Payload { + class SWIFTEN_API SearchPayload : public Payload { public: typedef boost::shared_ptr<SearchPayload> ref; struct Item { std::string first; std::string last; 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,20 +1,21 @@ /* - * Copyright (c) 2010-2014 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <boost/shared_ptr.hpp> +#include <Swiften/Base/API.h> #include <Swiften/Elements/ToplevelElement.h> namespace Swift { - class StanzaAck : public ToplevelElement { + class SWIFTEN_API StanzaAck : public ToplevelElement { public: typedef boost::shared_ptr<StanzaAck> ref; StanzaAck() : valid(false), handledStanzasCount(0) {} StanzaAck(unsigned int handledStanzasCount) : valid(true), handledStanzasCount(handledStanzasCount) {} virtual ~StanzaAck(); 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 @@ /* - * Copyright (c) 2010-2014 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once +#include <Swiften/Base/API.h> #include <Swiften/Elements/ToplevelElement.h> - namespace Swift { - class StanzaAckRequest : public ToplevelElement { + class SWIFTEN_API StanzaAckRequest : public ToplevelElement { }; } 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,17 +1,18 @@ /* - * Copyright (c) 2010 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <string> +#include <Swiften/Base/API.h> #include <Swiften/Elements/Payload.h> namespace Swift { - class StartSession : public Payload { + class SWIFTEN_API StartSession : public Payload { public: StartSession() {} }; } 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,16 +1,17 @@ /* - * Copyright (c) 2010-2014 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once +#include <Swiften/Base/API.h> #include <Swiften/Elements/ToplevelElement.h> namespace Swift { - class StartTLSFailure : public ToplevelElement { + class SWIFTEN_API StartTLSFailure : public ToplevelElement { public: StartTLSFailure() {} }; } 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,16 +1,17 @@ /* - * Copyright (c) 2010-2014 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once +#include <Swiften/Base/API.h> #include <Swiften/Elements/ToplevelElement.h> namespace Swift { - class StartTLSRequest : public ToplevelElement { + class SWIFTEN_API StartTLSRequest : public ToplevelElement { public: StartTLSRequest() {} }; } 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,19 +1,20 @@ /* - * Copyright (c) 2010 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once +#include <Swiften/Base/API.h> #include <Swiften/Elements/Payload.h> #include <string> namespace Swift { - class Status : public Payload { + class SWIFTEN_API Status : public Payload { public: Status(const std::string& text = "") : text_(text) { } void setText(const std::string& text) { text_ = text; 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,25 +1,26 @@ /* - * Copyright (c) 2010 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <vector> #include <boost/optional.hpp> #include <Swiften/Elements/Payload.h> #include <string> +#include <Swiften/Base/API.h> #include <Swiften/JID/JID.h> #include <Swiften/Base/SafeString.h> namespace Swift { - class Storage : public Payload { + class SWIFTEN_API Storage : public Payload { public: struct Room { Room() : autoJoin(false) {} std::string name; JID jid; 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,21 +1,22 @@ /* - * Copyright (c) 2010-2014 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <boost/shared_ptr.hpp> +#include <Swiften/Base/API.h> #include <Swiften/Elements/ToplevelElement.h> #include <string> namespace Swift { - class StreamError : public ToplevelElement { + class SWIFTEN_API StreamError : public ToplevelElement { public: typedef boost::shared_ptr<StreamError> ref; enum Type { BadFormat, BadNamespacePrefix, 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,24 +1,25 @@ /* - * Copyright (c) 2010 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <vector> #include <boost/optional.hpp> #include <boost/shared_ptr.hpp> #include <string> +#include <Swiften/Base/API.h> #include <Swiften/Elements/Payload.h> #include <Swiften/Elements/StreamInitiationFileInfo.h> namespace Swift { - class StreamInitiation : public Payload { + class SWIFTEN_API StreamInitiation : public Payload { public: typedef boost::shared_ptr<StreamInitiation> ref; StreamInitiation() : isFileTransfer(true) {} const std::string& getID() const { 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,23 +1,24 @@ /* - * Copyright (c) 2011-2013 Isode Limited. + * Copyright (c) 2011-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once +#include <Swiften/Base/API.h> #include <Swiften/Elements/Payload.h> #include <boost/shared_ptr.hpp> #include <boost/date_time/posix_time/posix_time_types.hpp> #include <string> namespace Swift { -class StreamInitiationFileInfo : public Payload { +class SWIFTEN_API StreamInitiationFileInfo : public Payload { public: typedef boost::shared_ptr<StreamInitiationFileInfo> ref; public: StreamInitiationFileInfo(const std::string& name = "", const std::string& description = "", unsigned long long size = 0, const std::string& hash = "", const boost::posix_time::ptime &date = boost::posix_time::ptime(), const std::string& algo="md5") : 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,17 +1,17 @@ /* - * Copyright (c) 2010-2014 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once +#include <Swiften/Base/API.h> #include <Swiften/Elements/ToplevelElement.h> - namespace Swift { - class StreamManagementFailed : public ToplevelElement { + class SWIFTEN_API StreamManagementFailed : public ToplevelElement { public: StreamManagementFailed() {} }; } 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,21 +1,22 @@ /* - * Copyright (c) 2011-2014 Isode Limited. + * Copyright (c) 2011-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <string> #include <boost/optional.hpp> +#include <Swiften/Base/API.h> #include <Swiften/Elements/ToplevelElement.h> namespace Swift { - class StreamResume : public ToplevelElement { + class SWIFTEN_API StreamResume : public ToplevelElement { public: StreamResume(); ~StreamResume(); void setResumeID(const std::string& id) { resumeID = id; 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,21 +1,22 @@ /* - * Copyright (c) 2011-2014 Isode Limited. + * Copyright (c) 2011-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <string> #include <boost/optional.hpp> +#include <Swiften/Base/API.h> #include <Swiften/Elements/ToplevelElement.h> namespace Swift { - class StreamResumed : public ToplevelElement { + class SWIFTEN_API StreamResumed : public ToplevelElement { public: StreamResumed(); ~StreamResumed(); void setResumeID(const std::string& id) { resumeID = id; 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,19 +1,20 @@ /* - * Copyright (c) 2010 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once +#include <Swiften/Base/API.h> #include <Swiften/Elements/Payload.h> #include <string> namespace Swift { - class Subject : public Payload { + class SWIFTEN_API Subject : public Payload { public: Subject(const std::string& text = "") : text_(text) { } void setText(const std::string& text) { text_ = text; 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,16 +1,17 @@ /* - * Copyright (c) 2010-2014 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once +#include <Swiften/Base/API.h> #include <Swiften/Elements/ToplevelElement.h> namespace Swift { - class TLSProceed : public ToplevelElement { + class SWIFTEN_API TLSProceed : public ToplevelElement { public: TLSProceed() {} }; } 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,21 +1,22 @@ /* - * Copyright (c) 2011 Isode Limited. + * Copyright (c) 2011-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <vector> +#include <Swiften/Base/API.h> #include <Swiften/JID/JID.h> #include <Swiften/Elements/Payload.h> namespace Swift { - class UnblockPayload : public Payload { + class SWIFTEN_API UnblockPayload : public Payload { public: UnblockPayload(const std::vector<JID>& jids = std::vector<JID>()) : items(jids) { } void addItem(const JID& item) { items.push_back(item); 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,16 +1,17 @@ /* - * Copyright (c) 2010-2014 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once +#include <Swiften/Base/API.h> #include <Swiften/Elements/ToplevelElement.h> namespace Swift { - class UnknownElement : public ToplevelElement { + class SWIFTEN_API UnknownElement : public ToplevelElement { public: UnknownElement() {} }; } 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,24 +1,25 @@ /* - * Copyright (c) 2010 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <boost/shared_ptr.hpp> #include <boost/date_time/posix_time/ptime.hpp> #include <string> +#include <Swiften/Base/API.h> #include <Swiften/JID/JID.h> #include <Swiften/Base/ByteArray.h> #include <Swiften/Elements/Payload.h> namespace Swift { - class VCard : public Payload { + class SWIFTEN_API VCard : public Payload { public: typedef boost::shared_ptr<VCard> ref; struct EMailAddress { EMailAddress() : isHome(false), isWork(false), isInternet(false), isPreferred(false), isX400(false) { } 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,19 +1,21 @@ /* - * Copyright (c) 2010 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <string> + +#include <Swiften/Base/API.h> #include <Swiften/Elements/Payload.h> namespace Swift { - class VCardUpdate : public Payload { + class SWIFTEN_API VCardUpdate : public Payload { public: VCardUpdate(const std::string& photoHash = "") : photoHash_(photoHash) {} void setPhotoHash(const std::string& photoHash) { photoHash_ = photoHash; } const std::string& getPhotoHash() const { return photoHash_; } 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,19 +1,21 @@ /* - * Copyright (c) 2010 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <string> + +#include <Swiften/Base/API.h> #include <Swiften/Elements/Payload.h> namespace Swift { - class Version : public Payload { + class SWIFTEN_API Version : public Payload { public: Version(const std::string& name = "", const std::string& version = "", const std::string& os = "") : name_(name), version_(version), os_(os) { } const std::string& getName() const { return name_; } const std::string& getVersion() const { return version_; } const std::string& getOS() const { return os_; } 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 @@ -1,20 +1,26 @@ /* * Copyright (c) 2012 Mateusz Piękos * Licensed under the simplified BSD license. * See Documentation/Licenses/BSD-simplified.txt for more information. */ +/* + * Copyright (c) 2015 Isode Limited. + * All rights reserved. + * See the COPYING file for more information. + */ + #pragma once +#include <Swiften/Base/API.h> #include <Swiften/Elements/Whiteboard/WhiteboardOperation.h> - #include <Swiften/Elements/Whiteboard/WhiteboardElement.h> namespace Swift { - class WhiteboardDeleteOperation : public WhiteboardOperation { + class SWIFTEN_API WhiteboardDeleteOperation : public WhiteboardOperation { public: typedef boost::shared_ptr<WhiteboardDeleteOperation> ref; public: std::string getElementID() const { return elementID_; } 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 @@ -1,19 +1,26 @@ /* * Copyright (c) 2012 Mateusz Piękos * Licensed under the simplified BSD license. * See Documentation/Licenses/BSD-simplified.txt for more information. */ +/* + * Copyright (c) 2015 Isode Limited. + * All rights reserved. + * See the COPYING file for more information. + */ + #pragma once +#include <Swiften/Base/API.h> #include <Swiften/Elements/Whiteboard/WhiteboardElement.h> #include <Swiften/Elements/Whiteboard/WhiteboardColor.h> namespace Swift { - class WhiteboardEllipseElement : public WhiteboardElement { + class SWIFTEN_API WhiteboardEllipseElement : public WhiteboardElement { public: typedef boost::shared_ptr<WhiteboardEllipseElement> ref; public: WhiteboardEllipseElement(int cx, int cy, int rx, int ry) { cx_ = cx; cy_ = cy; 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 @@ -1,22 +1,29 @@ /* * Copyright (c) 2012 Mateusz Piękos * Licensed under the simplified BSD license. * See Documentation/Licenses/BSD-simplified.txt for more information. */ +/* + * Copyright (c) 2015 Isode Limited. + * All rights reserved. + * See the COPYING file for more information. + */ + #pragma once +#include <Swiften/Base/API.h> #include <Swiften/Elements/Whiteboard/WhiteboardElement.h> #include <Swiften/Elements/Whiteboard/WhiteboardColor.h> #include <vector> #include <utility> namespace Swift { - class WhiteboardFreehandPathElement : public WhiteboardElement { + class SWIFTEN_API WhiteboardFreehandPathElement : public WhiteboardElement { typedef std::pair<int, int> Point; public: typedef boost::shared_ptr<WhiteboardFreehandPathElement> ref; public: WhiteboardFreehandPathElement() { } 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 @@ -1,20 +1,26 @@ /* * Copyright (c) 2012 Mateusz Piękos * Licensed under the simplified BSD license. * See Documentation/Licenses/BSD-simplified.txt for more information. */ +/* + * Copyright (c) 2015 Isode Limited. + * All rights reserved. + * See the COPYING file for more information. + */ + #pragma once +#include <Swiften/Base/API.h> #include <Swiften/Elements/Whiteboard/WhiteboardOperation.h> - #include <Swiften/Elements/Whiteboard/WhiteboardElement.h> namespace Swift { - class WhiteboardInsertOperation : public WhiteboardOperation { + class SWIFTEN_API WhiteboardInsertOperation : public WhiteboardOperation { public: typedef boost::shared_ptr<WhiteboardInsertOperation> ref; public: WhiteboardElement::ref getElement() const { return element_; } 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 @@ -2,25 +2,26 @@ * Copyright (c) 2012 Mateusz Piękos * Licensed under the simplified BSD license. * See Documentation/Licenses/BSD-simplified.txt for more information. */ /* - * Copyright (c) 2014 Isode Limited. + * Copyright (c) 2014-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once +#include <Swiften/Base/API.h> #include <Swiften/Elements/Whiteboard/WhiteboardElement.h> #include <Swiften/Elements/Whiteboard/WhiteboardColor.h> namespace Swift { - class WhiteboardLineElement : public WhiteboardElement { + class SWIFTEN_API WhiteboardLineElement : public WhiteboardElement { public: typedef boost::shared_ptr<WhiteboardLineElement> ref; public: WhiteboardLineElement(int x1, int y1, int x2, int y2) : penWidth_(1) { x1_ = x1; y1_ = y1; 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 @@ -1,19 +1,26 @@ /* * Copyright (c) 2012 Mateusz Piękos * Licensed under the simplified BSD license. * See Documentation/Licenses/BSD-simplified.txt for more information. */ +/* + * Copyright (c) 2015 Isode Limited. + * All rights reserved. + * See the COPYING file for more information. + */ + #pragma once +#include <Swiften/Base/API.h> #include <Swiften/Elements/Whiteboard/WhiteboardElement.h> #include <Swiften/Elements/Whiteboard/WhiteboardColor.h> namespace Swift { - class WhiteboardPolygonElement : public WhiteboardElement { + class SWIFTEN_API WhiteboardPolygonElement : public WhiteboardElement { typedef std::pair<int, int> Point; public: typedef boost::shared_ptr<WhiteboardPolygonElement> ref; public: WhiteboardPolygonElement() { } 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 @@ -2,24 +2,25 @@ * Copyright (c) 2012 Mateusz Piękos * Licensed under the simplified BSD license. * See Documentation/Licenses/BSD-simplified.txt for more information. */ /* - * Copyright (c) 2014 Isode Limited. + * Copyright (c) 2014-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once +#include <Swiften/Base/API.h> #include <Swiften/Elements/Whiteboard/WhiteboardElement.h> #include <Swiften/Elements/Whiteboard/WhiteboardColor.h> namespace Swift { - class WhiteboardRectElement : public WhiteboardElement { + class SWIFTEN_API WhiteboardRectElement : public WhiteboardElement { public: typedef boost::shared_ptr<WhiteboardRectElement> ref; public: WhiteboardRectElement(int x, int y, int width, int height) : penWidth_(1) { x_ = x; y_ = y; 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 @@ -1,19 +1,26 @@ /* * Copyright (c) 2012 Mateusz Piękos * Licensed under the simplified BSD license. * See Documentation/Licenses/BSD-simplified.txt for more information. */ +/* + * Copyright (c) 2015 Isode Limited. + * All rights reserved. + * See the COPYING file for more information. + */ + #pragma once +#include <Swiften/Base/API.h> #include <Swiften/Elements/Whiteboard/WhiteboardElement.h> #include <Swiften/Elements/Whiteboard/WhiteboardColor.h> namespace Swift { - class WhiteboardTextElement : public WhiteboardElement { + class SWIFTEN_API WhiteboardTextElement : public WhiteboardElement { public: typedef boost::shared_ptr<WhiteboardTextElement> ref; public: WhiteboardTextElement(int x, int y) { x_ = x; y_ = y; 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 @@ -1,20 +1,26 @@ /* * Copyright (c) 2012 Mateusz Piękos * Licensed under the simplified BSD license. * See Documentation/Licenses/BSD-simplified.txt for more information. */ +/* + * Copyright (c) 2015 Isode Limited. + * All rights reserved. + * See the COPYING file for more information. + */ + #pragma once +#include <Swiften/Base/API.h> #include <Swiften/Elements/Whiteboard/WhiteboardOperation.h> - #include <Swiften/Elements/Whiteboard/WhiteboardElement.h> namespace Swift { - class WhiteboardUpdateOperation : public WhiteboardOperation { + class SWIFTEN_API WhiteboardUpdateOperation : public WhiteboardOperation { public: typedef boost::shared_ptr<WhiteboardUpdateOperation> ref; public: WhiteboardElement::ref getElement() const { return element_; } 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 @@ -1,22 +1,29 @@ /* * Copyright (c) 2012 Mateusz Piękos * Licensed under the simplified BSD license. * See Documentation/Licenses/BSD-simplified.txt for more information. */ +/* + * Copyright (c) 2015 Isode Limited. + * All rights reserved. + * See the COPYING file for more information. + */ + #pragma once #include <string> +#include <Swiften/Base/API.h> #include <Swiften/Elements/Payload.h> #include <Swiften/Elements/Whiteboard/WhiteboardElement.h> #include <Swiften/Elements/Whiteboard/WhiteboardOperation.h> namespace Swift { - class WhiteboardPayload : public Payload { + class SWIFTEN_API WhiteboardPayload : public Payload { public: typedef boost::shared_ptr<WhiteboardPayload> ref; public: enum Type {UnknownType, Data, SessionRequest, SessionAccept, SessionTerminate}; |
Swift