Verified Commit b937dc2d authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Port videodvd kioslave to JSON metadata

Task: https://phabricator.kde.org/T14518

The JSON file was created using the protocoltojson utility from KIO.
parent 7e7c06d3
......@@ -12,6 +12,4 @@ generate_export_header(kio_videodvd
install(TARGETS kio_videodvd DESTINATION ${KDE_INSTALL_PLUGINDIR}/kf5/kio)
install( FILES videodvd.protocol DESTINATION ${SERVICES_INSTALL_DIR})
install( FILES videodvd.desktop DESTINATION ${DATA_INSTALL_DIR}/konqsidebartng/virtual_folders/services)
......@@ -36,6 +36,13 @@ namespace
using namespace KIO;
// Pseudo plugin class to embed meta data
class KIOPluginForMetaData : public QObject
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.kde.kio.slave.videodvd" FILE "videodvd.json")
};
Q_DECLARE_LOGGING_CATEGORY(KIO_VIDEODVD)
Q_LOGGING_CATEGORY(KIO_VIDEODVD, "kio_videodvd")
......@@ -375,3 +382,5 @@ void kio_videodvdProtocol::mimetype( const QUrl& url )
delete iso;
}
}
#include "videodvd.moc"
{
"KDE-KIO-Protocols": {
"videodvd": {
"Class": ":local",
"Icon": "media-optical-video",
"copyFromFile": true,
"copyToFile": false,
"deleting": false,
"exec": "kf5/kio/videodvd",
"input": "none",
"listing": [
"Name",
"Type",
"Size",
"Date"
],
"makedir": false,
"moving": false,
"opening": true,
"output": "filesystem",
"protocol": "videodvd",
"reading": true,
"writing": false
}
}
}
[Protocol]
exec=kf5/kio/videodvd
protocol=videodvd
input=none
output=filesystem
reading=true
listing=Name,Type,Size,Date
Icon=media-optical-video
Class=:local
copyToFile=false
copyFromFile=true
reading=true
writing=false
makedir=false
deleting=false
moving=false
opening=true
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