KUserFeedback
propertyratiosource.cpp
88 const auto it = std::find_if(valueMap.constBegin(), valueMap.constEnd(), [value](QPair<QVariant, QString> p) {
124PropertyRatioSource::PropertyRatioSource(QObject *obj, const char *propertyName, const QString &sampleName) :
125 AbstractDataSource(sampleName, Provider::DetailedUsageStatistics, new PropertyRatioSourcePrivate)
AbstractDataSource(const QString &id, Provider::TelemetryMode mode=Provider::DetailedUsageStatistics)
Create a new data source named name.
Definition abstractdatasource.cpp:55
QString description() const override
Returns a human-readable, translated description of what this source provides.
Definition propertyratiosource.cpp:191
void addValueMapping(const QVariant &value, const QString &str)
Map property value value to str for sending to the server.
Definition propertyratiosource.cpp:166
void resetImpl(QSettings *settings) override
Invoked by reset() in order to reset individual settings of this data source.
Definition propertyratiosource.cpp:253
void storeImpl(QSettings *settings) override
Invoked by store() in order to store individual settings of this data source.
Definition propertyratiosource.cpp:236
void setDescription(const QString &desc)
Set human-readable and translated description of the data provided by this source.
Definition propertyratiosource.cpp:197
QVariant data() override
Returns the data gathered by this source.
Definition propertyratiosource.cpp:203
QString name() const override
Returns a short name of this data source.
Definition propertyratiosource.cpp:179
void loadImpl(QSettings *settings) override
Invoked by load() in order to load individual settings of this data source.
Definition propertyratiosource.cpp:225
PropertyRatioSource(QObject *obj, const char *propertyName, const QString &sampleName)
Create a new property ratio data source.
Definition propertyratiosource.cpp:124
void setPropertyName(const QString &name)
Sets the property name that should be monitored.
Definition propertyratiosource.cpp:156
The central object managing data sources and transmitting feedback to the server.
Definition provider.h:32
Classes for integrating telemetry collection, survey targeting, and contribution encouragenemt and co...
Definition surveytargetexpression.h:16
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QStringList childKeys() const const
void remove(QAnyStringView key)
void setValue(QAnyStringView key, const QVariant &value)
QVariant value(QAnyStringView key) const const
QString fromUtf8(QByteArrayView str)
QueuedConnection
int toInt(bool *ok) const const
QString toString() const const
Q_D(Todo)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:44 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:44 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.