Added loadedPlugins() method to Device
The method is exported to dbus
This commit is contained in:
parent
4408afece1
commit
87141a344c
2 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue