From 74703d12ef6f72a057f11957181b6cf6f4730e2d Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 24 Apr 2017 15:34:31 +0200 Subject: Added the Fabric as an in application message bus --- framework/src/frameworkplugin.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'framework/src/frameworkplugin.cpp') diff --git a/framework/src/frameworkplugin.cpp b/framework/src/frameworkplugin.cpp index f491bae7..4c17242f 100644 --- a/framework/src/frameworkplugin.cpp +++ b/framework/src/frameworkplugin.cpp @@ -40,9 +40,17 @@ #include "actions/context.h" #include "actions/actionhandler.h" #include "actions/actionresult.h" +#include "fabric.h" #include +static QObject *example_qobject_singletontype_provider(QQmlEngine *engine, QJSEngine *scriptEngine) +{ + Q_UNUSED(engine) + Q_UNUSED(scriptEngine) + return new Kube::Fabric::Fabric; +} + void FrameworkPlugin::registerTypes (const char *uri) { qmlRegisterType(uri, 1, 0, "FolderListModel"); @@ -69,4 +77,7 @@ void FrameworkPlugin::registerTypes (const char *uri) qmlRegisterType(uri, 1, 0, "Action"); qmlRegisterType(uri, 1, 0, "ActionHandler"); qmlRegisterType(uri, 1, 0, "ActionResult"); + + qmlRegisterType(uri, 1, 0, "Listener"); + qmlRegisterSingletonType(uri, 1, 0, "Fabric", example_qobject_singletontype_provider); } -- cgit v1.2.3