KWin
Loading...
Searching...
No Matches
inputbackend.h
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#pragma once
8
9#include "kwin_export.h"
10
11#include <KSharedConfig>
12
13#include <QObject>
14
15namespace KWin
16{
17
18class InputDevice;
19
20class KWIN_EXPORT InputBackend : public QObject
21{
22 Q_OBJECT
23
24public:
25 explicit InputBackend(QObject *parent = nullptr);
26
27 KSharedConfigPtr config() const;
28 void setConfig(KSharedConfigPtr config);
29
30 virtual void initialize()
31 {
32 }
33
34 virtual void updateScreens()
35 {
36 }
37
38Q_SIGNALS:
39 void deviceAdded(InputDevice *device);
41
42private:
43 KSharedConfigPtr m_config;
44};
45
46} // namespace KWin
virtual void updateScreens()
virtual void initialize()
void deviceAdded(InputDevice *device)
void deviceRemoved(InputDevice *device)