File indexing completed on 2024-12-15 03:45:05
0001 /* 0002 SPDX-FileCopyrightText: 2017 Volker Krause <vkrause@kde.org> 0003 0004 SPDX-License-Identifier: MIT 0005 */ 0006 0007 #include "qmlabstractdatasource.h" 0008 0009 #include <KUserFeedback/AbstractDataSource> 0010 0011 using namespace KUserFeedback; 0012 0013 QmlAbstractDataSource::QmlAbstractDataSource(AbstractDataSource *source, QObject* parent) 0014 : QObject(parent) 0015 , m_source(source) 0016 { 0017 } 0018 0019 QmlAbstractDataSource::~QmlAbstractDataSource() 0020 { 0021 } 0022 0023 Provider::TelemetryMode QmlAbstractDataSource::telemetryMode() const 0024 { 0025 return m_source->telemetryMode(); 0026 } 0027 0028 void QmlAbstractDataSource::setTelemetryMode(Provider::TelemetryMode mode) 0029 { 0030 if (m_source->telemetryMode() == mode) 0031 return; 0032 m_source->setTelemetryMode(mode); 0033 Q_EMIT telemetryModeChanged(); 0034 } 0035 0036 AbstractDataSource* QmlAbstractDataSource::source() const 0037 { 0038 return m_source; 0039 } 0040 0041 #include "moc_qmlabstractdatasource.cpp"