diff --git a/audiocd.cpp b/audiocd.cpp --- a/audiocd.cpp +++ b/audiocd.cpp @@ -68,6 +68,13 @@ #include #include +// Pseudo plugin class to embed meta data +class KIOPluginForMetaData : public QObject +{ + Q_OBJECT + Q_PLUGIN_METADATA(IID "org.kde.kio.slave.audiocd" FILE "audiocd.json") +}; + using namespace KIO; #define CDDB_INFORMATION I18N_NOOP("CDDB Information") @@ -1229,3 +1236,5 @@ } } +// needed for JSON file embedding +#include "audiocd.moc" diff --git a/audiocd.json b/audiocd.json new file mode 100644 --- /dev/null +++ b/audiocd.json @@ -0,0 +1,30 @@ +{ + "KDE-KIO-Protocols": { + "audiocd": { + "Class": ":local", + "Icon": "media-optical-audio", + "X-DocPath": "kioslave5/audiocd/index.html", + "copyFromFile": true, + "copyToFile": false, + "deleting": false, + "exec": "kf5/kio/audiocd", + "input": "none", + "listing": [ + "Name", + "Type", + "Size", + "Date", + "Link", + "" + ], + "makedir": false, + "maxInstances": 20, + "maxInstancesPerHost": 5, + "moving": false, + "output": "filesystem", + "protocol": "audiocd", + "reading": true, + "writing": false + } + } +}