File indexing completed on 2024-04-28 16:42:44

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 EVDEVDBUSINTERFACE_H
0008 #define EVDEVDBUSINTERFACE_H
0009 
0010 #include <QObject>
0011 
0012 class EvdevDbusInterface : public QObject
0013 {
0014     Q_OBJECT
0015     Q_CLASSINFO("D-Bus Interface", "org.kde.plasma.remotecontrollers.EVDEV")
0016 
0017 public:
0018     explicit EvdevDbusInterface(QObject *parent = nullptr);
0019     ~EvdevDbusInterface() override;
0020 
0021 
0022 public Q_SLOTS:
0023     Q_SCRIPTABLE void emitKeyPress(int keyCode);
0024 
0025 Q_SIGNALS:
0026     void keyPress(int keyCode);
0027 };
0028 
0029 #endif // EVDEVDBUSINTERFACE_H