Mir
prompt_session_manager.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2016-2021 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 
17 #ifndef MIROIL_PROMPT_SESSION_MANAGER_H
18 #define MIROIL_PROMPT_SESSION_MANAGER_H
19 
20 #include <miral/application.h>
21 
22 #include <memory>
23 
24 namespace mir { namespace scene { class PromptSessionManager; class PromptSession;} }
25 
26 namespace miroil {
27 
29 {
30 public:
31  PromptSessionManager(std::shared_ptr<mir::scene::PromptSessionManager> const& prompt_session_manager);
35 
38 
39  bool operator==(PromptSessionManager const& other);
40 
41  auto application_for(std::shared_ptr<mir::scene::PromptSession> const& prompt_session) const -> miral::Application;
42  void resume_prompt_session(std::shared_ptr<mir::scene::PromptSession> const& prompt_session) const;
43  void stop_prompt_session(std::shared_ptr<mir::scene::PromptSession> const& prompt_session) const;
44  void suspend_prompt_session(std::shared_ptr<mir::scene::PromptSession> const& prompt_session) const;
45 
46 private:
47  std::shared_ptr<mir::scene::PromptSessionManager> prompt_session_manager;
48 };
49 }
50 
51 #endif //MIROIL_PROMPT_SESSION_MANAGER_H

Copyright © 2012-2022 Canonical Ltd.
Generated on Tue Sep 13 03:20:30 UTC 2022
This documentation is licensed under the GPL version 2 or 3.