┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorElvis Angelaccio <[email protected]>2020-08-18 23:47:53 +0200
committerElvis Angelaccio <[email protected]>2020-11-05 18:31:28 +0000
commit465e06138e8baaefb967d32a2eaccf67daef8285 (patch)
tree1b6ec2114228a7429b01b670f43d75d1ff0ee0ed /src/CMakeLists.txt
parent61bf84c13d203840d4ffeb55ce92dc8b660871a1 (diff)
Add support for KUserFeedback
This commit introduces KUserFeedback in dolphin with some basic data sources and with a settings page to configure the telemetry values. There are also a couple custom data sources as proof of concept: a bunch of settings and the count of available network shares as listed by Solid. The settings page is shown only if the user feedback framework is enabled, but currently in Plasma we don't have a global kill switch to disable it. At the moment we never show an encouragement message. We need to connect to the `Provider::showEncouragementMessage()` signal, but first we should agree to a common way to show a non-annoying message to the users.
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index c74855df6..bff52cf0f 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -8,6 +8,8 @@ configure_file(config-packagekit.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-pack
configure_file(config-terminal.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-terminal.h)
+configure_file(config-kuserfeedback.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kuserfeedback.h)
+
add_definitions(
-DTRANSLATION_DOMAIN=\"dolphin\"
)
@@ -261,6 +263,16 @@ if(HAVE_BALOO)
)
endif()
+if(HAVE_KUSERFEEDBACK)
+ set(dolphinstatic_SRCS
+ ${dolphinstatic_SRCS}
+ userfeedback/dolphinfeedbackprovider.cpp
+ userfeedback/settingsdatasource.cpp
+ userfeedback/placesdatasource.cpp
+ settings/userfeedback/userfeedbacksettingspage.cpp
+ )
+endif()
+
kconfig_add_kcfg_files(dolphinstatic_SRCS GENERATE_MOC
panels/folders/dolphin_folderspanelsettings.kcfgc
panels/information/dolphin_informationpanelsettings.kcfgc
@@ -299,6 +311,14 @@ if (HAVE_KACTIVITIES)
)
endif()
+if (HAVE_KUSERFEEDBACK)
+ target_link_libraries(
+ dolphinstatic
+ KUserFeedbackCore
+ KUserFeedbackWidgets
+ )
+endif()
+
set(dolphin_SRCS
dbusinterface.cpp
main.cpp