KWin
Loading...
Searching...
No Matches
session_noop.cpp
Go to the documentation of this file.
1/*
2 SPDX-FileCopyrightText: 2021 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#include "session_noop.h"
8
9namespace KWin
10{
11
12std::unique_ptr<NoopSession> NoopSession::create()
13{
14 return std::unique_ptr<NoopSession>{new NoopSession()};
15}
16
20
22{
23 return true;
24}
25
26NoopSession::Capabilities NoopSession::capabilities() const
27{
28 return Capabilities();
29}
30
31QString NoopSession::seat() const
32{
33 return QStringLiteral("seat0");
34}
35
37{
38 return 0;
39}
40
41int NoopSession::openRestricted(const QString &fileName)
42{
43 return -1;
44}
45
46void NoopSession::closeRestricted(int fileDescriptor)
47{
48}
49
50void NoopSession::switchTo(uint terminal)
51{
52}
53
54} // namespace KWin
55
56#include "moc_session_noop.cpp"
QString seat() const override
Capabilities capabilities() const override
void switchTo(uint terminal) override
int openRestricted(const QString &fileName) override
bool isActive() const override
uint terminal() const override
void closeRestricted(int fileDescriptor) override
~NoopSession() override
static std::unique_ptr< NoopSession > create()