summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-10-25 18:44:36 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-10-25 18:45:36 (GMT)
commitf77eeb87104a4ea0fd8e43399da14dc5f1cd97c3 (patch)
tree484a1755ccb69421de3ed9b7b9c731870f2de56a /Swiften/Client
parentbd80c3b9054d91b3cbc309400f4db195c708115d (diff)
downloadswift-contrib-f77eeb87104a4ea0fd8e43399da14dc5f1cd97c3.zip
swift-contrib-f77eeb87104a4ea0fd8e43399da14dc5f1cd97c3.tar.bz2
Remove the use of Shared<>.
Diffstat (limited to 'Swiften/Client')
-rw-r--r--Swiften/Client/Client.h2
-rw-r--r--Swiften/Client/CoreClient.h12
2 files changed, 7 insertions, 7 deletions
diff --git a/Swiften/Client/Client.h b/Swiften/Client/Client.h
index c2c9c60..eb3fc09 100644
--- a/Swiften/Client/Client.h
+++ b/Swiften/Client/Client.h
@@ -110,7 +110,7 @@ namespace Swift {
/**
* This signal is emitted when a JID changes presence.
*/
- boost::signal<void (boost::shared_ptr<Presence>)> onPresenceChange;
+ boost::signal<void (Presence::ref)> onPresenceChange;
/**
* This signal is emitted when a presence subscription request is received.
diff --git a/Swiften/Client/CoreClient.h b/Swiften/Client/CoreClient.h
index 02d98b6..24f44fc 100644
--- a/Swiften/Client/CoreClient.h
+++ b/Swiften/Client/CoreClient.h
@@ -21,7 +21,7 @@
#include "Swiften/Client/StanzaChannel.h"
#include "Swiften/Parser/PayloadParsers/FullPayloadParserFactoryCollection.h"
#include "Swiften/Serializer/PayloadSerializers/FullPayloadSerializerCollection.h"
-#include "Swiften/Base/Shared.h"
+
#include "Swiften/Client/ClientSessionStanzaChannel.h"
namespace Swift {
@@ -53,8 +53,8 @@ namespace Swift {
void connect(const String& host);
void disconnect();
- void sendMessage(boost::shared_ptr<Message>);
- void sendPresence(boost::shared_ptr<Presence>);
+ void sendMessage(Message::ref);
+ void sendPresence(Presence::ref);
IQRouter* getIQRouter() const {
return iqRouter_;
@@ -87,9 +87,9 @@ namespace Swift {
boost::signal<void (const String&)> onDataRead;
boost::signal<void (const String&)> onDataWritten;
- boost::signal<void (boost::shared_ptr<Message>)> onMessageReceived;
- boost::signal<void (boost::shared_ptr<Presence>) > onPresenceReceived;
- boost::signal<void (boost::shared_ptr<Stanza>)> onStanzaAcked;
+ boost::signal<void (Message::ref)> onMessageReceived;
+ boost::signal<void (Presence::ref) > onPresenceReceived;
+ boost::signal<void (Stanza::ref)> onStanzaAcked;
private:
void handleConnectorFinished(boost::shared_ptr<Connection>);