KUserFeedback::UsageTimeSource

Search for usage in LXR

KUserFeedback::UsageTimeSource Class Reference

#include <usagetimesource.h>

Inheritance diagram for KUserFeedback::UsageTimeSource:

Public Member Functions

 UsageTimeSource ()
 
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 reporting the total usage time of the application.

The default telemetry mode for this source is Provider::BasicUsageStatistics.

Definition at line 23 of file usagetimesource.h.

Constructor & Destructor Documentation

◆ UsageTimeSource()

UsageTimeSource::UsageTimeSource ( )

Create a new usage time data source.

Definition at line 24 of file usagetimesource.cpp.

Member Function Documentation

◆ data()

QVariant UsageTimeSource::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:

The innermost QAssociativeIterable must only contain one of the following base types (which has to match the corresponding schema entry element):

All keys must be strings.

Returns
A variant complying with the above requirements.

Implements KUserFeedback::AbstractDataSource.

Definition at line 34 of file usagetimesource.cpp.

◆ description()

QString UsageTimeSource::description ( ) const
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 29 of file usagetimesource.cpp.

◆ name()

QString UsageTimeSource::name ( ) const
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 44 of file usagetimesource.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:20:56 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.