Skip to content
Snippets Groups Projects
Unverified Commit 1b7de38d authored by Sébastien Blin's avatar Sébastien Blin
Browse files

Revert "plugin:add editable preference"

This reverts commit dfeaa870.

Change-Id: Iaeb7cc7507a53f5336fc204ba937ad55eb8f93b2
parent 1302194c
Branches
Tags
No related merge requests found
......@@ -158,19 +158,10 @@ public:
Q_INVOKABLE MapStringString getPluginPreferencesValues(const QString& path);
/**
* Reset preferences values of installed plugin to default values
* Reste preferences values of installed plugin to default values
* @return true if preference was succesfully reset
*/
Q_INVOKABLE bool resetPluginPreferencesValues(const QString& path);
/**
* Add a possible value to a preference that can be edited by the user
* the only possibility at the moment is USERLIST option
* @return if addition was successfull
*/
Q_INVOKABLE bool addValueToPreference(const QString& pluginId,
const QString& preferenceKey,
const QString& value);
};
} // namespace api
......
......@@ -187,14 +187,6 @@ PluginModel::resetPluginPreferencesValues(const QString& path)
return PluginManager::instance().resetPluginPreferencesValues(path);
}
bool
PluginModel::addValueToPreference(const QString& pluginId,
const QString& preferenceKey,
const QString& value)
{
return PluginManager::instance().addValueToPreference(pluginId, preferenceKey, value);
}
} // namespace lrc
#include "api/moc_pluginmodel.cpp"
......
......@@ -124,13 +124,3 @@ PluginManagerInterface::resetPluginPreferencesValues(const QString& path)
{
return DRing::resetPluginPreferencesValues(path.toStdString());
}
bool
PluginManagerInterface::addValueToPreference(const QString& pluginId,
const QString& preferenceKey,
const QString& value)
{
return DRing::addValueToPreference(pluginId.toStdString(),
preferenceKey.toStdString(),
value.toStdString());
}
......@@ -79,10 +79,6 @@ public Q_SLOTS: // METHODS
MapStringString getPluginPreferencesValues(const QString& path);
bool resetPluginPreferencesValues(const QString& path);
bool addValueToPreference(const QString& pluginId,
const QString& preferenceKey,
const QString& value);
};
namespace org {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment