Changeset View
Changeset View
Standalone View
Standalone View
plugins/remotecontrol/remotecontrolplugin.h
Show All 34 Lines | |||||
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 receivePackage(const NetworkPackage& /*np*/) override { return false; } | ||
41 | void connected() override; | 41 | void connected() override; | ||
42 | 42 | | |||
43 | Q_INVOKABLE void moveCursor(const QPoint &p); | 43 | Q_SCRIPTABLE void moveCursor(const QPoint &p); | ||
44 | Q_INVOKABLE void sendCommand(const QString &name, bool val); | 44 | Q_SCRIPTABLE void sendCommand(const QString &name, bool val); | ||
45 | 45 | | |||
46 | private: | 46 | private: | ||
47 | QString dbusPath() const; | 47 | QString dbusPath() const; | ||
48 | }; | 48 | }; | ||
49 | 49 | | |||
50 | #endif | 50 | #endif |