Mir
prompt_session_manager.h
Go to the documentation of this file.
1/*
2 * Copyright © 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
24namespace mir { namespace scene { class PromptSessionManager; class PromptSession;} }
25
26namespace miroil {
27
29{
30public:
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
46private:
47 std::shared_ptr<mir::scene::PromptSessionManager> prompt_session_manager;
48};
49}
50
51#endif //MIROIL_PROMPT_SESSION_MANAGER_H
Definition: prompt_session_manager.h:29
bool operator==(PromptSessionManager const &other)
auto application_for(std::shared_ptr< mir::scene::PromptSession > const &prompt_session) const -> miral::Application
PromptSessionManager(std::shared_ptr< mir::scene::PromptSessionManager > const &prompt_session_manager)
auto operator=(PromptSessionManager const &src) -> PromptSessionManager &
void stop_prompt_session(std::shared_ptr< mir::scene::PromptSession > const &prompt_session) const
auto operator=(PromptSessionManager &&src) -> PromptSessionManager &
void resume_prompt_session(std::shared_ptr< mir::scene::PromptSession > const &prompt_session) const
PromptSessionManager(PromptSessionManager const &src)
PromptSessionManager(PromptSessionManager &&src)
void suspend_prompt_session(std::shared_ptr< mir::scene::PromptSession > const &prompt_session) const
Definition: internal_client.h:24
Definition: runner.h:27
Mir Abstraction Layer.
Definition: runner.h:35
Definition: compositor.h:21

Copyright © 2012-2023 Canonical Ltd.
Generated on Tue 2 May 10:01:24 UTC 2023
This documentation is licensed under the GPL version 2 or 3.