KUserFeedback

usagetimesource.h
1/*
2 SPDX-FileCopyrightText: 2017 Volker Krause <vkrause@kde.org>
3
4 SPDX-License-Identifier: MIT
5*/
6
7#ifndef KUSERFEEDBACK_USAGETIMESOURCE_H
8#define KUSERFEEDBACK_USAGETIMESOURCE_H
9
10#include "kuserfeedbackcore_export.h"
11#include "abstractdatasource.h"
12
13namespace KUserFeedback {
14
15class Provider;
16class ProviderPrivate;
17class UsageTimeSourcePrivate;
18
19/*! Data source reporting the total usage time of the application.
20 *
21 * The default telemetry mode for this source is Provider::BasicUsageStatistics.
22 */
23class KUSERFEEDBACKCORE_EXPORT UsageTimeSource : public AbstractDataSource
24{
25public:
26 Q_DECLARE_TR_FUNCTIONS(KUserFeedback::UsageTimeSource)
27public:
28 /*! Create a new usage time data source. */
30
31 QString name() const override;
32 QString description() const override;
33
34 QVariant data() override;
35
36private:
37 Q_DECLARE_PRIVATE(UsageTimeSource)
38 friend class Provider;
39 void setProvider(ProviderPrivate *p);
40};
41
42}
43
44#endif // KUSERFEEDBACK_USAGETIMESOURCE_H
Base class for data sources for telemetry data.
The central object managing data sources and transmitting feedback to the server.
Definition provider.h:32
Data source reporting the total usage time of the application.
Classes for integrating telemetry collection, survey targeting, and contribution encouragenemt and co...
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.