KUserFeedback

startcountsource.h
1/*
2 SPDX-FileCopyrightText: 2017 Volker Krause <vkrause@kde.org>
3
4 SPDX-License-Identifier: MIT
5*/
6
7#ifndef KUSERFEEDBACK_STARTCOUNTSOURCE_H
8#define KUSERFEEDBACK_STARTCOUNTSOURCE_H
9
10#include "kuserfeedbackcore_export.h"
11#include "abstractdatasource.h"
12
13namespace KUserFeedback {
14
15class Provider;
16class ProviderPrivate;
17class StartCountSourcePrivate;
18
19/*! Data source reporting the total amount of applications starts.
20 *
21 * The default telemetry mode for this source is Provider::BasicUsageStatistics.
22 */
23class KUSERFEEDBACKCORE_EXPORT StartCountSource : public AbstractDataSource
24{
25 Q_DECLARE_TR_FUNCTIONS(KUserFeedback::StartCountSource)
26public:
27 /*! Create a new start count data source. */
29
30 QString name() const override;
31 QString description() const override;
32
33 QVariant data() override;
34
35private:
36 Q_DECLARE_PRIVATE(StartCountSource)
37 friend class Provider;
38 void setProvider(ProviderPrivate *p);
39};
40
41}
42
43#endif // KUSERFEEDBACK_STARTCOUNTSOURCE_H
AbstractDataSource(const QString &id, Provider::TelemetryMode mode=Provider::DetailedUsageStatistics)
Create a new data source named name.
The central object managing data sources and transmitting feedback to the server.
Definition provider.h:32
Data source reporting the total amount of applications starts.
StartCountSource()
Create a new start count data source.
QVariant data() override
Returns the data gathered by this source.
QString name() const override
Returns a short name of this data source.
QString description() const override
Returns a human-readable, translated description of what this source provides.
Classes for integrating telemetry collection, survey targeting, and contribution encouragenemt and co...
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

KDE's Doxygen guidelines are available online.