Added loadedPlugins() method to Device

The method is exported to dbus
This commit is contained in:
Albert Vaca 2013-08-18 20:27:25 +02:00
parent 4408afece1
commit 87141a344c
2 changed files with 6 additions and 0 deletions

View file

@ -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;

View file

@ -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: