Mir
prompt_session_listener.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_LISTENER_H_
20 #define MIR_SCENE_PROMPT_SESSION_LISTENER_H_
21 
22 #include <memory>
23 
24 namespace mir
25 {
26 namespace scene
27 {
28 class Session;
29 class PromptSession;
30 
32 {
33 public:
34  virtual void starting(std::shared_ptr<PromptSession> const& prompt_session) = 0;
35  virtual void stopping(std::shared_ptr<PromptSession> const& prompt_session) = 0;
36  virtual void suspending(std::shared_ptr<PromptSession> const& prompt_session) = 0;
37  virtual void resuming(std::shared_ptr<PromptSession> const& prompt_session) = 0;
38 
39  virtual void prompt_provider_added(PromptSession const& prompt_session, std::shared_ptr<Session> const& prompt_provider) = 0;
40  virtual void prompt_provider_removed(PromptSession const& prompt_session, std::shared_ptr<Session> const& prompt_provider) = 0;
41 
42 protected:
43  PromptSessionListener() = default;
44  virtual ~PromptSessionListener() = default;
45 
48 };
49 
50 }
51 }
52 
53 
54 #endif // MIR_SCENE_PROMPT_SESSION_LISTENER_H_
virtual void stopping(std::shared_ptr< PromptSession > const &prompt_session)=0
All things Mir.
Definition: buffer_stream.h:37
virtual ~PromptSessionListener()=default
Definition: prompt_session.h:30
virtual void suspending(std::shared_ptr< PromptSession > const &prompt_session)=0
Definition: prompt_session_listener.h:31
virtual void prompt_provider_removed(PromptSession const &prompt_session, std::shared_ptr< Session > const &prompt_provider)=0
PromptSessionListener & operator=(const PromptSessionListener &)=delete
virtual void prompt_provider_added(PromptSession const &prompt_session, std::shared_ptr< Session > const &prompt_provider)=0
virtual void starting(std::shared_ptr< PromptSession > const &prompt_session)=0
virtual void resuming(std::shared_ptr< PromptSession > const &prompt_session)=0

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