Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
session_coordinator_wrapper.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2014 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License version 3,
6  * as 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 General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Authored By: Alan Griffiths <alan@octopull.co.uk>
17  */
18 
19 #ifndef MIR_SHELL_SESSION_COORDINATOR_WRAPPER_H_
20 #define MIR_SHELL_SESSION_COORDINATOR_WRAPPER_H_
21 
22 
24 
25 namespace mir
26 {
27 namespace shell
28 {
30 {
31 public:
32  SessionCoordinatorWrapper(std::shared_ptr<scene::SessionCoordinator> const& wrapped);
33 
34  virtual std::shared_ptr<frontend::Session> open_session(
35  pid_t client_pid,
36  std::string const& name,
37  std::shared_ptr<frontend::EventSink> const& sink) override;
38 
39  virtual void close_session(std::shared_ptr<frontend::Session> const& session) override;
40 
41  void focus_next() override;
42  std::weak_ptr<scene::Session> focussed_application() const;
43  void set_focus_to(std::shared_ptr<scene::Session> const& focus) override;
44 
45  void handle_surface_created(std::shared_ptr<frontend::Session> const& session) override;
46 
47  std::shared_ptr<frontend::PromptSession> start_prompt_session_for(
48  std::shared_ptr<frontend::Session> const& session,
49  scene::PromptSessionCreationParameters const& params) override;
50 
52  std::shared_ptr<frontend::PromptSession> const& prompt_session,
53  std::shared_ptr<frontend::Session> const& session) override;
54 
55  void stop_prompt_session(std::shared_ptr<frontend::PromptSession> const& prompt_session) override;
56 
57 protected:
58  std::shared_ptr<scene::SessionCoordinator> const wrapped;
59 };
60 }
61 }
62 
63 #endif /* MIR_SHELL_SESSION_COORDINATOR_WRAPPER_H_ */
void stop_prompt_session(std::shared_ptr< frontend::PromptSession > const &prompt_session) override
Definition: session_coordinator_wrapper.cpp:82
All things Mir.
Definition: aging_buffer.h:24
Definition: session_coordinator.h:31
virtual void close_session(std::shared_ptr< frontend::Session > const &session) override
Definition: session_coordinator_wrapper.cpp:40
void set_focus_to(std::shared_ptr< scene::Session > const &focus) override
Definition: session_coordinator_wrapper.cpp:56
SessionCoordinatorWrapper(std::shared_ptr< scene::SessionCoordinator > const &wrapped)
Definition: session_coordinator_wrapper.cpp:25
void focus_next() override
Definition: session_coordinator_wrapper.cpp:46
Definition: session_coordinator_wrapper.h:29
void add_prompt_provider_for(std::shared_ptr< frontend::PromptSession > const &prompt_session, std::shared_ptr< frontend::Session > const &session) override
Definition: session_coordinator_wrapper.cpp:75
virtual std::shared_ptr< frontend::Session > open_session(pid_t client_pid, std::string const &name, std::shared_ptr< frontend::EventSink > const &sink) override
Definition: session_coordinator_wrapper.cpp:32
void handle_surface_created(std::shared_ptr< frontend::Session > const &session) override
Definition: session_coordinator_wrapper.cpp:62
std::weak_ptr< scene::Session > focussed_application() const
Definition: session_coordinator_wrapper.cpp:51
std::shared_ptr< frontend::PromptSession > start_prompt_session_for(std::shared_ptr< frontend::Session > const &session, scene::PromptSessionCreationParameters const &params) override
Definition: session_coordinator_wrapper.cpp:68
Definition: prompt_session_creation_parameters.h:29
std::shared_ptr< scene::SessionCoordinator > const wrapped
Definition: session_coordinator_wrapper.h:58

Copyright © 2012,2013 Canonical Ltd.
Generated on Fri Oct 10 14:07:14 UTC 2014