Commit 30d428c6 authored by Andrius Štikonas's avatar Andrius Štikonas
Browse files

Port away from KPluginMetaData::serviceTypes.

parent 5ffc5c6f
Pipeline #121239 passed with stage
in 57 seconds
......@@ -51,12 +51,7 @@ CoreBackend* CoreBackendManager::backend()
QVector<KPluginMetaData> CoreBackendManager::list() const
{
auto filter = [&](const KPluginMetaData &metaData) {
return metaData.serviceTypes().contains(QStringLiteral("PartitionManager/Plugin")) &&
metaData.category().contains(QStringLiteral("BackendPlugin"));
};
return KPluginMetaData::findPlugins(QStringLiteral("kpmcore"), filter);
return KPluginMetaData::findPlugins(QStringLiteral("kpmcore"));
}
bool CoreBackendManager::load(const QString& name)
......
......@@ -106,9 +106,6 @@
"Name[x-test]": "xxKDE Partition Manager Dummy Backendxx",
"Name[zh_CN]": "KDE 分区管理器(虚拟后端)",
"Name[zh_TW]": "KDE 磁碟分割區管理員 (虛設後端)",
"ServiceTypes": [
"PartitionManager/Plugin"
],
"Version": "1",
"Website": "http://www.partitionmanager.org"
}
......
......@@ -105,9 +105,6 @@
"Name[x-test]": "xxKDE Partition Manager sfdisk Backendxx",
"Name[zh_CN]": "KDE 分区管理器(sfdisk 后端)",
"Name[zh_TW]": "KDE 磁碟分割區管理員 (sfdisk 後端)",
"ServiceTypes": [
"PartitionManager/Plugin"
],
"Version": "1",
"Website": "http://www.partitionmanager.org"
}
......
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