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 #ifndef KUSERFEEDBACK_QMLDATASOURCES_H 0008 #define KUSERFEEDBACK_QMLDATASOURCES_H 0009 0010 #include "qmlabstractdatasource.h" 0011 0012 namespace KUserFeedback { 0013 0014 #define MAKE_BASIC_QML_WRAPPER(x) \ 0015 class Qml ## x : public QmlAbstractDataSource { \ 0016 Q_OBJECT \ 0017 public: \ 0018 explicit Qml ## x (QObject *parent = nullptr);\ 0019 }; 0020 0021 MAKE_BASIC_QML_WRAPPER(ApplicationVersionSource) 0022 MAKE_BASIC_QML_WRAPPER(CompilerInfoSource) 0023 MAKE_BASIC_QML_WRAPPER(CpuInfoSource) 0024 MAKE_BASIC_QML_WRAPPER(LocaleInfoSource) 0025 MAKE_BASIC_QML_WRAPPER(OpenGLInfoSource) 0026 MAKE_BASIC_QML_WRAPPER(PlatformInfoSource) 0027 MAKE_BASIC_QML_WRAPPER(QPAInfoSource) 0028 MAKE_BASIC_QML_WRAPPER(QtVersionSource) 0029 MAKE_BASIC_QML_WRAPPER(ScreenInfoSource) 0030 MAKE_BASIC_QML_WRAPPER(StartCountSource) 0031 MAKE_BASIC_QML_WRAPPER(UsageTimeSource) 0032 0033 #undef MAKE_BASIC_QML_WRAPPER 0034 } 0035 0036 #endif // KUSERFEEDBACK_QMLDATASOURCES_H