Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 namespace input
31 {
32 namespace receiver
33 {
34 class InputReceiverReport;
35 }
36 }
37 namespace client
38 {
39 
40 namespace rpc
41 {
42 class RpcReport;
43 }
44 
46 {
47 public:
48  DefaultConnectionConfiguration(std::string const& socket_file);
49 
50  std::shared_ptr<ConnectionSurfaceMap> the_surface_map();
51  std::shared_ptr<google::protobuf::RpcChannel> the_rpc_channel();
52  std::shared_ptr<mir::logging::Logger> the_logger();
53  std::shared_ptr<ClientPlatformFactory> the_client_platform_factory();
54  std::shared_ptr<input::receiver::InputPlatform> the_input_platform();
55  std::shared_ptr<DisplayConfiguration> the_display_configuration();
56  std::shared_ptr<LifecycleControl> the_lifecycle_control();
57 
58  virtual std::string the_socket_file();
59  virtual std::shared_ptr<rpc::RpcReport> the_rpc_report();
60  virtual std::shared_ptr<input::receiver::InputReceiverReport> the_input_receiver_report();
61 
62 protected:
70 
73 
74 private:
75  std::string const socket_file;
76 };
77 
78 }
79 }
80 
81 #endif /* MIR_CLIENT_DEFAULT_CONNECTION_CONFIGURATION_H_ */
DefaultConnectionConfiguration(std::string const &socket_file)
Definition: default_connection_configuration.cpp:62
CachedPtr< input::receiver::InputPlatform > input_platform
Definition: default_connection_configuration.h:66
std::shared_ptr< google::protobuf::RpcChannel > the_rpc_channel()
Definition: default_connection_configuration.cpp:78
Definition: default_connection_configuration.h:45
CachedPtr< DisplayConfiguration > display_configuration
Definition: default_connection_configuration.h:68
std::shared_ptr< input::receiver::InputPlatform > the_input_platform()
Definition: default_connection_configuration.cpp:117
virtual std::shared_ptr< input::receiver::InputReceiverReport > the_input_receiver_report()
Definition: default_connection_configuration.cpp:151
CachedPtr< mir::logging::Logger > logger
Definition: default_connection_configuration.h:64
Definition: rpc_report.h:43
std::shared_ptr< ClientPlatformFactory > the_client_platform_factory()
Definition: default_connection_configuration.cpp:99
std::shared_ptr< mir::logging::Logger > the_logger()
Definition: default_connection_configuration.cpp:89
CachedPtr< LifecycleControl > lifecycle_control
Definition: default_connection_configuration.h:69
CachedPtr< input::receiver::InputReceiverReport > input_receiver_report
Definition: default_connection_configuration.h:72
virtual std::string the_socket_file()
Definition: default_connection_configuration.cpp:127
std::shared_ptr< ConnectionSurfaceMap > the_surface_map()
Definition: default_connection_configuration.cpp:69
virtual std::shared_ptr< rpc::RpcReport > the_rpc_report()
Definition: default_connection_configuration.cpp:133
CachedPtr< rpc::RpcReport > rpc_report
Definition: default_connection_configuration.h:71
CachedPtr< ClientPlatformFactory > client_platform_factory
Definition: default_connection_configuration.h:65
std::shared_ptr< DisplayConfiguration > the_display_configuration()
Definition: default_connection_configuration.cpp:168
Definition: connection_configuration.h:51
CachedPtr< google::protobuf::RpcChannel > rpc_channel
Definition: default_connection_configuration.h:63
CachedPtr< ConnectionSurfaceMap > surface_map
Definition: default_connection_configuration.h:67
std::shared_ptr< LifecycleControl > the_lifecycle_control()
Definition: default_connection_configuration.cpp:177

Copyright © 2012,2013 Canonical Ltd.
Generated on Fri Apr 11 21:14:53 UTC 2014