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

0001 /*
0002     SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
0003 
0004     SPDX-License-Identifier: MIT
0005 */
0006 
0007 #ifndef KUSERFEEDBACK_APPLICATIONVERSIONSOURCE_H
0008 #define KUSERFEEDBACK_APPLICATIONVERSIONSOURCE_H
0009 
0010 #include "kuserfeedbackcore_export.h"
0011 #include "abstractdatasource.h"
0012 
0013 namespace KUserFeedback {
0014 
0015 /*! Data source for the application version.
0016  *  The application version is retrieved via QCoreApplication::applicationVersion.
0017  *
0018  *  The default telemetry mode for this source is Provider::BasicSystemInformation.
0019  */
0020 class KUSERFEEDBACKCORE_EXPORT ApplicationVersionSource : public AbstractDataSource
0021 {
0022     Q_DECLARE_TR_FUNCTIONS(KUserFeedback::ApplicationVersionSource)
0023 public:
0024     /*! Create a new application version source. */
0025     ApplicationVersionSource();
0026 
0027     QString name() const override;
0028     QString description() const override;
0029 
0030     QVariant data() override;
0031 };
0032 
0033 }
0034 
0035 #endif // KUSERFEEDBACK_APPLICATIONVERSIONSOURCE_H