File indexing completed on 2024-04-21 05:25:19
0001 /* 0002 * SPDX-FileCopyrightText: 2022 Aditya Mehra <aix.m@outlook.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0005 */ 0006 0007 #ifndef KCMDBUSINTERFACE_H 0008 #define KCMDBUSINTERFACE_H 0009 0010 #include <QObject> 0011 #include <QDBusMessage> 0012 0013 class KcmDbusInterface : public QObject 0014 { 0015 Q_OBJECT 0016 Q_CLASSINFO("D-Bus Interface", "org.kde.plasma.remotecontrollers.KCM") 0017 0018 public: 0019 explicit KcmDbusInterface(QObject *parent = nullptr); 0020 ~KcmDbusInterface() override; 0021 0022 public Q_SLOTS: 0023 Q_SCRIPTABLE void evdevKeyPress(const QDBusMessage&); 0024 0025 Q_SIGNALS: 0026 void evdevKeyPressed(int keyCode); 0027 }; 0028 0029 #endif // KCMDBUSINTERFACE_H