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)
Base class for data sources for telemetry data.
Definition abstractdatasource.h:25
Records the time ratio a given QObject property has a specific value.
Definition propertyratiosource.h:25
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
const char * constData() const const
bool isEmpty() const const
qint64 elapsed() const const
void start()
const_iterator constBegin() const const
const_iterator constEnd() const const
int indexOfMethod(const char *method) const const
QMetaMethod method(int index) const const
bool hasNotifySignal() const const
QMetaMethod notifySignal() const const
QVariant read(const QObject *object) const const
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
virtual const QMetaObject * metaObject() const const
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)
bool isEmpty() const const
QByteArray toUtf8() const const
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-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:57:44 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:57:44 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.