Changeset View
Changeset View
Standalone View
Standalone View
core/daemon.h
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Line(s) | 61 | public Q_SLOTS: | |||
---|---|---|---|---|---|
68 | Q_SCRIPTABLE QString announcedName(); | 68 | Q_SCRIPTABLE QString announcedName(); | ||
69 | Q_SCRIPTABLE void setAnnouncedName(const QString& name); | 69 | Q_SCRIPTABLE void setAnnouncedName(const QString& name); | ||
70 | 70 | | |||
71 | //Returns a list of ids. The respective devices can be manipulated using the dbus path: "/modules/kdeconnect/Devices/"+id | 71 | //Returns a list of ids. The respective devices can be manipulated using the dbus path: "/modules/kdeconnect/Devices/"+id | ||
72 | Q_SCRIPTABLE QStringList devices(bool onlyReachable = false, bool onlyPaired = false) const; | 72 | Q_SCRIPTABLE QStringList devices(bool onlyReachable = false, bool onlyPaired = false) const; | ||
73 | 73 | | |||
74 | Q_SCRIPTABLE QString deviceIdByName(const QString& name) const; | 74 | Q_SCRIPTABLE QString deviceIdByName(const QString& name) const; | ||
75 | 75 | | |||
76 | Q_SCRIPTABLE virtual void sendSimpleNotification(const QString &eventId, const QString &title, const QString &text, const QString &iconName) = 0; | ||||
77 | | ||||
76 | Q_SIGNALS: | 78 | Q_SIGNALS: | ||
77 | Q_SCRIPTABLE void deviceAdded(const QString& id); | 79 | Q_SCRIPTABLE void deviceAdded(const QString& id); | ||
78 | Q_SCRIPTABLE void deviceRemoved(const QString& id); //Note that paired devices will never be removed | 80 | Q_SCRIPTABLE void deviceRemoved(const QString& id); //Note that paired devices will never be removed | ||
79 | Q_SCRIPTABLE void deviceVisibilityChanged(const QString& id, bool isVisible); | 81 | Q_SCRIPTABLE void deviceVisibilityChanged(const QString& id, bool isVisible); | ||
80 | Q_SCRIPTABLE void announcedNameChanged(const QString& announcedName); | 82 | Q_SCRIPTABLE void announcedNameChanged(const QString& announcedName); | ||
81 | Q_SCRIPTABLE void pairingRequestsChanged(); | 83 | Q_SCRIPTABLE void pairingRequestsChanged(); | ||
82 | 84 | | |||
83 | private Q_SLOTS: | 85 | private Q_SLOTS: | ||
Show All 13 Lines |