Mir
connection_configuration.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2013 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License version 3 as
6  * 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 Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Authored by: Alexandros Frantzis <alexandros.frantzis@canonical.com>
17  */
18 
19 #ifndef MIR_CLIENT_CONNECTION_CONFIGURATION_H_
20 #define MIR_CLIENT_CONNECTION_CONFIGURATION_H_
21 
22 #include <memory>
23 #include "lifecycle_control.h"
24 #include "ping_handler.h"
25 
26 namespace mir
27 {
28 
29 namespace input
30 {
31 class InputDevices;
32 namespace receiver
33 {
34 class InputPlatform;
35 }
36 }
37 
38 namespace logging
39 {
40 class Logger;
41 }
42 
43 namespace client
44 {
45 namespace rpc
46 {
47 class MirBasicRpcChannel;
48 }
49 class ConnectionSurfaceMap;
50 class Logger;
51 class ClientPlatformFactory;
52 class DisplayConfiguration;
53 class EventSink;
54 class EventHandlerRegister;
55 class AsyncBufferFactory;
56 
58 {
59 public:
60  virtual ~ConnectionConfiguration() = default;
61 
62  virtual std::shared_ptr<ConnectionSurfaceMap> the_surface_map() = 0;
63  virtual std::shared_ptr<mir::client::rpc::MirBasicRpcChannel> the_rpc_channel() = 0;
64  virtual std::shared_ptr<mir::logging::Logger> the_logger() = 0;
65  virtual std::shared_ptr<ClientPlatformFactory> the_client_platform_factory() = 0;
66  virtual std::shared_ptr<input::receiver::InputPlatform> the_input_platform() = 0;
67  virtual std::shared_ptr<input::InputDevices> the_input_devices() = 0;
68  virtual std::shared_ptr<DisplayConfiguration> the_display_configuration() = 0;
69  virtual std::shared_ptr<LifecycleControl> the_lifecycle_control() = 0;
70  virtual std::shared_ptr<PingHandler> the_ping_handler() = 0;
71  virtual std::shared_ptr<EventSink> the_event_sink() = 0;
72  virtual std::shared_ptr<EventHandlerRegister> the_event_handler_register() = 0;
73  virtual std::shared_ptr<mir::client::AsyncBufferFactory> the_buffer_factory() = 0;
74 
75 protected:
76  ConnectionConfiguration() = default;
78  ConnectionConfiguration& operator=(ConnectionConfiguration const&) = delete;
79 };
80 }
81 }
82 
83 #endif /* MIR_CLIENT_CONNECTION_CONFIGURATION_H_ */
All things Mir.
Definition: atomic_callback.h:25
std::shared_ptr< mir::client::rpc::MirBasicRpcChannel > the_rpc_channel(MirConnection *connection)
Get the the RpcChannel associated with the connection.
Definition: private.cpp:22
Definition: input_platform.h:42
Definition: connection_configuration.h:57
Definition: input_devices.h:46

Copyright © 2012-2015 Canonical Ltd.
Generated on Thu Sep 8 14:50:19 UTC 2016