File indexing completed on 2025-01-26 05:09:00
0001 /* 0002 SPDX-FileCopyrightText: 2009 Alan Alpert <alan.alpert@nokia.com> 0003 SPDX-FileCopyrightText: 2010 Ménard Alexis <menard@kde.org> 0004 SPDX-FileCopyrightText: 2010 Marco Martin <mart@kde.org> 0005 SPDX-FileCopyrightText: 2013 Sebastian Kügler <sebas@kde.org> 0006 0007 SPDX-License-Identifier: LGPL-2.0-or-later 0008 */ 0009 0010 #include "plasma5supportplugin.h" 0011 0012 #include <QQmlContext> 0013 0014 #include "datamodel.h" 0015 #include "datasource.h" 0016 #include "serviceoperationstatus.h" 0017 0018 #include <plasma5support/servicejob.h> 0019 0020 // #include "dataenginebindings_p.h" 0021 0022 #include <QDebug> 0023 #include <QWindow> 0024 0025 void Plasma5SupportPlugin::registerTypes(const char *uri) 0026 { 0027 Q_ASSERT(uri == QByteArray("org.kde.plasma.plasma5support")); 0028 0029 qmlRegisterUncreatableType<Plasma5Support::Types>(uri, 2, 0, "Types", {}); 0030 0031 qmlRegisterType<Plasma5Support::DataSource>(uri, 2, 0, "DataSource"); 0032 qmlRegisterType<Plasma5Support::DataModel>(uri, 2, 0, "DataModel"); 0033 qmlRegisterType<Plasma5Support::SortFilterModel, 0>(uri, 2, 0, "SortFilterModel"); 0034 qmlRegisterType<Plasma5Support::SortFilterModel, 1>(uri, 2, 1, "SortFilterModel"); 0035 0036 qmlRegisterType<ServiceOperationStatus>(uri, 2, 0, "ServiceOperationStatus"); 0037 qmlRegisterAnonymousType<QAbstractItemModel>(uri, 1); 0038 0039 qmlRegisterAnonymousType<QQmlPropertyMap>(uri, 1); 0040 } 0041 0042 #include "moc_plasma5supportplugin.cpp"