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

0001 /*
0002     SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
0003 
0004     SPDX-License-Identifier: MIT
0005 */
0006 
0007 #ifndef KUSERFEEDBACK_PLATFORMINFOSOURCE_H
0008 #define KUSERFEEDBACK_PLATFORMINFOSOURCE_H
0009 
0010 #include "abstractdatasource.h"
0011 
0012 namespace KUserFeedback {
0013 
0014 /*! Reports information about the platform the application is running on.
0015  *  This includes two string data fields:
0016  *  - platform.os: the operating system name
0017  *  - platform.version: the operating system or distribution version.
0018  *
0019  *  The default telemetry mode for this source is Provider::BasicSystemInformation.
0020  */
0021 class KUSERFEEDBACKCORE_EXPORT PlatformInfoSource : public AbstractDataSource
0022 {
0023     Q_DECLARE_TR_FUNCTIONS(KUserFeedback::PlatformInfoSource)
0024 public:
0025     /*! Create a new platform information source. */
0026     PlatformInfoSource();
0027 
0028     QString name() const override;
0029     QString description() const override;
0030 
0031     QVariant data() override;
0032 };
0033 
0034 }
0035 
0036 #endif // KUSERFEEDBACK_PLATFORMINFOSOURCE_H