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/Parser
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/Parser')
-rw-r--r--Swiften/Parser/AttributeMap.h3
-rw-r--r--Swiften/Parser/PayloadParser.h6
-rw-r--r--Swiften/Parser/PayloadParserFactory.h3
-rw-r--r--Swiften/Parser/PayloadParserFactoryCollection.h3
-rw-r--r--Swiften/Parser/PayloadParsers/DiscoInfoParser.h3
-rw-r--r--Swiften/Parser/PayloadParsers/FullPayloadParserFactoryCollection.h3
-rw-r--r--Swiften/Parser/PayloadParsers/RosterParser.h3
-rw-r--r--Swiften/Parser/PayloadParsers/VCardParser.h4
-rw-r--r--Swiften/Parser/PlatformXMLParserFactory.h3
-rw-r--r--Swiften/Parser/XMLParser.h5
-rw-r--r--Swiften/Parser/XMLParserClient.h10
-rw-r--r--Swiften/Parser/XMLParserFactory.h4
-rw-r--r--Swiften/Parser/XMPPParser.h3
-rw-r--r--Swiften/Parser/XMPPParserClient.h3
14 files changed, 34 insertions, 22 deletions
diff --git a/Swiften/Parser/AttributeMap.h b/Swiften/Parser/AttributeMap.h
index 31df606..77b9c23 100644
--- a/Swiften/Parser/AttributeMap.h
+++ b/Swiften/Parser/AttributeMap.h
@@ -11,10 +11,11 @@
#include <map>
#include <boost/optional/optional_fwd.hpp>
+#include <Swiften/Base/API.h>
#include <Swiften/Parser/Attribute.h>
namespace Swift {
- class AttributeMap {
+ class SWIFTEN_API AttributeMap {
public:
class Entry {
public:
diff --git a/Swiften/Parser/PayloadParser.h b/Swiften/Parser/PayloadParser.h
index 8a9a290..bb1ae3c 100644
--- a/Swiften/Parser/PayloadParser.h
+++ b/Swiften/Parser/PayloadParser.h
@@ -7,8 +7,10 @@
#pragma once
#include <boost/shared_ptr.hpp>
-#include <Swiften/Parser/AttributeMap.h>
+
+#include <Swiften/Base/API.h>
+#include <Swiften/Parser/AttributeMap.h>
#include <Swiften/Elements/Payload.h>
namespace Swift {
@@ -22,7 +24,7 @@ namespace Swift {
* After the data for the given top-level element is processed, getPayload() will be called to retrieve the
* payload.
*/
- class PayloadParser {
+ class SWIFTEN_API PayloadParser {
public:
virtual ~PayloadParser();
diff --git a/Swiften/Parser/PayloadParserFactory.h b/Swiften/Parser/PayloadParserFactory.h
index 5619d21..e265e5b 100644
--- a/Swiften/Parser/PayloadParserFactory.h
+++ b/Swiften/Parser/PayloadParserFactory.h
@@ -6,6 +6,7 @@
#pragma once
+#include <Swiften/Base/API.h>
#include <Swiften/Parser/AttributeMap.h>
namespace Swift {
@@ -15,7 +16,7 @@ namespace Swift {
/**
* A factory for PayloadParsers.
*/
- class PayloadParserFactory {
+ class SWIFTEN_API PayloadParserFactory {
public:
virtual ~PayloadParserFactory();
diff --git a/Swiften/Parser/PayloadParserFactoryCollection.h b/Swiften/Parser/PayloadParserFactoryCollection.h
index 6407641..1dbdd32 100644
--- a/Swiften/Parser/PayloadParserFactoryCollection.h
+++ b/Swiften/Parser/PayloadParserFactoryCollection.h
@@ -9,11 +9,12 @@
#include <vector>
#include <Swiften/Parser/AttributeMap.h>
+#include <Swiften/Base/API.h>
namespace Swift {
class PayloadParserFactory;
- class PayloadParserFactoryCollection {
+ class SWIFTEN_API PayloadParserFactoryCollection {
public:
PayloadParserFactoryCollection();
diff --git a/Swiften/Parser/PayloadParsers/DiscoInfoParser.h b/Swiften/Parser/PayloadParsers/DiscoInfoParser.h
index df1441c..1f93a88 100644
--- a/Swiften/Parser/PayloadParsers/DiscoInfoParser.h
+++ b/Swiften/Parser/PayloadParsers/DiscoInfoParser.h
@@ -6,11 +6,12 @@
#pragma once
+#include <Swiften/Base/API.h>
#include <Swiften/Elements/DiscoInfo.h>
#include <Swiften/Parser/GenericPayloadParser.h>
namespace Swift {
- class DiscoInfoParser : public GenericPayloadParser<DiscoInfo> {
+ class SWIFTEN_API DiscoInfoParser : public GenericPayloadParser<DiscoInfo> {
public:
DiscoInfoParser();
diff --git a/Swiften/Parser/PayloadParsers/FullPayloadParserFactoryCollection.h b/Swiften/Parser/PayloadParsers/FullPayloadParserFactoryCollection.h
index 46b692b..91302b1 100644
--- a/Swiften/Parser/PayloadParsers/FullPayloadParserFactoryCollection.h
+++ b/Swiften/Parser/PayloadParsers/FullPayloadParserFactoryCollection.h
@@ -9,11 +9,12 @@
#include <boost/shared_ptr.hpp>
#include <vector>
+#include <Swiften/Base/API.h>
#include <Swiften/Parser/PayloadParserFactoryCollection.h>
#include <Swiften/Parser/PayloadParserFactory.h>
namespace Swift {
- class FullPayloadParserFactoryCollection : public PayloadParserFactoryCollection {
+ class SWIFTEN_API FullPayloadParserFactoryCollection : public PayloadParserFactoryCollection {
public:
FullPayloadParserFactoryCollection();
~FullPayloadParserFactoryCollection();
diff --git a/Swiften/Parser/PayloadParsers/RosterParser.h b/Swiften/Parser/PayloadParsers/RosterParser.h
index c29064f..3b62f0b 100644
--- a/Swiften/Parser/PayloadParsers/RosterParser.h
+++ b/Swiften/Parser/PayloadParsers/RosterParser.h
@@ -6,13 +6,14 @@
#pragma once
+#include <Swiften/Base/API.h>
#include <Swiften/Elements/RosterPayload.h>
#include <Swiften/Parser/GenericPayloadParser.h>
namespace Swift {
class SerializingParser;
- class RosterParser : public GenericPayloadParser<RosterPayload> {
+ class SWIFTEN_API RosterParser : public GenericPayloadParser<RosterPayload> {
public:
RosterParser();
diff --git a/Swiften/Parser/PayloadParsers/VCardParser.h b/Swiften/Parser/PayloadParsers/VCardParser.h
index 1475277..b1c47a3 100644
--- a/Swiften/Parser/PayloadParsers/VCardParser.h
+++ b/Swiften/Parser/PayloadParsers/VCardParser.h
@@ -9,10 +9,12 @@
#include <Swiften/Elements/VCard.h>
#include <Swiften/Parser/GenericPayloadParser.h>
+#include <Swiften/Base/API.h>
+
namespace Swift {
class SerializingParser;
- class VCardParser : public GenericPayloadParser<VCard> {
+ class SWIFTEN_API VCardParser : public GenericPayloadParser<VCard> {
public:
VCardParser();
diff --git a/Swiften/Parser/PlatformXMLParserFactory.h b/Swiften/Parser/PlatformXMLParserFactory.h
index 16756ee..70355d0 100644
--- a/Swiften/Parser/PlatformXMLParserFactory.h
+++ b/Swiften/Parser/PlatformXMLParserFactory.h
@@ -7,9 +7,10 @@
#pragma once
#include <Swiften/Parser/XMLParserFactory.h>
+#include <Swiften/Base/API.h>
namespace Swift {
- class PlatformXMLParserFactory : public XMLParserFactory {
+ class SWIFTEN_API PlatformXMLParserFactory : public XMLParserFactory {
public:
PlatformXMLParserFactory();
diff --git a/Swiften/Parser/XMLParser.h b/Swiften/Parser/XMLParser.h
index 1b866e3..6ecc626 100644
--- a/Swiften/Parser/XMLParser.h
+++ b/Swiften/Parser/XMLParser.h
@@ -8,11 +8,12 @@
#include <string>
+#include <Swiften/Base/API.h>
+
namespace Swift {
-
class XMLParserClient;
- class XMLParser {
+ class SWIFTEN_API XMLParser {
public:
XMLParser(XMLParserClient* client);
virtual ~XMLParser();
diff --git a/Swiften/Parser/XMLParserClient.h b/Swiften/Parser/XMLParserClient.h
index ff706a0..956eacf 100644
--- a/Swiften/Parser/XMLParserClient.h
+++ b/Swiften/Parser/XMLParserClient.h
@@ -4,15 +4,13 @@
* See Documentation/Licenses/GPLv3.txt for more information.
*/
-#ifndef XMLPARSERCLIENT_H
-#define XMLPARSERCLIENT_H
+#pragma once
+#include <Swiften/Base/API.h>
#include <Swiften/Parser/AttributeMap.h>
namespace Swift {
-
-
- class XMLParserClient {
+ class SWIFTEN_API XMLParserClient {
public:
virtual ~XMLParserClient();
@@ -21,5 +19,3 @@ namespace Swift {
virtual void handleCharacterData(const std::string& data) = 0;
};
}
-
-#endif
diff --git a/Swiften/Parser/XMLParserFactory.h b/Swiften/Parser/XMLParserFactory.h
index 32665cb..6979ea4 100644
--- a/Swiften/Parser/XMLParserFactory.h
+++ b/Swiften/Parser/XMLParserFactory.h
@@ -6,11 +6,13 @@
#pragma once
+#include <Swiften/Base/API.h>
+
namespace Swift {
class XMLParser;
class XMLParserClient;
- class XMLParserFactory {
+ class SWIFTEN_API XMLParserFactory {
public:
virtual ~XMLParserFactory();
diff --git a/Swiften/Parser/XMPPParser.h b/Swiften/Parser/XMPPParser.h
index 6cce2bd..757ee22 100644
--- a/Swiften/Parser/XMPPParser.h
+++ b/Swiften/Parser/XMPPParser.h
@@ -9,6 +9,7 @@
#include <boost/shared_ptr.hpp>
#include <boost/noncopyable.hpp>
+#include <Swiften/Base/API.h>
#include <Swiften/Parser/XMLParserClient.h>
#include <Swiften/Parser/AttributeMap.h>
@@ -19,7 +20,7 @@ namespace Swift {
class ElementParser;
class PayloadParserFactoryCollection;
- class XMPPParser : public XMLParserClient, boost::noncopyable {
+ class SWIFTEN_API XMPPParser : public XMLParserClient, boost::noncopyable {
public:
XMPPParser(
XMPPParserClient* parserClient,
diff --git a/Swiften/Parser/XMPPParserClient.h b/Swiften/Parser/XMPPParserClient.h
index e613f8e..85e0f86 100644
--- a/Swiften/Parser/XMPPParserClient.h
+++ b/Swiften/Parser/XMPPParserClient.h
@@ -8,13 +8,14 @@
#include <boost/shared_ptr.hpp>
+#include <Swiften/Base/API.h>
#include <Swiften/Elements/Element.h>
namespace Swift {
class ProtocolHeader;
- class XMPPParserClient {
+ class SWIFTEN_API XMPPParserClient {
public:
virtual ~XMPPParserClient();