KUserFeedback

qpainfosource.cpp
1/*
2 SPDX-FileCopyrightText: 2017 Volker Krause <vkrause@kde.org>
3
4 SPDX-License-Identifier: MIT
5*/
6
7#include "qpainfosource.h"
8
9#include <QGuiApplication>
10#include <QVariant>
11
12using namespace KUserFeedback;
13
14QPAInfoSource::QPAInfoSource() :
15 AbstractDataSource(QStringLiteral("qpa"), Provider::BasicSystemInformation)
16{
17}
18
20{
21 return tr("The Qt platform abstraction plugin.");
22}
23
25{
26 QVariantMap m;
27 m.insert(QStringLiteral("name"), QGuiApplication::platformName());
28 return m;
29}
30
32{
33 return tr("QPA information");
34}
Base class for data sources for telemetry data.
The central object managing data sources and transmitting feedback to the server.
Definition provider.h:32
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-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:19:03 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.