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
Network
Network File Sharing
Commits
7e81e30f
Commit
7e81e30f
authored
Dec 13, 2020
by
Nicolas Fella
Committed by
Harald Sitter
Dec 16, 2020
Browse files
Port properties plugin to JSON metadata
This enables finding it via KPluginLoader, which is the recommended way.
parent
4fc61188
Changes
2
Hide whitespace changes
Inline
Side-by-side
samba/filepropertiesplugin/CMakeLists.txt
View file @
7e81e30f
...
...
@@ -15,6 +15,8 @@ qt5_add_resources(sambausershareplugin_PART_SRCS qml/qml.qrc)
add_library
(
sambausershareplugin MODULE
${
sambausershareplugin_PART_SRCS
}
)
kcoreaddons_desktop_to_json
(
sambausershareplugin sambausershareplugin.desktop
)
target_link_libraries
(
sambausershareplugin
KF5::CoreAddons
KF5::I18n
...
...
@@ -30,8 +32,7 @@ if(SAMBA_INSTALL)
target_link_libraries
(
sambausershareplugin PK::packagekitqt5
)
endif
()
install
(
TARGETS sambausershareplugin DESTINATION
${
PLUGIN_INSTALL_DIR
}
)
install
(
FILES sambausershareplugin.desktop DESTINATION
${
SERVICES_INSTALL_DIR
}
)
install
(
TARGETS sambausershareplugin DESTINATION
${
PLUGIN_INSTALL_DIR
}
/kf5/propertiesdialog
)
# kauth
...
...
samba/filepropertiesplugin/sambausershareplugin.cpp
View file @
7e81e30f
...
...
@@ -39,7 +39,7 @@
#include "sambainstaller.h"
#endif
K_PLUGIN_
FACTORY
(
SambaUserSharePlugin
Factory
,
registerPlugin
<
S
amba
U
ser
S
hare
P
lugin
>
();
)
K_PLUGIN_
CLASS_WITH_JSON
(
SambaUserSharePlugin
,
"s
amba
u
ser
s
hare
p
lugin
.json"
)
class
ShareContext
:
public
QObject
{
...
...
Write
Preview
Supports
Markdown
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