summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2012-07-14 08:13:57 (GMT)
committerRemko Tronçon <git@el-tramo.be>2012-07-14 13:08:36 (GMT)
commit003381f417caaae9918cd81fa53bcc0547caa4c9 (patch)
treec0571987e87a115e5a7ad03eca55db972f6686c6 /Swiften/Elements
parent075c1f08245055e0060df2695e75bba54e697d36 (diff)
downloadswift-003381f417caaae9918cd81fa53bcc0547caa4c9.zip
swift-003381f417caaae9918cd81fa53bcc0547caa4c9.tar.bz2
Initial DLL support for Swiften.
All applications succesfully link against Swiften.dll.
Diffstat (limited to 'Swiften/Elements')
-rw-r--r--Swiften/Elements/DiscoInfo.h3
-rw-r--r--Swiften/Elements/Element.h4
-rw-r--r--Swiften/Elements/Form.h3
-rw-r--r--Swiften/Elements/IQ.h3
-rw-r--r--Swiften/Elements/MUCOccupant.h5
-rw-r--r--Swiften/Elements/Payload.h4
-rw-r--r--Swiften/Elements/Presence.h3
-rw-r--r--Swiften/Elements/SecurityLabelsCatalog.h3
-rw-r--r--Swiften/Elements/SoftwareVersion.h3
-rw-r--r--Swiften/Elements/Stanza.h3
10 files changed, 23 insertions, 11 deletions
diff --git a/Swiften/Elements/DiscoInfo.h b/Swiften/Elements/DiscoInfo.h
index fec60d6..8add815 100644
--- a/Swiften/Elements/DiscoInfo.h
+++ b/Swiften/Elements/DiscoInfo.h
@@ -9,6 +9,7 @@
#include <vector>
#include <string>
+#include <Swiften/Base/API.h>
#include <Swiften/Elements/Payload.h>
#include <Swiften/Elements/Form.h>
@@ -16,7 +17,7 @@ namespace Swift {
/**
* disco#info from XEP-0030
*/
- class DiscoInfo : public Payload {
+ class SWIFTEN_API DiscoInfo : public Payload {
public:
typedef boost::shared_ptr<DiscoInfo> ref;
diff --git a/Swiften/Elements/Element.h b/Swiften/Elements/Element.h
index 1e6a9d0..638418d 100644
--- a/Swiften/Elements/Element.h
+++ b/Swiften/Elements/Element.h
@@ -6,8 +6,10 @@
#pragma once
+#include <Swiften/Base/API.h>
+
namespace Swift {
- class Element {
+ class SWIFTEN_API Element {
public:
virtual ~Element();
};
diff --git a/Swiften/Elements/Form.h b/Swiften/Elements/Form.h
index 2c6f963..bd4a2aa 100644
--- a/Swiften/Elements/Form.h
+++ b/Swiften/Elements/Form.h
@@ -9,6 +9,7 @@
#include <vector>
#include <string>
+#include <Swiften/Base/API.h>
#include <Swiften/Elements/Payload.h>
#include <Swiften/Elements/FormField.h>
#include <Swiften/JID/JID.h>
@@ -19,7 +20,7 @@ namespace Swift {
* For the relevant Fields, the parsers and serialisers protect the API user against
* the strange multi-value instead of newline thing by transforming them.
*/
- class Form : public Payload {
+ class SWIFTEN_API Form : public Payload {
public:
typedef boost::shared_ptr<Form> ref;
typedef std::vector<FormField::ref> FormItem;
diff --git a/Swiften/Elements/IQ.h b/Swiften/Elements/IQ.h
index 99561f8..ff978b3 100644
--- a/Swiften/Elements/IQ.h
+++ b/Swiften/Elements/IQ.h
@@ -8,11 +8,12 @@
#include <boost/shared_ptr.hpp>
+#include <Swiften/Base/API.h>
#include <Swiften/Elements/Stanza.h>
#include <Swiften/Elements/ErrorPayload.h>
namespace Swift {
- class IQ : public Stanza {
+ class SWIFTEN_API IQ : public Stanza {
public:
typedef boost::shared_ptr<IQ> ref;
diff --git a/Swiften/Elements/MUCOccupant.h b/Swiften/Elements/MUCOccupant.h
index 931f544..023643c 100644
--- a/Swiften/Elements/MUCOccupant.h
+++ b/Swiften/Elements/MUCOccupant.h
@@ -7,14 +7,15 @@
#pragma once
#include <boost/optional.hpp>
-
#include <string>
+
+#include <Swiften/Base/API.h>
#include <Swiften/JID/JID.h>
namespace Swift {
class Client;
- class MUCOccupant {
+ class SWIFTEN_API MUCOccupant {
public:
enum Role {Moderator, Participant, Visitor, NoRole};
enum Affiliation {Owner, Admin, Member, Outcast, NoAffiliation};
diff --git a/Swiften/Elements/Payload.h b/Swiften/Elements/Payload.h
index f994ebc..15a72d5 100644
--- a/Swiften/Elements/Payload.h
+++ b/Swiften/Elements/Payload.h
@@ -8,8 +8,10 @@
#include <boost/shared_ptr.hpp>
+#include <Swiften/Base/API.h>
+
namespace Swift {
- class Payload {
+ class SWIFTEN_API Payload {
public:
typedef boost::shared_ptr<Payload> ref;
public:
diff --git a/Swiften/Elements/Presence.h b/Swiften/Elements/Presence.h
index 28a9ee5..2e9e224 100644
--- a/Swiften/Elements/Presence.h
+++ b/Swiften/Elements/Presence.h
@@ -8,11 +8,12 @@
#include <boost/smart_ptr/make_shared.hpp>
+#include <Swiften/Base/API.h>
#include <Swiften/Elements/Stanza.h>
#include <Swiften/Elements/StatusShow.h>
namespace Swift {
- class Presence : public Stanza {
+ class SWIFTEN_API Presence : public Stanza {
public:
typedef boost::shared_ptr<Presence> ref;
diff --git a/Swiften/Elements/SecurityLabelsCatalog.h b/Swiften/Elements/SecurityLabelsCatalog.h
index 5498fcf..420cf6f 100644
--- a/Swiften/Elements/SecurityLabelsCatalog.h
+++ b/Swiften/Elements/SecurityLabelsCatalog.h
@@ -10,12 +10,13 @@
#include <string>
#include <boost/shared_ptr.hpp>
+#include <Swiften/Base/API.h>
#include <Swiften/JID/JID.h>
#include <Swiften/Elements/Payload.h>
#include <Swiften/Elements/SecurityLabel.h>
namespace Swift {
- class SecurityLabelsCatalog : public Payload {
+ class SWIFTEN_API SecurityLabelsCatalog : public Payload {
public:
typedef boost::shared_ptr<SecurityLabelsCatalog> ref;
class Item {
diff --git a/Swiften/Elements/SoftwareVersion.h b/Swiften/Elements/SoftwareVersion.h
index c49b47b..e0eeaa3 100644
--- a/Swiften/Elements/SoftwareVersion.h
+++ b/Swiften/Elements/SoftwareVersion.h
@@ -9,10 +9,11 @@
#include <string>
#include <boost/shared_ptr.hpp>
+#include <Swiften/Base/API.h>
#include <Swiften/Elements/Payload.h>
namespace Swift {
- class SoftwareVersion : public Payload {
+ class SWIFTEN_API SoftwareVersion : public Payload {
public:
typedef boost::shared_ptr<SoftwareVersion> ref;
diff --git a/Swiften/Elements/Stanza.h b/Swiften/Elements/Stanza.h
index 9e082cc..fbb0139 100644
--- a/Swiften/Elements/Stanza.h
+++ b/Swiften/Elements/Stanza.h
@@ -12,13 +12,14 @@
#include <boost/optional/optional_fwd.hpp>
#include <boost/date_time/posix_time/ptime.hpp>
+#include <Swiften/Base/API.h>
#include <Swiften/Elements/Element.h>
#include <Swiften/JID/JID.h>
namespace Swift {
class Payload;
- class Stanza : public Element {
+ class SWIFTEN_API Stanza : public Element {
public:
typedef boost::shared_ptr<Stanza> ref;