diff --git a/daemon/device.cpp b/daemon/device.cpp index 030c35b8e..f4bb1b488 100644 --- a/daemon/device.cpp +++ b/daemon/device.cpp @@ -58,6 +58,11 @@ bool Device::hasPlugin(const QString& name) return m_plugins.contains(name); } +QStringList Device::loadedPlugins() +{ + return m_plugins.keys(); +} + void Device::reloadPlugins() { QMap< QString, KdeConnectPlugin* > newPluginMap; diff --git a/daemon/device.h b/daemon/device.h index 625ab0368..d22d0bd9f 100644 --- a/daemon/device.h +++ b/daemon/device.h @@ -60,6 +60,7 @@ public: Q_SCRIPTABLE bool paired() const { return m_paired; } Q_SCRIPTABLE bool reachable() const { return !m_deviceLinks.empty(); } Q_SCRIPTABLE bool hasPlugin(const QString& name); + Q_SCRIPTABLE QStringList loadedPlugins(); //Send and receive Q_SIGNALS: