File indexing completed on 2025-03-09 04:58:34

0001 /*
0002     SPDX-FileCopyrightText: 2018 Friedrich W. H. Kossebau <kossebau@kde.org>
0003     SPDX-FileCopyrightText: 2022 Fushan Wen <qydwhotmail@gmail.com>
0004 
0005     SPDX-License-Identifier: GPL-2.0-or-later
0006 */
0007 
0008 #include <QQmlEngine>
0009 
0010 #include "../../calendarsystem.h"
0011 #include "configstorage.h"
0012 
0013 #include <QQmlExtensionPlugin>
0014 
0015 class AlternateCalendarConfigPlugin : public QQmlExtensionPlugin
0016 {
0017     Q_OBJECT
0018     Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
0019 
0020 public:
0021     void registerTypes(const char *uri) override
0022     {
0023         qmlRegisterType<ConfigStorage>(uri, 1, 0, "ConfigStorage");
0024         qmlRegisterUncreatableType<CalendarSystem>(uri, 1, 0, "CalendarSystem", QStringLiteral("Error: only enums"));
0025     }
0026 };
0027 
0028 #include "configplugin.moc"