Mir
prompt_session_impl.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: Nick Dedekind <nick.dedekind@canonical.com>
17  */
18 
19 #ifndef MIR_SCENE_PROMPT_SESSION_IMPL_H_
20 #define MIR_SCENE_PROMPT_SESSION_IMPL_H_
21 
23 
24 #include <mutex>
25 
26 namespace mir
27 {
28 namespace scene
29 {
30 
32 {
33 public:
34  explicit PromptSessionImpl();
35 
36  void start(std::shared_ptr<Session> const& helper_session) override;
37  void stop(std::shared_ptr<Session> const& helper_session) override;
38  void suspend(std::shared_ptr<Session> const& helper_session) override;
39  void resume(std::shared_ptr<Session> const& helper_session) override;
40 
42 
43 private:
44  std::mutex mutable guard;
45  MirPromptSessionState current_state;
46 };
47 }
48 }
49 
50 #endif // MIR_SCENE_PROMPT_SESSION_IMPL_H_
All things Mir.
Definition: atomic_callback.h:25
void resume(std::shared_ptr< Session > const &helper_session) override
Resume a prompt session.
Definition: prompt_session_impl.cpp:66
Definition: prompt_session.h:30
void stop(std::shared_ptr< Session > const &helper_session) override
Stop a prompt session.
Definition: prompt_session_impl.cpp:42
MirPromptSessionState
Definition: common.h:109
MirPromptSessionState state() const
Definition: prompt_session_impl.cpp:78
void start(std::shared_ptr< Session > const &helper_session) override
Start a prompt session.
Definition: prompt_session_impl.cpp:30
Definition: prompt_session_impl.h:31
void suspend(std::shared_ptr< Session > const &helper_session) override
Suspend a prompt session.
Definition: prompt_session_impl.cpp:54
PromptSessionImpl()
Definition: prompt_session_impl.cpp:25

Copyright © 2012-2015 Canonical Ltd.
Generated on Thu Oct 8 16:20:16 UTC 2015