From 87141a344c944e60b9035c289060e54f57316110 Mon Sep 17 00:00:00 2001 From: Albert Vaca Date: Sun, 18 Aug 2013 20:27:25 +0200 Subject: [PATCH] Added loadedPlugins() method to Device The method is exported to dbus --- daemon/device.cpp | 5 +++++ daemon/device.h | 1 + 2 files changed, 6 insertions(+) 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: