2021-01-30 13:22:07 +00:00
|
|
|
/*
|
|
|
|
SPDX-FileCopyrightText: 2021 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
|
|
|
|
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "session_noop.h"
|
|
|
|
|
|
|
|
namespace KWin
|
|
|
|
{
|
|
|
|
|
2022-06-01 11:33:11 +00:00
|
|
|
std::unique_ptr<NoopSession> NoopSession::create()
|
2021-01-30 13:22:07 +00:00
|
|
|
{
|
2022-06-01 11:33:11 +00:00
|
|
|
return std::unique_ptr<NoopSession>{new NoopSession()};
|
2021-01-30 13:22:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
NoopSession::~NoopSession()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
bool NoopSession::isActive() const
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
NoopSession::Capabilities NoopSession::capabilities() const
|
|
|
|
{
|
|
|
|
return Capabilities();
|
|
|
|
}
|
|
|
|
|
|
|
|
QString NoopSession::seat() const
|
|
|
|
{
|
|
|
|
return QStringLiteral("seat0");
|
|
|
|
}
|
|
|
|
|
|
|
|
uint NoopSession::terminal() const
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
int NoopSession::openRestricted(const QString &fileName)
|
|
|
|
{
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
void NoopSession::closeRestricted(int fileDescriptor)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void NoopSession::switchTo(uint terminal)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace KWin
|