KUserFeedback

qmlplugin.cpp
1/*
2 SPDX-FileCopyrightText: 2017 Volker Krause <vkrause@kde.org>
3
4 SPDX-License-Identifier: MIT
5*/
6
7#include "qmlplugin.h"
8#include "qmldatasources.h"
9#include "qmlpropertysource.h"
10#include "qmlpropertyratiosource.h"
11#include "qmlproviderextension.h"
12
13#include <auditloguicontroller.h>
14#include <feedbackconfiguicontroller.h>
15#include <provider.h>
16#include <surveyinfo.h>
17
18#include <QQmlEngine>
19
20using namespace KUserFeedback;
21
22void QmlPlugin::registerTypes(const char* uri)
23{
24 qmlRegisterExtendedType<Provider, QmlProviderExtension>(uri, 1, 0, "Provider");
25
26 qmlRegisterUncreatableType<QmlAbstractDataSource>(uri, 1, 0, "AbstractDataSource", QStringLiteral("abstract base class"));
27 qmlRegisterType<QmlApplicationVersionSource>(uri, 1, 0, "ApplicationVersionSource");
28 qmlRegisterType<QmlCompilerInfoSource>(uri, 1, 0, "CompilerInfoSource");
29 qmlRegisterType<QmlCpuInfoSource>(uri, 1, 0, "CpuInfoSource");
30 qmlRegisterType<QmlLocaleInfoSource>(uri, 1, 0, "LocaleInfoSource");
31 qmlRegisterType<QmlOpenGLInfoSource>(uri, 1, 0, "OpenGLInfoSource");
32 qmlRegisterType<QmlPlatformInfoSource>(uri, 1, 0, "PlatformInfoSource");
33 qmlRegisterType<QmlQPAInfoSource>(uri, 1, 0, "QPAInfoSource");
34 qmlRegisterType<QmlQtVersionSource>(uri, 1, 0, "QtVersionSource");
35 qmlRegisterType<QmlScreenInfoSource>(uri, 1, 0, "ScreenInfoSource");
36 qmlRegisterType<QmlStartCountSource>(uri, 1, 0, "StartCountSource");
37 qmlRegisterType<QmlUsageTimeSource>(uri, 1, 0, "UsageTimeSource");
38 qmlRegisterType<QmlPropertySource>(uri, 1, 0, "PropertySource");
39 qmlRegisterType<QmlPropertyRatioSource>(uri, 1, 0, "PropertyRatioSource");
40
41 qmlRegisterType<AuditLogUiController>(uri, 1, 0, "AuditLogUiController");
42 qmlRegisterType<FeedbackConfigUiController>(uri, 1, 0, "FeedbackConfigUiController");
43
44 qRegisterMetaType<SurveyInfo>();
45}
46
47#include "moc_qmlplugin.cpp"
Classes for integrating telemetry collection, survey targeting, and contribution encouragenemt and co...
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.