Changeset View
Changeset View
Standalone View
Standalone View
plugins/telephony/telephonyplugin.h
Show All 37 Lines | |||||
38 | { | 38 | { | ||
39 | Q_OBJECT | 39 | Q_OBJECT | ||
40 | Q_CLASSINFO("D-Bus Interface", "org.kde.kdeconnect.device.telephony") | 40 | Q_CLASSINFO("D-Bus Interface", "org.kde.kdeconnect.device.telephony") | ||
41 | 41 | | |||
42 | public: | 42 | public: | ||
43 | explicit TelephonyPlugin(QObject *parent, const QVariantList &args); | 43 | explicit TelephonyPlugin(QObject *parent, const QVariantList &args); | ||
44 | 44 | | |||
45 | bool receivePackage(const NetworkPackage& np) override; | 45 | bool receivePackage(const NetworkPackage& np) override; | ||
46 | void connected() override; | 46 | void connected() override {} | ||
47 | QString dbusPath() const override; | ||||
47 | 48 | | |||
48 | public Q_SLOTS: | 49 | public Q_SLOTS: | ||
49 | Q_SCRIPTABLE void sendSms(const QString& phoneNumber, const QString& messageBody); | 50 | Q_SCRIPTABLE void sendSms(const QString& phoneNumber, const QString& messageBody); | ||
50 | 51 | | |||
51 | private Q_SLOTS: | 52 | private Q_SLOTS: | ||
52 | void sendMutePackage(); | 53 | void sendMutePackage(); | ||
53 | void showSendSmsDialog(); | 54 | void showSendSmsDialog(); | ||
54 | 55 | | |||
55 | private: | 56 | private: | ||
56 | QString dbusPath() const; | | |||
57 | KNotification* createNotification(const NetworkPackage& np); | 57 | KNotification* createNotification(const NetworkPackage& np); | ||
58 | 58 | | |||
59 | QDBusInterface m_telepathyInterface; | 59 | QDBusInterface m_telepathyInterface; | ||
60 | }; | 60 | }; | ||
61 | 61 | | |||
62 | #endif | 62 | #endif |