KUserFeedback
feedbackconfiguicontroller.cpp
133QString FeedbackConfigUiController::telemetryDescription(KUserFeedback::Provider::TelemetryMode mode) const
144 "Share basic system information such as the version of the application and the operating system"
152 "Share basic statistics on how often you use the application, as well as more detailed information about your system"
156 "Share detailed system information and statistics on how often individual features of the application are used."
175 "Share basic statistics on how often you use %1, as well as more detailed information about your system"
193 std::stable_sort(srcs.begin(), srcs.end(), [](AbstractDataSource *lhs, AbstractDataSource *rhs) {
199 if (telemetryIndex >= telemetryModeToIndex(src->telemetryMode()) && !src->description().isEmpty())
Base class for data sources for telemetry data.
Definition abstractdatasource.h:25
KUserFeedback::Provider * feedbackProvider
The Provider instance we are configuring.
Definition feedbackconfiguicontroller.h:30
Q_INVOKABLE QString telemetryDescription(KUserFeedback::Provider::TelemetryMode mode) const
Telemetry mode explanation text.
Definition feedbackconfiguicontroller.cpp:133
void providerChanged()
A provider-related setting has changed.
void setFeedbackProvider(Provider *provider)
Set the feedback provider to configure.
Definition feedbackconfiguicontroller.cpp:51
Q_INVOKABLE QString telemetryModeDescription(int telemetryIndex) const
Telemetry mode explanation text.
Definition feedbackconfiguicontroller.cpp:110
Q_INVOKABLE int surveyIntervalToIndex(int interval) const
Convert survey interval to slider index.
Definition feedbackconfiguicontroller.cpp:215
Q_INVOKABLE int surveyIndexToInterval(int index) const
Convert slider index to survey interval.
Definition feedbackconfiguicontroller.cpp:205
Q_INVOKABLE QString surveyModeDescription(int surveyIndex) const
Survey mode explanation text.
Definition feedbackconfiguicontroller.cpp:225
Q_INVOKABLE QString telemetryModeDetails(int telemetryIndex) const
Detailed information about the data sources of the given telemetry mode index.
Definition feedbackconfiguicontroller.cpp:187
int telemetryModeCount
Amount of telemetry modes supported by the provider.
Definition feedbackconfiguicontroller.h:32
QString applicationName
Name of the application that will appear on descriptions.
Definition feedbackconfiguicontroller.h:36
Q_INVOKABLE int telemetryModeToIndex(KUserFeedback::Provider::TelemetryMode mode) const
Convert telemetry mode to slider index.
Definition feedbackconfiguicontroller.cpp:97
Q_INVOKABLE KUserFeedback::Provider::TelemetryMode telemetryIndexToMode(int index) const
Convert slider index to telemetry mode.
Definition feedbackconfiguicontroller.cpp:90
Q_INVOKABLE QString telemetryModeName(int telemetryIndex) const
Telemetry mode short name.
Definition feedbackconfiguicontroller.cpp:105
Q_INVOKABLE QString telemetryName(KUserFeedback::Provider::TelemetryMode mode) const
Telemetry mode short name.
Definition feedbackconfiguicontroller.cpp:115
The central object managing data sources and transmitting feedback to the server.
Definition provider.h:32
QVector< AbstractDataSource * > dataSources() const
Returns all data sources that have been added to this provider.
Definition provider.cpp:526
Classes for integrating telemetry collection, survey targeting, and contribution encouragenemt and co...
Definition surveytargetexpression.h:16
Q_EMITQ_EMIT
QString tr(const char *sourceText, const char *disambiguation, int n)
bool contains(const QSet< T > &other) const const
iterator insert(const T &value)
void reserve(qsizetype size)
QString arg(Args &&... args) const const
bool isEmpty() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:03:03 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:03:03 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.