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.
34 lines
705 B
C++
34 lines
705 B
C++
/*
|
|
SPDX-FileCopyrightText: 2021 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "session.h"
|
|
|
|
namespace KWin
|
|
{
|
|
|
|
class NoopSession : public Session
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
static std::unique_ptr<NoopSession> create();
|
|
~NoopSession() override;
|
|
|
|
bool isActive() const override;
|
|
Capabilities capabilities() const override;
|
|
QString seat() const override;
|
|
uint terminal() const override;
|
|
int openRestricted(const QString &fileName) override;
|
|
void closeRestricted(int fileDescriptor) override;
|
|
void switchTo(uint terminal) override;
|
|
|
|
private:
|
|
explicit NoopSession() = default;
|
|
};
|
|
|
|
} // namespace KWin
|