Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
System
KPMCore
Commits
30d428c6
Commit
30d428c6
authored
Jan 10, 2022
by
Andrius Štikonas
Browse files
Port away from KPluginMetaData::serviceTypes.
parent
5ffc5c6f
Pipeline
#121239
passed with stage
in 57 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/backend/corebackendmanager.cpp
View file @
30d428c6
...
...
@@ -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
)
...
...
src/plugins/dummy/pmdummybackendplugin.json
View file @
30d428c6
...
...
@@ -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"
}
...
...
src/plugins/sfdisk/pmsfdiskbackendplugin.json
View file @
30d428c6
...
...
@@ -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"
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment