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
Utilities
Ark
Commits
2beb8b96
Verified
Commit
2beb8b96
authored
May 20, 2021
by
Alexander Lohnau
💬
Browse files
Clean up ServiceType property usage in JSON based plugins
Task:
https://phabricator.kde.org/T14483
parent
da30c880
Changes
14
Hide whitespace changes
Inline
Side-by-side
app/compressfileitemaction.json
View file @
2beb8b96
...
...
@@ -46,9 +46,6 @@
"Name[x-test]"
:
"xx'Compress' service menuxx"
,
"Name[zh_CN]"
:
"“压缩”服务菜单"
,
"Name[zh_TW]"
:
"「壓縮」服務選單"
,
"ServiceTypes"
:
[
"KFileItemAction/Plugin"
]
},
"MimeType"
:
"application/octet-stream;inode/directory;"
,
"X-KDE-Require"
:
"Write"
...
...
app/extractfileitemaction.json
View file @
2beb8b96
...
...
@@ -45,9 +45,6 @@
"Name[x-test]"
:
"xx'Extract' service menuxx"
,
"Name[zh_CN]"
:
"“解压缩”服务菜单"
,
"Name[zh_TW]"
:
"「解壓縮」服務選單"
,
"ServiceTypes"
:
[
"KFileItemAction/Plugin"
]
},
"MimeType"
:
"application/octet-stream;"
}
autotests/kerfuffle/metadatatest.cpp
View file @
2beb8b96
...
...
@@ -58,7 +58,6 @@ void MetaDataTest::testPluginLoading()
void
MetaDataTest
::
testPluginMetadata
()
{
for
(
const
KPluginMetaData
&
metaData
:
qAsConst
(
m_plugins
))
{
QVERIFY
(
metaData
.
serviceTypes
().
contains
(
QLatin1String
(
"Kerfuffle/Plugin"
)));
QVERIFY
(
!
metaData
.
mimeTypes
().
isEmpty
());
const
QJsonObject
json
=
metaData
.
rawData
();
...
...
plugins/cli7zplugin/kerfuffle_cli7z.json.cmake
View file @
2beb8b96
...
...
@@ -84,9 +84,6 @@
"Name[x-test]"
:
"xxP7zip pluginxx"
,
"Name[zh_CN]"
:
"P7zip 插件"
,
"Name[zh_TW]"
:
"P7zip 外掛程式"
,
"ServiceTypes"
: [
"Kerfuffle/Plugin"
],
"Version"
:
"@RELEASE_SERVICE_VERSION@"
},
"X-KDE-Kerfuffle-ReadOnlyExecutables"
: [
...
...
plugins/cliplugin-example/kerfuffle_cli.json_TEMPLATE
View file @
2beb8b96
...
...
@@ -5,9 +5,6 @@
"TODO"
],
"Name": "TODO archive plugin",
"ServiceTypes": [
"Kerfuffle/Plugin"
],
"Version": "@RELEASE_SERVICE_VERSION@"
},
"X-KDE-Kerfuffle-ReadWrite": true,
...
...
plugins/clirarplugin/kerfuffle_clirar.json.cmake
View file @
2beb8b96
...
...
@@ -84,9 +84,6 @@
"Name[x-test]"
:
"xxRAR pluginxx"
,
"Name[zh_CN]"
:
"RAR 插件"
,
"Name[zh_TW]"
:
"RAR 外掛程式"
,
"ServiceTypes"
: [
"Kerfuffle/Plugin"
],
"Version"
:
"@RELEASE_SERVICE_VERSION@"
},
"X-KDE-Kerfuffle-ReadOnlyExecutables"
: [
...
...
plugins/cliunarchiverplugin/kerfuffle_cliunarchiver.json.cmake
View file @
2beb8b96
...
...
@@ -69,9 +69,6 @@
"Name[x-test]"
:
"xxThe Unarchiver pluginxx"
,
"Name[zh_CN]"
:
"Unarchiver 插件"
,
"Name[zh_TW]"
:
"解壓縮外掛程式"
,
"ServiceTypes"
: [
"Kerfuffle/Plugin"
],
"Version"
:
"@RELEASE_SERVICE_VERSION@"
},
"X-KDE-Kerfuffle-ReadOnlyExecutables"
: [
...
...
plugins/clizipplugin/kerfuffle_clizip.json.cmake
View file @
2beb8b96
...
...
@@ -84,9 +84,6 @@
"Name[x-test]"
:
"xxInfo-zip pluginxx"
,
"Name[zh_CN]"
:
"Info-zip 插件"
,
"Name[zh_TW]"
:
"Info-zip 外掛程式"
,
"ServiceTypes"
: [
"Kerfuffle/Plugin"
],
"Version"
:
"@RELEASE_SERVICE_VERSION@"
},
"X-KDE-Kerfuffle-ReadOnlyExecutables"
: [
...
...
plugins/libarchive/kerfuffle_libarchive.json.cmake
View file @
2beb8b96
...
...
@@ -84,9 +84,6 @@
"Name[x-test]"
:
"xxLibarchive pluginxx"
,
"Name[zh_CN]"
:
"Libarchive 插件"
,
"Name[zh_TW]"
:
"Libarchive 外掛程式"
,
"ServiceTypes"
: [
"Kerfuffle/Plugin"
],
"Version"
:
"@RELEASE_SERVICE_VERSION@"
},
"X-KDE-Kerfuffle-ReadWrite"
: true,
...
...
plugins/libarchive/kerfuffle_libarchive_readonly.json.cmake
View file @
2beb8b96
...
...
@@ -84,9 +84,6 @@
"Name[x-test]"
:
"xxLibarchive plugin (read-only formats)xx"
,
"Name[zh_CN]"
:
"Libarchive 插件 (只读格式)"
,
"Name[zh_TW]"
:
"Libarchive 外掛程式(唯讀格式)"
,
"ServiceTypes"
: [
"Kerfuffle/Plugin"
],
"Version"
:
"@RELEASE_SERVICE_VERSION@"
},
"X-KDE-Kerfuffle-ReadWrite"
: false,
...
...
plugins/libsinglefileplugin/kerfuffle_libbz2.json.cmake
View file @
2beb8b96
...
...
@@ -83,9 +83,6 @@
"Name[x-test]"
:
"xxBzip2 pluginxx"
,
"Name[zh_CN]"
:
"Bzip2 插件"
,
"Name[zh_TW]"
:
"Bzip2 外掛程式"
,
"ServiceTypes"
: [
"Kerfuffle/Plugin"
],
"Version"
:
"@RELEASE_SERVICE_VERSION@"
},
"X-KDE-Priority"
: 100
...
...
plugins/libsinglefileplugin/kerfuffle_libgz.json.cmake
View file @
2beb8b96
...
...
@@ -83,9 +83,6 @@
"Name[x-test]"
:
"xxGzip pluginxx"
,
"Name[zh_CN]"
:
"Gzip 插件"
,
"Name[zh_TW]"
:
"Gzip 外掛程式"
,
"ServiceTypes"
: [
"Kerfuffle/Plugin"
],
"Version"
:
"@RELEASE_SERVICE_VERSION@"
},
"X-KDE-Priority"
: 100
...
...
plugins/libsinglefileplugin/kerfuffle_libxz.json.cmake
View file @
2beb8b96
...
...
@@ -83,9 +83,6 @@
"Name[x-test]"
:
"xxLZMA pluginxx"
,
"Name[zh_CN]"
:
"LZMA 插件"
,
"Name[zh_TW]"
:
"LZMA 外掛程式"
,
"ServiceTypes"
: [
"Kerfuffle/Plugin"
],
"Version"
:
"@RELEASE_SERVICE_VERSION@"
},
"X-KDE-Priority"
: 100
...
...
plugins/libzipplugin/kerfuffle_libzip.json.cmake
View file @
2beb8b96
...
...
@@ -78,9 +78,6 @@
"Name[x-test]"
:
"xxLibzip pluginxx"
,
"Name[zh_CN]"
:
"Libzip 插件"
,
"Name[zh_TW]"
:
"Libzip 外掛程式"
,
"ServiceTypes"
: [
"Kerfuffle/Plugin"
],
"Version"
:
"@RELEASE_SERVICE_VERSION@"
},
"X-KDE-Kerfuffle-ReadWrite"
: true,
...
...
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