KUserFeedback

platforminfosource.h
1/*
2 SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
3
4 SPDX-License-Identifier: MIT
5*/
6
7#ifndef KUSERFEEDBACK_PLATFORMINFOSOURCE_H
8#define KUSERFEEDBACK_PLATFORMINFOSOURCE_H
9
10#include "abstractdatasource.h"
11
12namespace KUserFeedback {
13
14/*! Reports information about the platform the application is running on.
15 * This includes two string data fields:
16 * - platform.os: the operating system name
17 * - platform.version: the operating system or distribution version.
18 *
19 * The default telemetry mode for this source is Provider::BasicSystemInformation.
20 */
21class KUSERFEEDBACKCORE_EXPORT PlatformInfoSource : public AbstractDataSource
22{
23 Q_DECLARE_TR_FUNCTIONS(KUserFeedback::PlatformInfoSource)
24public:
25 /*! Create a new platform information source. */
27
28 QString name() const override;
29 QString description() const override;
30
31 QVariant data() override;
32};
33
34}
35
36#endif // KUSERFEEDBACK_PLATFORMINFOSOURCE_H
AbstractDataSource(const QString &id, Provider::TelemetryMode mode=Provider::DetailedUsageStatistics)
Create a new data source named name.
Reports information about the platform the application is running on.
QVariant data() override
Returns the data gathered by this source.
PlatformInfoSource()
Create a new platform information 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 Feb 21 2025 11:49:11 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.