summaryrefslogtreecommitdiffstats
blob: 3563a872092e39ac77906510824a04cc7f5512df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
 * Copyright (c) 2012 Yoann Blein
 * Licensed under the simplified BSD license.
 * See Documentation/Licenses/BSD-simplified.txt for more information.
 */

#pragma once

#include <Swiften/Jingle/IncomingJingleSessionHandler.h>

namespace Swift {
	class IncomingScreenSharing;
	class IQRouter;
	class JingleSessionManager;
	class UDPSocketFactory;

	class IncomingScreenSharingManager : public IncomingJingleSessionHandler {
		public:
			IncomingScreenSharingManager(JingleSessionManager* jingleSessionManager, IQRouter* router, UDPSocketFactory* udpSocketFactory);
			virtual ~IncomingScreenSharingManager();

		public:
			boost::signal<void (boost::shared_ptr<IncomingScreenSharing>)> onIncomingScreenSharing;

		private:
			bool handleIncomingJingleSession(JingleSession::ref session, const std::vector<JingleContentPayload::ref>& contents, const JID& /*recipient*/);

		private:
			JingleSessionManager* jingleSessionManager;
			IQRouter* router;
			UDPSocketFactory *udpSocketFactory;
	};
}