File indexing completed on 2024-12-15 03:45:05

0001 /*
0002     SPDX-FileCopyrightText: 2017 Volker Krause <vkrause@kde.org>
0003 
0004     SPDX-License-Identifier: MIT
0005 */
0006 
0007 #ifndef KUSERFEEDBACK_STARTCOUNTSOURCE_H
0008 #define KUSERFEEDBACK_STARTCOUNTSOURCE_H
0009 
0010 #include "kuserfeedbackcore_export.h"
0011 #include "abstractdatasource.h"
0012 
0013 namespace KUserFeedback {
0014 
0015 class Provider;
0016 class ProviderPrivate;
0017 class StartCountSourcePrivate;
0018 
0019 /*! Data source reporting the total amount of applications starts.
0020  *
0021  *  The default telemetry mode for this source is Provider::BasicUsageStatistics.
0022  */
0023 class KUSERFEEDBACKCORE_EXPORT StartCountSource :  public AbstractDataSource
0024 {
0025     Q_DECLARE_TR_FUNCTIONS(KUserFeedback::StartCountSource)
0026 public:
0027     /*! Create a new start count data source. */
0028     StartCountSource();
0029 
0030     QString name() const override;
0031     QString description() const override;
0032 
0033     QVariant data() override;
0034 
0035 private:
0036     Q_DECLARE_PRIVATE(StartCountSource)
0037     friend class Provider;
0038     void setProvider(ProviderPrivate *p);
0039 };
0040 
0041 }
0042 
0043 #endif // KUSERFEEDBACK_STARTCOUNTSOURCE_H