d2fb4147fc
Things such as Output, InputDevice and so on are made to be multi-purpose. In order to make this separation more clear, this change moves that code in the core directory. Some things still link to the abstraction level above (kwin), they can be tackled in future refactors. Ideally code in core/ should depend either on other code in core/ or system libs.
57 lines
879 B
C++
57 lines
879 B
C++
/*
|
|
SPDX-FileCopyrightText: 2021 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#include "session_noop.h"
|
|
|
|
namespace KWin
|
|
{
|
|
|
|
std::unique_ptr<NoopSession> NoopSession::create()
|
|
{
|
|
return std::unique_ptr<NoopSession>{new NoopSession()};
|
|
}
|
|
|
|
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)
|
|
{
|
|
Q_UNUSED(fileName)
|
|
return -1;
|
|
}
|
|
|
|
void NoopSession::closeRestricted(int fileDescriptor)
|
|
{
|
|
Q_UNUSED(fileDescriptor)
|
|
}
|
|
|
|
void NoopSession::switchTo(uint terminal)
|
|
{
|
|
Q_UNUSED(terminal)
|
|
}
|
|
|
|
} // namespace KWin
|