2
* Copyright © 2016 Canonical Ltd.
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.
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.
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/>.
17
#include "promptsessionmanager.h"
18
#include "promptsession.h"
20
#include <mir/scene/prompt_session_manager.h>
22
qtmir::PromptSessionManager::PromptSessionManager(std::shared_ptr<mir::scene::PromptSessionManager> const &promptSessionManager) :
23
m_promptSessionManager{promptSessionManager}
27
qtmir::PromptSessionManager::~PromptSessionManager() = default;
29
miral::Application qtmir::PromptSessionManager::applicationFor(const PromptSession &promptSession) const
31
return m_promptSessionManager->application_for(promptSession);
34
void qtmir::PromptSessionManager::stopPromptSession(const PromptSession &promptSession) const
36
m_promptSessionManager->stop_prompt_session(promptSession);
39
void qtmir::PromptSessionManager::suspendPromptSession(const PromptSession &promptSession) const
41
m_promptSessionManager->suspend_prompt_session(promptSession);
44
void qtmir::PromptSessionManager::resumePromptSession(const PromptSession &promptSession) const
46
m_promptSessionManager->resume_prompt_session(promptSession);