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 "qmldatasources.h"
0008 
0009 #include <KUserFeedback/ApplicationVersionSource>
0010 #include <KUserFeedback/CompilerInfoSource>
0011 #include <KUserFeedback/CpuInfoSource>
0012 #include <KUserFeedback/LocaleInfoSource>
0013 #include <KUserFeedback/OpenGLInfoSource>
0014 #include <KUserFeedback/PlatformInfoSource>
0015 #include <KUserFeedback/QPAInfoSource>
0016 #include <KUserFeedback/QtVersionSource>
0017 #include <KUserFeedback/ScreenInfoSource>
0018 #include <KUserFeedback/StartCountSource>
0019 #include <KUserFeedback/UsageTimeSource>
0020 
0021 using namespace KUserFeedback;
0022 
0023 #define MAKE_BASIC_QML_WRAPPER(x) Qml ## x::Qml ## x(QObject *parent) : QmlAbstractDataSource(new x, parent) {}
0024 
0025 MAKE_BASIC_QML_WRAPPER(ApplicationVersionSource)
0026 MAKE_BASIC_QML_WRAPPER(CompilerInfoSource)
0027 MAKE_BASIC_QML_WRAPPER(CpuInfoSource)
0028 MAKE_BASIC_QML_WRAPPER(LocaleInfoSource)
0029 MAKE_BASIC_QML_WRAPPER(OpenGLInfoSource)
0030 MAKE_BASIC_QML_WRAPPER(PlatformInfoSource)
0031 MAKE_BASIC_QML_WRAPPER(QPAInfoSource)
0032 MAKE_BASIC_QML_WRAPPER(QtVersionSource)
0033 MAKE_BASIC_QML_WRAPPER(ScreenInfoSource)
0034 MAKE_BASIC_QML_WRAPPER(StartCountSource)
0035 MAKE_BASIC_QML_WRAPPER(UsageTimeSource)
0036 
0037 #undef MAKE_DEFAULT_SOURCE
0038 
0039 #include "moc_qmldatasources.cpp"