#include #include #include #include "StatusQ/clipboardutils.h" #include "StatusQ/concatmodel.h" #include "StatusQ/constantrole.h" #include "StatusQ/fastexpressionfilter.h" #include "StatusQ/fastexpressionrole.h" #include "StatusQ/fastexpressionsorter.h" #include "StatusQ/formatteddoubleproperty.h" #include "StatusQ/functionaggregator.h" #include "StatusQ/genericvalidator.h" #include "StatusQ/groupingmodel.h" #include "StatusQ/leftjoinmodel.h" #include "StatusQ/modelcount.h" #include "StatusQ/modelentry.h" #include "StatusQ/modelutilsinternal.h" #include "StatusQ/movablemodel.h" #include "StatusQ/networkchecker.h" #include "StatusQ/objectproxymodel.h" #include "StatusQ/permissionutilsinternal.h" #include "StatusQ/rolesrenamingmodel.h" #include "StatusQ/rxvalidator.h" #include "StatusQ/snapshotobject.h" #include "StatusQ/statusemojimodel.h" #include "StatusQ/statussyntaxhighlighter.h" #include "StatusQ/statuswindow.h" #include "StatusQ/stringutilsinternal.h" #include "StatusQ/sumaggregator.h" #include "StatusQ/systemutilsinternal.h" #include "StatusQ/undefinedfilter.h" #include "StatusQ/urlutils.h" #include "StatusQ/writableproxymodel.h" #include "wallet/managetokenscontroller.h" #include "wallet/managetokensmodel.h" class StatusQPlugin : public QQmlExtensionPlugin { Q_OBJECT Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid) public: void registerTypes(const char* uri) override { Q_ASSERT(uri == QLatin1String("StatusQ")); qmlRegisterType("StatusQ", 0, 1, "StatusWindow"); qmlRegisterType("StatusQ", 0, 1, "StatusSyntaxHighlighter"); qmlRegisterType("StatusQ", 0, 1, "RXValidator"); qmlRegisterUncreatableType( "StatusQ", 0, 1, "Validator", "This is abstract type, cannot be created directly."); qmlRegisterType("StatusQ", 0, 1, "GenericValidator"); qmlRegisterType("StatusQ.Models", 0, 1, "ManageTokensController"); qmlRegisterType("StatusQ.Models", 0, 1, "ManageTokensModel"); qmlRegisterType("StatusQ", 0, 1, "GroupingModel"); qmlRegisterType("StatusQ", 0, 1, "SourceModel"); qmlRegisterType("StatusQ", 0, 1, "ConcatModel"); qmlRegisterType("StatusQ", 0, 1, "MovableModel"); qmlRegisterType("StatusQ", 0, 1, "NetworkChecker"); qmlRegisterType("StatusQ", 0, 1, "FastExpressionFilter"); qmlRegisterType("StatusQ", 0, 1, "FastExpressionRole"); qmlRegisterType("StatusQ", 0, 1, "FastExpressionSorter"); qmlRegisterType("StatusQ", 0, 1, "UndefinedFilter"); qmlRegisterType("StatusQ", 0, 1, "ConstantRole"); qmlRegisterType("StatusQ", 0, 1, "ObjectProxyModel"); qmlRegisterType("StatusQ", 0, 1, "LeftJoinModel"); qmlRegisterType("StatusQ", 0, 1, "RoleRename"); qmlRegisterType("StatusQ", 0, 1, "RolesRenamingModel"); qmlRegisterType("StatusQ", 0, 1, "StatusEmojiModel"); qmlRegisterType("StatusQ", 0, 1, "SumAggregator"); qmlRegisterType("StatusQ", 0, 1, "FunctionAggregator"); qmlRegisterType("StatusQ", 0, 1, "WritableProxyModel"); qmlRegisterType("StatusQ", 0, 1, "FormattedDoubleProperty"); qmlRegisterSingletonType("StatusQ", 0, 1, "ClipboardUtils", &ClipboardUtils::qmlInstance); qmlRegisterSingletonType("StatusQ", 0, 1, "UrlUtils", &UrlUtils::qmlInstance); qmlRegisterType("StatusQ", 0, 1, "ModelEntry"); qmlRegisterType("StatusQ", 0, 1, "SnapshotObject"); qmlRegisterUncreatableType("StatusQ", 0, 1, "ModelCount", "This is attached type, cannot be created directly."); // Workaround for https://bugreports.qt.io/browse/QTBUG-86428 qmlRegisterAnonymousType("StatusQ", 1); qmlRegisterSingletonType( "StatusQ.Internal", 0, 1, "ModelUtils", &ModelUtilsInternal::qmlInstance); qmlRegisterSingletonType( "StatusQ.Internal", 0, 1, "StringUtils", [](QQmlEngine* engine, QJSEngine*) { return new StringUtilsInternal(engine); }); qmlRegisterSingletonType( "StatusQ.Core", 0, 1, "SystemUtils", [](QQmlEngine*, QJSEngine*) { return new SystemUtilsInternal; }); qmlRegisterSingletonType( "StatusQ.Internal", 0, 1, "PermissionUtils", [](QQmlEngine*, QJSEngine*) { return new PermissionUtilsInternal; }); QZXing::registerQMLTypes(); qqsfpm::registerTypes(); } }; #include "plugin.moc"