Changeset View
Changeset View
Standalone View
Standalone View
plugins/remotecommands/remotecommandsplugin.h
Show All 38 Lines | |||||
39 | 39 | | |||
40 | public: | 40 | public: | ||
41 | explicit RemoteCommandsPlugin(QObject* parent, const QVariantList& args); | 41 | explicit RemoteCommandsPlugin(QObject* parent, const QVariantList& args); | ||
42 | ~RemoteCommandsPlugin() override; | 42 | ~RemoteCommandsPlugin() override; | ||
43 | 43 | | |||
44 | Q_SCRIPTABLE void triggerCommand(const QString& key); | 44 | Q_SCRIPTABLE void triggerCommand(const QString& key); | ||
45 | QByteArray commands() const { return m_commands; } | 45 | QByteArray commands() const { return m_commands; } | ||
46 | 46 | | |||
47 | bool receivePackage(const NetworkPackage& np) override; | 47 | bool receivePacket(const NetworkPacket& np) override; | ||
48 | void connected() override; | 48 | void connected() override; | ||
49 | QString dbusPath() const override; | 49 | QString dbusPath() const override; | ||
50 | 50 | | |||
51 | Q_SIGNALS: | 51 | Q_SIGNALS: | ||
52 | void commandsChanged(const QByteArray& commands); | 52 | void commandsChanged(const QByteArray& commands); | ||
53 | 53 | | |||
54 | private: | 54 | private: | ||
55 | void setCommands(const QByteArray& commands); | 55 | void setCommands(const QByteArray& commands); | ||
56 | 56 | | |||
57 | QByteArray m_commands; | 57 | QByteArray m_commands; | ||
58 | }; | 58 | }; | ||
59 | 59 | | |||
60 | #endif | 60 | #endif |