summaryrefslogtreecommitdiffstats
blob: b43a66572df8d8151ba913eb901a242480dceb75 (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
34
35
36
37
38
39
40
41
42
43
44
45
/*
 * Copyright (c) 2012 Yoann Blein
 * Licensed under the simplified BSD license.
 * See Documentation/Licenses/BSD-simplified.txt for more information.
 */

#pragma once

#include <Swiften/Base/boost_bsignals.h>

#include <boost/shared_ptr.hpp>

#include <vector>

namespace Swift {
	class ScreenSharingManager;
	class ScreenSharingController;
	class IncomingScreenSharing;
	class TimerFactory;
	class DesktopScreenGrabber;
	class RemoteScreenWindowFactory;
	class JID;

	class ScreenSharingOverview {
		public:
			ScreenSharingOverview(ScreenSharingManager* screenSharingManager, RemoteScreenWindowFactory* remoteScreenWindowFactory, TimerFactory* timerFactory);
			~ScreenSharingOverview();

			void createOugoingScreenSharing(const JID& to);

		public:
			boost::signal<void (ScreenSharingController*)> onNewScreenSharingController;

		private:
			void handleIncomingScreenSharing(boost::shared_ptr<IncomingScreenSharing> incomingScreenSharing);

		private:
			ScreenSharingManager* screenSharingManager;
			RemoteScreenWindowFactory* remoteScreenWindowFactory;
			TimerFactory* timerFactory;

			DesktopScreenGrabber* screenGrabber;
			std::vector<ScreenSharingController*> controllers;
	};
}