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<google::protobuf::RpcChannel> 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<DisplayConfiguration> the_display_configuration() override;
59  std::shared_ptr<LifecycleControl> the_lifecycle_control() override;
60  std::shared_ptr<EventSink> the_event_sink() override;
61  std::shared_ptr<EventHandlerRegister> the_event_handler_register() override;
62  std::shared_ptr<mir::SharedLibraryProberReport> the_shared_library_prober_report();
63 
64  virtual std::string the_socket_file();
65  virtual std::shared_ptr<rpc::RpcReport> the_rpc_report();
66  virtual std::shared_ptr<input::receiver::InputReceiverReport> the_input_receiver_report();
67 
68 protected:
77 
81 
82 private:
83  std::string const socket_file;
84 };
85 
86 }
87 }
88 
89 #endif /* MIR_CLIENT_DEFAULT_CONNECTION_CONFIGURATION_H_ */
std::shared_ptr< mir::SharedLibraryProberReport > the_shared_library_prober_report()
Definition: default_connection_configuration.cpp:223
All things Mir.
Definition: buffer_stream.h:37
std::shared_ptr< LifecycleControl > the_lifecycle_control() override
Definition: default_connection_configuration.cpp:196
std::shared_ptr< google::protobuf::RpcChannel > the_rpc_channel() override
Definition: default_connection_configuration.cpp:89
DefaultConnectionConfiguration(std::string const &socket_file)
Definition: default_connection_configuration.cpp:73
CachedPtr< input::receiver::InputPlatform > input_platform
Definition: default_connection_configuration.h:72
Definition: default_connection_configuration.h:48
CachedPtr< DisplayConfiguration > display_configuration
Definition: default_connection_configuration.h:74
virtual std::shared_ptr< input::receiver::InputReceiverReport > the_input_receiver_report()
Definition: default_connection_configuration.cpp:170
CachedPtr< mir::logging::Logger > logger
Definition: default_connection_configuration.h:70
Definition: rpc_report.h:44
CachedPtr< mir::SharedLibraryProberReport > shared_library_prober_report
Definition: default_connection_configuration.h:80
std::shared_ptr< ClientPlatformFactory > the_client_platform_factory() override
Definition: default_connection_configuration.cpp:110
std::shared_ptr< EventSink > the_event_sink() override
Definition: default_connection_configuration.cpp:205
CachedPtr< LifecycleControl > lifecycle_control
Definition: default_connection_configuration.h:75
CachedPtr< input::receiver::InputReceiverReport > input_receiver_report
Definition: default_connection_configuration.h:79
std::shared_ptr< input::receiver::InputPlatform > the_input_platform() override
Definition: default_connection_configuration.cpp:136
virtual std::string the_socket_file()
Definition: default_connection_configuration.cpp:146
std::shared_ptr< ConnectionSurfaceMap > the_surface_map() override
Definition: default_connection_configuration.cpp:80
virtual std::shared_ptr< rpc::RpcReport > the_rpc_report()
Definition: default_connection_configuration.cpp:152
CachedPtr< rpc::RpcReport > rpc_report
Definition: default_connection_configuration.h:78
CachedPtr< ClientPlatformFactory > client_platform_factory
Definition: default_connection_configuration.h:71
std::shared_ptr< EventHandlerRegister > the_event_handler_register() override
Definition: default_connection_configuration.cpp:214
Definition: connection_configuration.h:52
CachedPtr< EventDistributor > event_distributor
Definition: default_connection_configuration.h:76
CachedPtr< google::protobuf::RpcChannel > rpc_channel
Definition: default_connection_configuration.h:69
CachedPtr< ConnectionSurfaceMap > surface_map
Definition: default_connection_configuration.h:73
std::shared_ptr< mir::logging::Logger > the_logger() override
Definition: default_connection_configuration.cpp:100
std::shared_ptr< DisplayConfiguration > the_display_configuration() override
Definition: default_connection_configuration.cpp:187

Copyright © 2012,2013 Canonical Ltd.
Generated on Tue Mar 24 16:15:19 UTC 2015