From 465e06138e8baaefb967d32a2eaccf67daef8285 Mon Sep 17 00:00:00 2001 From: Elvis Angelaccio Date: Tue, 18 Aug 2020 23:47:53 +0200 Subject: 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. --- CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index c1b1a7b84..49842bd4c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -66,6 +66,17 @@ find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS Crash WindowSystem ) + +find_package(KUserFeedback 1.0.0) +set_package_properties(KUserFeedback + PROPERTIES TYPE OPTIONAL + PURPOSE "Used for submission of telemetry data" + ) + +if(KUserFeedback_FOUND) + set(HAVE_KUSERFEEDBACK TRUE) +endif() + find_package(KF5 ${KF5_MIN_VERSION} OPTIONAL_COMPONENTS Activities ) -- cgit v1.3