Commit 0354fd11 authored by Méven Car's avatar Méven Car
Browse files

KIO/SMB convert kio protocol declaration to json format

Reviewers: #frameworks, ngraham

Reviewed By: ngraham

Subscribers: elvisangelaccio, apol, kde-frameworks-devel, kfm-devel

Tags: #dolphin, #frameworks

Differential Revision: https://phabricator.kde.org/D26358
parent a4f3a58e
......@@ -53,6 +53,5 @@ install(TARGETS kio_smb DESTINATION ${KDE_INSTALL_PLUGINDIR}/kf5/kio)
########### install files ###############
install( FILES smb-network.desktop DESTINATION ${KDE_INSTALL_DATADIR}/konqueror/dirtree/remote )
install( FILES smb.protocol DESTINATION ${KDE_INSTALL_KSERVICES5DIR} )
install( FILES smb-network.desktop DESTINATION ${KDE_INSTALL_DATADIR}/remoteview )
......@@ -35,6 +35,13 @@
Q_LOGGING_CATEGORY(KIO_SMB, "kio_smb")
// Pseudo plugin class to embed meta data
class KIOPluginForMetaData : public QObject
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.kde.kio.slave.smb" FILE "smb.json")
};
bool needsEEXISTWorkaround()
{
/* There is an issue with some libsmbclient versions that return EEXIST
......@@ -110,3 +117,4 @@ int Q_DECL_EXPORT kdemain( int argc, char **argv )
return 0;
}
#include "kio_smb.moc"
{
"KDE-KIO-Protocols": {
"smb": {
"Class": ":internet",
"Icon": "network-workgroup",
"X-DocPath": "kioslave5/smb/index.html",
"copyFromFile": true,
"copyToFile": true,
"deleting": true,
"exec": "kf5/kio/smb",
"input": "none",
"listing": [
"Name",
"Type",
"Size",
"Date",
"Access",
"Owner",
"Group"
],
"linking": false,
"makedir": true,
"maxInstances": 20,
"maxInstancesPerHost": 5,
"moving": true,
"output": "filesystem",
"protocol": "smb",
"opening": true,
"reading": true,
"writing": true
}
}
}
[Protocol]
exec=kf5/kio/smb
protocol=smb
input=none
output=filesystem
listing=Name,Type,Size,Date,Access,Owner,Group
reading=true
writing=true
makedir=true
deleting=true
opening=true
moving=true
copyToFile=true
copyFromFile=true
maxInstances=20
maxInstancesPerHost=5
X-DocPath=kioslave5/smb/index.html
Icon=network-workgroup
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