KUserFeedback

qmlabstractdatasource.h
1/*
2 SPDX-FileCopyrightText: 2017 Volker Krause <vkrause@kde.org>
3
4 SPDX-License-Identifier: MIT
5*/
6
7#ifndef KUSERFEEDBACK_QMLABSTRACTDATASOURCE_H
8#define KUSERFEEDBACK_QMLABSTRACTDATASOURCE_H
9
10#include <provider.h>
11
12namespace KUserFeedback {
13
14class AbstractDataSource;
15
16class QmlAbstractDataSource : public QObject
17{
20 WRITE setTelemetryMode NOTIFY telemetryModeChanged)
21public:
22 explicit QmlAbstractDataSource(AbstractDataSource *source, QObject *parent);
23 ~QmlAbstractDataSource() override;
24
25 Provider::TelemetryMode telemetryMode() const;
26 void setTelemetryMode(Provider::TelemetryMode mode);
27
28 AbstractDataSource* source() const;
29
31 void telemetryModeChanged();
32
33private:
34 AbstractDataSource *m_source;
35};
36
37}
38
39#endif // KUSERFEEDBACK_QMLABSTRACTDATASOURCE_H
TelemetryMode
Telemetry collection modes.
Definition provider.h:102
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 Fri Nov 29 2024 11:48:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.