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. --- src/userfeedback/settingsdatasource.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/userfeedback/settingsdatasource.h (limited to 'src/userfeedback/settingsdatasource.h') diff --git a/src/userfeedback/settingsdatasource.h b/src/userfeedback/settingsdatasource.h new file mode 100644 index 000000000..9804c78a7 --- /dev/null +++ b/src/userfeedback/settingsdatasource.h @@ -0,0 +1,27 @@ +/* + * SPDX-FileCopyrightText: 2020 Elvis Angelaccio + +class DolphinMainWindow; + +class SettingsDataSource : public KUserFeedback::AbstractDataSource +{ +public: + SettingsDataSource(); + + QString name() const override; + QString description() const override; + QVariant data() override; + +private: + DolphinMainWindow *m_mainWindow = nullptr; +}; + +#endif // SETTINGSDATASOURCE_H -- cgit v1.3