aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/alexainterface/AlexaInterface.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/alexainterface/AlexaInterface.h')
-rw-r--r--plugins/alexainterface/AlexaInterface.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/alexainterface/AlexaInterface.h b/plugins/alexainterface/AlexaInterface.h
index 46cb138..bcfa56e 100644
--- a/plugins/alexainterface/AlexaInterface.h
+++ b/plugins/alexainterface/AlexaInterface.h
@@ -61,6 +61,7 @@
#include <QObject>
#include <QUrl>
+#include <QQmlEngine>
#include "WeatherCard.h"
#include "InfoCard.h"
@@ -333,5 +334,14 @@ private:
#endif
};
+static QObject *alexaInterfaceSingletonProvider(QQmlEngine *engine, QJSEngine *scriptEngine)
+{
+ Q_UNUSED(engine)
+ Q_UNUSED(scriptEngine)
+
+ AlexaInterface *singletonObject = new AlexaInterface();
+ singletonObject->initAlexaQMLClient();
+ return singletonObject;
+}
#endif // ALEXA_INTERFACE_H_