Changeset View
Changeset View
Standalone View
Standalone View
plugins/remotecontrol/remotecontrolplugin.h
Show All 19 Lines | |||||
20 | 20 | | |||
21 | #ifndef REMOTECONTROLPLUGIN_H | 21 | #ifndef REMOTECONTROLPLUGIN_H | ||
22 | #define REMOTECONTROLPLUGIN_H | 22 | #define REMOTECONTROLPLUGIN_H | ||
23 | 23 | | |||
24 | #include <QObject> | 24 | #include <QObject> | ||
25 | 25 | | |||
26 | #include <core/kdeconnectplugin.h> | 26 | #include <core/kdeconnectplugin.h> | ||
27 | 27 | | |||
28 | #define PACKAGE_TYPE_MOUSEPAD_REQUEST QStringLiteral("kdeconnect.mousepad.request") | 28 | #define PACKET_TYPE_MOUSEPAD_REQUEST QStringLiteral("kdeconnect.mousepad.request") | ||
29 | 29 | | |||
30 | class Q_DECL_EXPORT RemoteControlPlugin | 30 | class Q_DECL_EXPORT RemoteControlPlugin | ||
31 | : public KdeConnectPlugin | 31 | : public KdeConnectPlugin | ||
32 | { | 32 | { | ||
33 | Q_OBJECT | 33 | Q_OBJECT | ||
34 | Q_CLASSINFO("D-Bus Interface", "org.kde.kdeconnect.device.remotecontrol") | 34 | Q_CLASSINFO("D-Bus Interface", "org.kde.kdeconnect.device.remotecontrol") | ||
35 | 35 | | |||
36 | public: | 36 | public: | ||
37 | explicit RemoteControlPlugin(QObject* parent, const QVariantList &args); | 37 | explicit RemoteControlPlugin(QObject* parent, const QVariantList &args); | ||
38 | ~RemoteControlPlugin() override; | 38 | ~RemoteControlPlugin() override; | ||
39 | 39 | | |||
40 | bool receivePackage(const NetworkPackage& /*np*/) override { return false; } | 40 | bool receivePacket(const NetworkPacket& /*np*/) override { return false; } | ||
41 | void connected() override {} | 41 | void connected() override {} | ||
42 | QString dbusPath() const override; | 42 | QString dbusPath() const override; | ||
43 | 43 | | |||
44 | Q_SCRIPTABLE void moveCursor(const QPoint &p); | 44 | Q_SCRIPTABLE void moveCursor(const QPoint &p); | ||
45 | Q_SCRIPTABLE void sendCommand(const QString &name, bool val); | 45 | Q_SCRIPTABLE void sendCommand(const QString &name, bool val); | ||
46 | }; | 46 | }; | ||
47 | 47 | | |||
48 | #endif | 48 | #endif |