aboutsummaryrefslogtreecommitdiffstats
path: root/homescreen/src/main.cpp
diff options
context:
space:
mode:
authorzheng_wenlong <wenlong_zheng@nexty-ele.com>2019-06-27 14:18:47 +0900
committerzheng_wenlong <wenlong_zheng@nexty-ele.com>2019-06-27 14:18:47 +0900
commit7607dc1bb93a4df66f1416c1a1a662840fc02e5e (patch)
tree316afc2d131eb05d40f763b639a0368e88202b9a /homescreen/src/main.cpp
parentc8193621f75bcf66720cd8bccedd55a00d4e0e24 (diff)
change for Vui icon display error
Diffstat (limited to 'homescreen/src/main.cpp')
-rw-r--r--homescreen/src/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/homescreen/src/main.cpp b/homescreen/src/main.cpp
index c7c343e..edcc8a7 100644
--- a/homescreen/src/main.cpp
+++ b/homescreen/src/main.cpp
@@ -33,6 +33,7 @@
#include "mastervolume.h"
#include "homescreenhandler.h"
#include "homescreenvoice.h"
+#include "homescreenconnect.h"
#include "toucharea.h"
#include "shortcutappmodel.h"
#include "hmi-debug.h"
@@ -102,6 +103,7 @@ int main(int argc, char *argv[])
HomescreenHandler* homescreenHandler = new HomescreenHandler();
ShortcutAppModel* shortcutAppModel = new ShortcutAppModel();
HomescreenVoice* homescreenVoice = new HomescreenVoice();
+ HomescreenConnect* homescreenConnect = new HomescreenConnect();
if(layoutHandler->init(port,token) != 0){
exit(EXIT_FAILURE);
@@ -126,6 +128,7 @@ int main(int argc, char *argv[])
TouchArea* touchArea = new TouchArea();
homescreenHandler->init(port, token.toStdString().c_str(), layoutHandler, graphic_role);
homescreenVoice->init(port, token.toStdString().c_str());
+ homescreenConnect->init(port, token.toStdString().c_str());
// mail.qml loading
QQmlApplicationEngine engine;
@@ -133,6 +136,7 @@ int main(int argc, char *argv[])
engine.rootContext()->setContextProperty("layoutHandler", layoutHandler);
engine.rootContext()->setContextProperty("homescreenHandler", homescreenHandler);
engine.rootContext()->setContextProperty("homescreenVoice", homescreenVoice);
+ engine.rootContext()->setContextProperty("homescreenConnect", homescreenConnect);
engine.rootContext()->setContextProperty("touchArea", touchArea);
engine.rootContext()->setContextProperty("shortcutAppModel", shortcutAppModel);
engine.rootContext()->setContextProperty("launcher", launcher);
@@ -188,6 +192,7 @@ int main(int argc, char *argv[])
QObject::connect(homescreenHandler, SIGNAL(shortcutChanged(QString, QString, QString)), shortcutAppModel, SLOT(changeShortcut(QString, QString, QString)));
QObject::connect(shortcutAppModel, SIGNAL(shortcutUpdated(QString, struct json_object*)), homescreenHandler, SLOT(updateShortcut(QString, struct json_object*)));
+ QObject::connect(window, SIGNAL(frameSwapped()), layoutHandler, SLOT(slotActivateSurface()));
return a.exec();
}