Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 client
31 {
32 
33 namespace rpc
34 {
35 class RpcReport;
36 }
37 
39 {
40 public:
41  DefaultConnectionConfiguration(std::string const& socket_file);
42 
43  std::shared_ptr<SurfaceMap> the_surface_map();
44  std::shared_ptr<rpc::MirBasicRpcChannel> the_rpc_channel();
45  std::shared_ptr<mir::logging::Logger> the_logger();
46  std::shared_ptr<ClientPlatformFactory> the_client_platform_factory();
47  std::shared_ptr<input::receiver::InputPlatform> the_input_platform();
48  std::shared_ptr<DisplayConfiguration> the_display_configuration();
49  std::shared_ptr<LifecycleControl> the_lifecycle_control();
50 
51  virtual std::string the_socket_file();
52  virtual std::shared_ptr<rpc::RpcReport> the_rpc_report();
53 
54 protected:
62 
64 
65 private:
66  std::string const socket_file;
67 };
68 
69 }
70 }
71 
72 #endif /* MIR_CLIENT_DEFAULT_CONNECTION_CONFIGURATION_H_ */

Copyright © 2012,2013 Canonical Ltd.
Generated on Wed Oct 30 18:52:19 UTC 2013