diff options
| author | Remko Tronçon <git@el-tramo.be> | 2012-07-14 08:13:57 (GMT) |
|---|---|---|
| committer | Remko Tronçon <git@el-tramo.be> | 2012-07-14 13:08:36 (GMT) |
| commit | 003381f417caaae9918cd81fa53bcc0547caa4c9 (patch) | |
| tree | c0571987e87a115e5a7ad03eca55db972f6686c6 /Swiften/Component | |
| parent | 075c1f08245055e0060df2695e75bba54e697d36 (diff) | |
| download | swift-contrib-003381f417caaae9918cd81fa53bcc0547caa4c9.zip swift-contrib-003381f417caaae9918cd81fa53bcc0547caa4c9.tar.bz2 | |
Initial DLL support for Swiften.
All applications succesfully link against Swiften.dll.
Diffstat (limited to 'Swiften/Component')
| -rw-r--r-- | Swiften/Component/Component.h | 3 | ||||
| -rw-r--r-- | Swiften/Component/ComponentXMLTracer.h | 3 | ||||
| -rw-r--r-- | Swiften/Component/CoreComponent.h | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/Swiften/Component/Component.h b/Swiften/Component/Component.h index 0b29ff7..f3ae9e8 100644 --- a/Swiften/Component/Component.h +++ b/Swiften/Component/Component.h @@ -1,29 +1,30 @@ /* * Copyright (c) 2010 Remko Tronçon * Licensed under the GNU General Public License v3. * See Documentation/Licenses/GPLv3.txt for more information. */ #pragma once +#include <Swiften/Base/API.h> #include <Swiften/Component/CoreComponent.h> namespace Swift { class SoftwareVersionResponder; /** * Provides the core functionality for writing XMPP component software. * * Besides connecting to an XMPP server, this class also provides interfaces for * performing most component tasks on the XMPP network. */ - class Component : public CoreComponent { + class SWIFTEN_API Component : public CoreComponent { public: Component(EventLoop* eventLoop, NetworkFactories* networkFactories, const JID& jid, const std::string& secret); ~Component(); /** * Sets the software version of the client. * * This will be used to respond to version queries from other entities. */ diff --git a/Swiften/Component/ComponentXMLTracer.h b/Swiften/Component/ComponentXMLTracer.h index c12ec07..57b9dcf 100644 --- a/Swiften/Component/ComponentXMLTracer.h +++ b/Swiften/Component/ComponentXMLTracer.h @@ -1,20 +1,21 @@ /* * Copyright (c) 2010 Remko Tronçon * Licensed under the GNU General Public License v3. * See Documentation/Licenses/GPLv3.txt for more information. */ #pragma once +#include <Swiften/Base/API.h> #include <Swiften/Component/Component.h> namespace Swift { - class ComponentXMLTracer { + class SWIFTEN_API ComponentXMLTracer { public: ComponentXMLTracer(CoreComponent* component); private: static void printData(char direction, const SafeByteArray& data); static void printLine(char c); }; } diff --git a/Swiften/Component/CoreComponent.h b/Swiften/Component/CoreComponent.h index e7945d1..4f39ffd 100644 --- a/Swiften/Component/CoreComponent.h +++ b/Swiften/Component/CoreComponent.h @@ -2,18 +2,19 @@ * Copyright (c) 2010 Remko Tronçon * Licensed under the GNU General Public License v3. * See Documentation/Licenses/GPLv3.txt for more information. */ #pragma once #include <boost/shared_ptr.hpp> +#include <Swiften/Base/API.h> #include <Swiften/Base/boost_bsignals.h> #include <Swiften/Base/Error.h> #include <Swiften/Network/PlatformDomainNameResolver.h> #include <Swiften/Component/ComponentConnector.h> #include <Swiften/Component/ComponentSession.h> #include <Swiften/Component/ComponentError.h> #include <Swiften/Elements/Presence.h> #include <Swiften/Elements/Message.h> #include <Swiften/JID/JID.h> @@ -34,19 +35,19 @@ namespace Swift { * The central class for communicating with an XMPP server as a component. * * This class is responsible for setting up the connection with the XMPP * server and authenticating the component. * * This class can be used directly in your application, although the Component * subclass provides more functionality and interfaces, and is better suited * for most needs. */ - class CoreComponent : public Entity { + class SWIFTEN_API CoreComponent : public Entity { public: CoreComponent(EventLoop* eventLoop, NetworkFactories* networkFactories, const JID& jid, const std::string& secret); ~CoreComponent(); void connect(const std::string& host, int port); void disconnect(); void sendMessage(boost::shared_ptr<Message>); void sendPresence(boost::shared_ptr<Presence>); |
Swift