Changeset View
Changeset View
Standalone View
Standalone View
plugins/findmyphone/findmyphoneplugin.h
Show All 19 Lines | |||||
20 | 20 | | |||
21 | #ifndef PINGPLUGIN_H | 21 | #ifndef PINGPLUGIN_H | ||
22 | #define PINGPLUGIN_H | 22 | #define PINGPLUGIN_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_FINDMYPHONE_REQUEST QStringLiteral("kdeconnect.findmyphone.request") | 28 | #define PACKET_TYPE_FINDMYPHONE_REQUEST QStringLiteral("kdeconnect.findmyphone.request") | ||
29 | 29 | | |||
30 | class FindMyPhonePlugin | 30 | class FindMyPhonePlugin | ||
31 | : public KdeConnectPlugin | 31 | : public KdeConnectPlugin | ||
32 | { | 32 | { | ||
33 | Q_OBJECT | 33 | Q_OBJECT | ||
34 | Q_CLASSINFO("D-Bus Interface", "org.kde.kdeconnect.device.findmyphone") | 34 | Q_CLASSINFO("D-Bus Interface", "org.kde.kdeconnect.device.findmyphone") | ||
35 | 35 | | |||
36 | public: | 36 | public: | ||
37 | explicit FindMyPhonePlugin(QObject* parent, const QVariantList& args); | 37 | explicit FindMyPhonePlugin(QObject* parent, const QVariantList& args); | ||
38 | ~FindMyPhonePlugin() override; | 38 | ~FindMyPhonePlugin() override; | ||
39 | 39 | | |||
40 | Q_SCRIPTABLE void ring(); | 40 | Q_SCRIPTABLE void ring(); | ||
41 | 41 | | |||
42 | QString dbusPath() const override; | 42 | QString dbusPath() const override; | ||
43 | void connected() override {} | 43 | void connected() override {} | ||
44 | bool receivePackage(const NetworkPackage& np) override; | 44 | bool receivePacket(const NetworkPacket& np) override; | ||
45 | }; | 45 | }; | ||
46 | 46 | | |||
47 | #endif | 47 | #endif |