Commit 2a81512f authored by Nicolas Fella's avatar Nicolas Fella

[weatherengine] Port from KPluginInfo to KPluginMetaData

parent aec20ebe
......@@ -22,6 +22,7 @@
#include <KSycoca>
#include <KPluginMetaData>
#include <Plasma/DataContainer>
#include <Plasma/PluginLoader>
......@@ -59,10 +60,10 @@ void WeatherEngine::updateIonList(const QStringList &changedResources)
{
if (changedResources.isEmpty() || changedResources.contains(QLatin1String("services"))) {
removeAllData(QStringLiteral("ions"));
const auto infos = Plasma::PluginLoader::self()->listEngineInfo(QStringLiteral("weatherengine"));
for (const KPluginInfo& info : infos) {
const QString data = info.name() + QLatin1Char('|') + info.pluginName();
setData(QStringLiteral("ions"), info.pluginName(), data);
const auto infos = Plasma::PluginLoader::self()->listDataEngineMetaData(QStringLiteral("weatherengine"));
for (const KPluginMetaData& info : infos) {
const QString data = info.name() + QLatin1Char('|') + info.pluginId();
setData(QStringLiteral("ions"), info.pluginId(), data);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment