summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-07-18 21:06:17 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-07-18 21:48:54 (GMT)
commit5d504472c63b7acaa7df99ff1097024cf463f1bd (patch)
tree999b651588f38ee09325dcda65b6e6396247de2f /Swiften/LinkLocal/LinkLocalSession.h
parent4457bc810a326de8d7895b3f2ff36ade5f1ae1a0 (diff)
downloadswift-contrib-5d504472c63b7acaa7df99ff1097024cf463f1bd.zip
swift-contrib-5d504472c63b7acaa7df99ff1097024cf463f1bd.tar.bz2
Implement outgoing linklocal sessions.
Diffstat (limited to 'Swiften/LinkLocal/LinkLocalSession.h')
-rw-r--r--Swiften/LinkLocal/LinkLocalSession.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Swiften/LinkLocal/LinkLocalSession.h b/Swiften/LinkLocal/LinkLocalSession.h
index 9a7ac13..6629a2a 100644
--- a/Swiften/LinkLocal/LinkLocalSession.h
+++ b/Swiften/LinkLocal/LinkLocalSession.h
@@ -2,6 +2,7 @@
#include <boost/shared_ptr.hpp>
#include <boost/signal.hpp>
+#include <boost/optional.hpp>
#include <boost/enable_shared_from_this.hpp>
#include "Swiften/JID/JID.h"
@@ -22,6 +23,8 @@ namespace Swift {
class LinkLocalSession :
public boost::enable_shared_from_this<LinkLocalSession> {
public:
+ enum Error { ConnectionError, UnknownError };
+
LinkLocalSession(
const JID& localJID,
boost::shared_ptr<Connection> connection,
@@ -39,7 +42,7 @@ namespace Swift {
virtual void start() = 0;
boost::signal<void (boost::shared_ptr<Stanza>)> onStanzaReceived;
- boost::signal<void ()> onSessionFinished;
+ boost::signal<void (boost::optional<Error>)> onSessionFinished;
boost::signal<void ()> onSessionStarted;
boost::signal<void (const ByteArray&)> onDataWritten;
boost::signal<void (const ByteArray&)> onDataRead;