Mir
server_configuration.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2012 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License version 3,
6  * as published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Authored by: Alan Griffiths <alan@octopull.co.uk>
17  */
18 #ifndef MIR_SERVER_CONFIGURATION_H_
19 #define MIR_SERVER_CONFIGURATION_H_
20 
21 #include <memory>
22 
23 namespace mir
24 {
25 namespace cookie
26 {
27 class CookieFactory;
28 }
29 namespace compositor
30 {
31 class Compositor;
32 }
33 namespace frontend
34 {
35 class Connector;
36 class Shell;
37 }
38 namespace shell
39 {
40 class SessionContainer;
41 }
42 namespace graphics
43 {
44 class Display;
45 class DisplayConfigurationPolicy;
46 class Platform;
47 }
48 namespace input
49 {
50 class InputManager;
51 class InputDispatcher;
52 class EventFilter;
53 class InputConfiguration;
54 }
55 
56 namespace scene
57 {
58 class ApplicationNotRespondingDetector;
59 }
60 
61 class MainLoop;
62 class ServerStatusListener;
63 class DisplayChanger;
64 class EmergencyCleanup;
65 
67 {
68 public:
69  // TODO most of these interfaces are wider DisplayServer needs...
70  // TODO ...some or all of them need narrowing
71  virtual std::shared_ptr<frontend::Connector> the_connector() = 0;
72  virtual std::shared_ptr<frontend::Connector> the_prompt_connector() = 0;
73  virtual std::shared_ptr<graphics::Display> the_display() = 0;
74  virtual std::shared_ptr<compositor::Compositor> the_compositor() = 0;
75  virtual std::shared_ptr<input::InputManager> the_input_manager() = 0;
76  virtual std::shared_ptr<input::InputDispatcher> the_input_dispatcher() = 0;
77  virtual std::shared_ptr<MainLoop> the_main_loop() = 0;
78  virtual std::shared_ptr<ServerStatusListener> the_server_status_listener() = 0;
79  virtual std::shared_ptr<DisplayChanger> the_display_changer() = 0;
80  virtual std::shared_ptr<graphics::Platform> the_graphics_platform() = 0;
81  virtual std::shared_ptr<EmergencyCleanup> the_emergency_cleanup() = 0;
82  virtual std::shared_ptr<cookie::CookieFactory> the_cookie_factory() = 0;
83  virtual auto the_fatal_error_strategy() -> void (*)(char const* reason, ...) = 0;
84  virtual std::shared_ptr<scene::ApplicationNotRespondingDetector> the_application_not_responding_detector() = 0;
85 
86 protected:
87  ServerConfiguration() = default;
88  virtual ~ServerConfiguration() = default;
89 
92 };
93 }
94 
95 
96 #endif /* MIR_SERVER_CONFIGURATION_H_ */
All things Mir.
Definition: atomic_callback.h:25
virtual std::shared_ptr< graphics::Display > the_display()=0
virtual std::shared_ptr< compositor::Compositor > the_compositor()=0
Definition: server_configuration.h:66
virtual auto the_fatal_error_strategy() -> void(*)(char const *reason,...)=0
virtual ~ServerConfiguration()=default
virtual std::shared_ptr< ServerStatusListener > the_server_status_listener()=0
virtual std::shared_ptr< frontend::Connector > the_connector()=0
virtual std::shared_ptr< graphics::Platform > the_graphics_platform()=0
virtual std::shared_ptr< frontend::Connector > the_prompt_connector()=0
virtual std::shared_ptr< input::InputDispatcher > the_input_dispatcher()=0
virtual std::shared_ptr< scene::ApplicationNotRespondingDetector > the_application_not_responding_detector()=0
virtual std::shared_ptr< MainLoop > the_main_loop()=0
virtual std::shared_ptr< cookie::CookieFactory > the_cookie_factory()=0
ServerConfiguration & operator=(ServerConfiguration const &)=delete
virtual std::shared_ptr< EmergencyCleanup > the_emergency_cleanup()=0
virtual std::shared_ptr< DisplayChanger > the_display_changer()=0
virtual std::shared_ptr< input::InputManager > the_input_manager()=0

Copyright © 2012-2015 Canonical Ltd.
Generated on Thu Oct 8 16:20:16 UTC 2015