summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordknn <yoann.blein@free.fr>2012-07-14 08:00:24 (GMT)
committerdknn <yoann.blein@free.fr>2012-09-22 09:01:48 (GMT)
commit51958a50e31b483aa932aac8d696b229ba66b5cb (patch)
tree559c19451c2d53a1ee72113154aa187060680f3c /Swiften/ScreenSharing/ScreenSharing.h
parentce9a3d75677f08af0a226bb3d2bf02c28c938c33 (diff)
downloadswift-contrib-51958a50e31b483aa932aac8d696b229ba66b5cb.zip
swift-contrib-51958a50e31b483aa932aac8d696b229ba66b5cb.tar.bz2
Fixes to make classes working together
Diffstat (limited to 'Swiften/ScreenSharing/ScreenSharing.h')
-rw-r--r--Swiften/ScreenSharing/ScreenSharing.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/Swiften/ScreenSharing/ScreenSharing.h b/Swiften/ScreenSharing/ScreenSharing.h
index b1756b9..5289d3c 100644
--- a/Swiften/ScreenSharing/ScreenSharing.h
+++ b/Swiften/ScreenSharing/ScreenSharing.h
@@ -8,6 +8,7 @@
#include <Swiften/Base/boost_bsignals.h>
#include <Swiften/Base/IDGenerator.h>
+#include <Swiften/Elements/JinglePayload.h>
#include <boost/shared_ptr.hpp>
@@ -16,6 +17,7 @@ namespace Swift {
class JingleRawUDPTransportPayload;
class UDPSocketFactory;
class UDPSocket;
+ class RTPSession;
class ScreenSharing {
public:
@@ -34,24 +36,26 @@ namespace Swift {
};
public:
- ScreenSharing(boost::shared_ptr<JingleSession> session, UDPSocketFactory* udpSocketFactory);
+ ScreenSharing(boost::shared_ptr<JingleSession> jingleSession, UDPSocketFactory* udpSocketFactory);
virtual ~ScreenSharing();
virtual void cancel() = 0;
+ void stop();
public:
boost::signal<void (SCState)> onStateChange;
protected:
bool addBestCandidate(boost::shared_ptr<JingleRawUDPTransportPayload> transport);
+ void handleSessionTerminateReceived(boost::optional<JinglePayload::Reason> reason);
protected:
IDGenerator idGenerator;
boost::shared_ptr<UDPSocket> serverSocket;
boost::shared_ptr<UDPSocket> clientSocket;
+ RTPSession* rtpSession;
- boost::shared_ptr<JingleSession> session;
+ boost::shared_ptr<JingleSession> jingleSession;
UDPSocketFactory* udpSocketFactory;
-
};
}