KUserFeedback::ApplicationVersionSource
#include <applicationversionsource.h>
Public Member Functions | |
ApplicationVersionSource () | |
QVariant | data () override |
QString | description () const override |
QString | name () const override |
Public Member Functions inherited from KUserFeedback::AbstractDataSource | |
QString | id () const |
bool | isActive () const |
void | load (QSettings *settings) |
void | reset (QSettings *settings) |
void | setActive (bool active) |
void | setTelemetryMode (Provider::TelemetryMode mode) |
void | store (QSettings *settings) |
Provider::TelemetryMode | telemetryMode () const |
Additional Inherited Members | |
Protected Member Functions inherited from KUserFeedback::AbstractDataSource | |
AbstractDataSource (const QString &id, Provider::TelemetryMode mode=Provider::DetailedUsageStatistics) | |
virtual void | loadImpl (QSettings *settings) |
virtual void | resetImpl (QSettings *settings) |
void | setId (const QString &id) |
virtual void | storeImpl (QSettings *settings) |
Detailed Description
Data source for the application version.
The application version is retrieved via QCoreApplication::applicationVersion.
The default telemetry mode for this source is Provider::BasicSystemInformation.
Definition at line 20 of file applicationversionsource.h.
Constructor & Destructor Documentation
◆ ApplicationVersionSource()
ApplicationVersionSource::ApplicationVersionSource | ( | ) |
Create a new application version source.
Definition at line 14 of file applicationversionsource.cpp.
Member Function Documentation
◆ data()
|
overridevirtual |
Returns the data gathered by this source.
Implement this to return the data provided by this source. One of the three following formats are expected:
- scalar entries: QAssociativeIterable
- list entries: QSequentialIterable containing QAssociativeIterable
- map entries: QAssociativeIterable containing QAssociativeIterable
The innermost QAssociativeIterable must only contain one of the following base types (which has to match the corresponding schema entry element):
- QString
- int
- double
- bool
All keys must be strings.
- Returns
- A variant complying with the above requirements.
Implements KUserFeedback::AbstractDataSource.
Definition at line 24 of file applicationversionsource.cpp.
◆ description()
|
overridevirtual |
Returns a human-readable, translated description of what this source provides.
- See also
- id()
- Returns
- A translated, human-readable string.
Implements KUserFeedback::AbstractDataSource.
Definition at line 19 of file applicationversionsource.cpp.
◆ name()
|
overridevirtual |
Returns a short name of this data source.
Can be empty if short name is meaningless for this data source.
- Returns
- A translated, human-readable string.
Reimplemented from KUserFeedback::AbstractDataSource.
Definition at line 34 of file applicationversionsource.cpp.
The documentation for this class was generated from the following files:
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.