Commit cac51be2 authored by Elvis Angelaccio's avatar Elvis Angelaccio Committed by David Barchiesi
Browse files

Use JSON metadata

parent 5f5ae8dc
......@@ -3,14 +3,14 @@ set(gdrivepropertiesplugin_SRCS
../../gdrivedebug.cpp
)
ki18n_wrap_ui(gdrivepropertiesplugin_UI_SRCS gdrivepropertiesplugin.ui)
ki18n_wrap_ui(gdrivepropertiesplugin_SRCS gdrivepropertiesplugin.ui)
add_library(gdrivepropertiesplugin MODULE ${gdrivepropertiesplugin_UI_SRCS} ${gdrivepropertiesplugin_SRCS})
kcoreaddons_add_plugin(gdrivepropertiesplugin
SOURCES ${gdrivepropertiesplugin_SRCS}
JSON gdrivepropertiesplugin.json
INSTALL_NAMESPACE "kf5/propertiesdialog")
target_link_libraries(gdrivepropertiesplugin
KF5::I18n
KF5::KIOWidgets
)
install(TARGETS gdrivepropertiesplugin DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES gdrivepropertiesplugin.desktop DESTINATION ${SERVICES_INSTALL_DIR})
......@@ -28,7 +28,7 @@
#include <QDesktopServices>
#include <KIO/StatJob>
K_PLUGIN_FACTORY(GDrivePropertiesPluginFactory, registerPlugin<GDrivePropertiesPlugin>();)
K_PLUGIN_CLASS_WITH_JSON(GDrivePropertiesPlugin, "gdrivepropertiesplugin.json")
GDrivePropertiesPlugin::GDrivePropertiesPlugin(QObject *parent, const QList<QVariant> &args)
: KPropertiesDialogPlugin(qobject_cast<KPropertiesDialog *>(parent))
......
[Desktop Entry]
Type=Service
Icon=folder-gdrive
Name=Google Drive Properties Page
Comment=Properties page showing additional information regarding a Google Drive item
X-KDE-Library=gdrivepropertiesplugin
X-KDE-ServiceTypes=KPropertiesDialog/Plugin
MimeType=inode/directory;application/octet-stream
{
"KPlugin": {
"Description": "Properties page showing additional information regarding a Google Drive item",
"Icon": "folder-gdrive",
"MimeTypes": [
"inode/directory",
"application/octet-stream"
],
"Name": "Google Drive Properties Page",
"ServiceTypes": [
"KPropertiesDialog/Plugin"
]
},
"MimeType": "inode/directory;application/octet-stream"
}
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