KUserFeedback

applicationversionsource.cpp
1/*
2 SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
3
4 SPDX-License-Identifier: MIT
5*/
6
7#include "applicationversionsource.h"
8
9#include <QCoreApplication>
10#include <QVariant>
11
12using namespace KUserFeedback;
13
15 AbstractDataSource(QStringLiteral("applicationVersion"), Provider::BasicSystemInformation)
16{
17}
18
20{
21 return tr("The version of the application.");
22}
23
25{
27 return QVariant();
28
29 QVariantMap m;
30 m.insert(QStringLiteral("value"), QCoreApplication::applicationVersion());
31 return m;
32}
33
35{
36 return tr("Application version");
37}
Base class for data sources for telemetry data.
QString name() const override
Returns a short name of this data source.
QVariant data() override
Returns the data gathered by this source.
QString description() const override
Returns a human-readable, translated description of what this source provides.
ApplicationVersionSource()
Create a new application version source.
The central object managing data sources and transmitting feedback to the server.
Definition provider.h:32
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 Fri Dec 6 2024 12:12:29 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.