Mir
default_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_DEFAULT_CONNECTION_CONFIGURATION_H_
20 #define MIR_CLIENT_DEFAULT_CONNECTION_CONFIGURATION_H_
21 
23 
24 #include "mir/cached_ptr.h"
25 
26 #include <string>
27 
28 namespace mir
29 {
30 class SharedLibraryProberReport;
31 
32 namespace input
33 {
34 namespace receiver
35 {
36 class InputReceiverReport;
37 }
38 }
39 namespace client
40 {
41 class EventDistributor;
42 
43 namespace rpc
44 {
45 class RpcReport;
46 }
47 
49 {
50 public:
51  DefaultConnectionConfiguration(std::string const& socket_file);
52 
53  std::shared_ptr<ConnectionSurfaceMap> the_surface_map() override;
54  std::shared_ptr<mir::client::rpc::MirBasicRpcChannel> the_rpc_channel() override;
55  std::shared_ptr<mir::logging::Logger> the_logger() override;
56  std::shared_ptr<ClientPlatformFactory> the_client_platform_factory() override;
57  std::shared_ptr<input::receiver::InputPlatform> the_input_platform() override;
58  std::shared_ptr<input::InputDevices> the_input_devices() override;
59  std::shared_ptr<DisplayConfiguration> the_display_configuration() override;
60  std::shared_ptr<LifecycleControl> the_lifecycle_control() override;
61  std::shared_ptr<PingHandler> the_ping_handler() override;
62  std::shared_ptr<EventSink> the_event_sink() override;
63  std::shared_ptr<EventHandlerRegister> the_event_handler_register() override;
64  std::shared_ptr<mir::SharedLibraryProberReport> the_shared_library_prober_report();
65  std::shared_ptr<mir::client::AsyncBufferFactory> the_buffer_factory() override;
66 
67  virtual std::string the_socket_file();
68  virtual std::shared_ptr<rpc::RpcReport> the_rpc_report();
69  virtual std::shared_ptr<input::receiver::InputReceiverReport> the_input_receiver_report();
70 
71 protected:
82 
87 
88 private:
89  std::string const socket_file;
90 };
91 
92 }
93 }
94 
95 #endif /* MIR_CLIENT_DEFAULT_CONNECTION_CONFIGURATION_H_ */
All things Mir.
Definition: atomic_callback.h:25
CachedPtr< input::receiver::InputPlatform > input_platform
Definition: default_connection_configuration.h:75
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: default_connection_configuration.h:48
CachedPtr< DisplayConfiguration > display_configuration
Definition: default_connection_configuration.h:78
CachedPtr< input::InputDevices > input_devices
Definition: default_connection_configuration.h:76
CachedPtr< mir::logging::Logger > logger
Definition: default_connection_configuration.h:73
CachedPtr< mir::SharedLibraryProberReport > shared_library_prober_report
Definition: default_connection_configuration.h:85
CachedPtr< LifecycleControl > lifecycle_control
Definition: default_connection_configuration.h:79
CachedPtr< input::receiver::InputReceiverReport > input_receiver_report
Definition: default_connection_configuration.h:84
CachedPtr< mir::client::AsyncBufferFactory > async_buffer_factory
Definition: default_connection_configuration.h:86
CachedPtr< rpc::RpcReport > rpc_report
Definition: default_connection_configuration.h:83
CachedPtr< ClientPlatformFactory > client_platform_factory
Definition: default_connection_configuration.h:74
Definition: connection_configuration.h:57
CachedPtr< mir::client::rpc::MirBasicRpcChannel > rpc_channel
Definition: default_connection_configuration.h:72
CachedPtr< EventDistributor > event_distributor
Definition: default_connection_configuration.h:81
CachedPtr< PingHandler > ping_handler
Definition: default_connection_configuration.h:80
CachedPtr< ConnectionSurfaceMap > surface_map
Definition: default_connection_configuration.h:77

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