File indexing completed on 2024-04-21 16:11:00

0001 /*
0002  *   SPDX-FileCopyrightText: 2022 Bart Ribbers <bribbers@disroot.org>
0003  *   SPDX-FileCopyrightText: 2022 Aleix Pol Gonzalez <aleixpol@kde.org>
0004  *
0005  *   SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0006  */
0007 
0008 #ifndef ABSTRACTSYSTEM_H
0009 #define ABSTRACTSYSTEM_H
0010 
0011 #include <QObject>
0012 #include <QSet>
0013 
0014 class AbstractSystem : public QObject
0015 {
0016     Q_OBJECT
0017 public:
0018     virtual bool init() = 0;
0019     virtual void emitKey(int key, bool pressed) = 0;
0020 
0021     virtual void setSupportedKeys(const QSet<int> &keys) {
0022         Q_UNUSED(keys);
0023     }
0024 };
0025 
0026 #endif