KUserFeedback

qmlpropertysource.h
1/*
2 SPDX-FileCopyrightText: 2017 Aleix Pol Gonzalez <aleixpol@kde.org>
3
4 SPDX-License-Identifier: MIT
5*/
6
7#ifndef KUSERFEEDBACK_QMLPROPERTYSOURCE_H
8#define KUSERFEEDBACK_QMLPROPERTYSOURCE_H
9
10#include "qmlabstractdatasource.h"
11#include <QVariant>
12
13class CustomPropertySource;
14
15namespace KUserFeedback {
16
17/*! Data source reporting information provided by a QML application
18 */
19class QmlPropertySource : public QmlAbstractDataSource
20{
22 Q_PROPERTY(QString sourceId READ sourceId WRITE setSourceId NOTIFY idChanged)
23 Q_PROPERTY(QString name READ name WRITE setName NOTIFY nameChanged)
24 Q_PROPERTY(QString description READ description WRITE setDescription NOTIFY descriptionChanged)
25 Q_PROPERTY(QVariant data READ data WRITE setData NOTIFY dataChanged)
26public:
28
29 QString sourceId() const;
30 QString name() const;
31 QString description() const;
32 QVariant data() const;
33
34 void setSourceId(const QString &id);
35 void setName(const QString &name);
36 void setDescription(const QString &description);
37 void setData(const QVariant &data);
38
40 void idChanged(const QString &id);
41 void nameChanged(const QString &name);
42 void descriptionChanged(const QString &description);
43 void dataChanged(const QVariant &data);
44
45private:
46 CustomPropertySource* customSource();
47};
48}
49
50#endif // KUSERFEEDBACK_QTVERSIONSOURCE_H
Data source reporting information provided by a QML application.
Classes for integrating telemetry collection, survey targeting, and contribution encouragenemt and co...
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:57:44 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.