diff --git a/core/daemon.cpp b/core/daemon.cpp index 863216d4b..32ba722c4 100644 --- a/core/daemon.cpp +++ b/core/daemon.cpp @@ -147,6 +147,14 @@ QSet Daemon::getLinkProviders() const return d->m_linkProviders; } +QStringList Daemon::linkProviders() const +{ + QStringList return; + for (LinkProvider *a : std::as_const(d->m_linkProviders)) { + return.append(a->name()) + } + return ret; +} QStringList Daemon::devices(bool onlyReachable, bool onlyTrusted) const { QStringList ret; diff --git a/core/daemon.h b/core/daemon.h index be7a059ff..b7dfdc7b0 100644 --- a/core/daemon.h +++ b/core/daemon.h @@ -61,11 +61,10 @@ public Q_SLOTS: // Returns a list of ids. The respective devices can be manipulated using the dbus path: "/modules/kdeconnect/Devices/"+id Q_SCRIPTABLE QStringList devices(bool onlyReachable = false, bool onlyPaired = false) const; - Q_SCRIPTABLE QMap deviceNames(bool onlyReachable = false, bool onlyPaired = false) const; Q_SCRIPTABLE QString deviceIdByName(const QString &name) const; - + Q_SCRIPTABLE QStringList linkProviders() const; Q_SCRIPTABLE virtual void sendSimpleNotification(const QString &eventId, const QString &title, const QString &text, const QString &iconName) = 0; Q_SIGNALS: