equal
deleted
inserted
replaced
24 #include <QPointer> |
24 #include <QPointer> |
25 #include <HbSplashScreen> |
25 #include <HbSplashScreen> |
26 |
26 |
27 #include "msgmainwindow.h" |
27 #include "msgmainwindow.h" |
28 #include "msgactivityhandler.h" |
28 #include "msgactivityhandler.h" |
|
29 #include "msgapplication.h" |
29 |
30 |
30 //Localised constants |
31 //Localised constants |
31 #define LOC_TITLE hbTrId("txt_messaging_title_messaging") |
32 #define LOC_TITLE hbTrId("txt_messaging_title_messaging") |
32 |
33 |
33 const QString debugFileName("c:/art2_app_log.txt"); |
34 const QString debugFileName("c:/art2_app_log.txt"); |
94 { |
95 { |
95 HbSplashScreen::setScreenId("clv"); |
96 HbSplashScreen::setScreenId("clv"); |
96 } |
97 } |
97 |
98 |
98 // Application |
99 // Application |
99 HbApplication app(argc, argv); |
100 //MsgApplication class dervied from HbApplication is create in order to |
|
101 //emit applicationReady signal for Matti tool |
|
102 MsgApplication app(argc, argv); |
|
103 |
100 |
104 |
101 //TODO: Uncomment the lines when actual translation files are available in sdk and remove loading locally. |
105 //TODO: Uncomment the lines when actual translation files are available in sdk and remove loading locally. |
102 QString locale = QLocale::system().name(); |
106 QString locale = QLocale::system().name(); |
103 QString path = "z:/resource/qt/translations/"; |
107 QString path = "z:/resource/qt/translations/"; |
104 QTranslator translator; |
108 QTranslator translator; |
138 // clear the old activities |
142 // clear the old activities |
139 activityHandler->clearActivities(); |
143 activityHandler->clearActivities(); |
140 |
144 |
141 // Main window |
145 // Main window |
142 QPointer<MsgMainWindow> mainWindow = new MsgMainWindow(serviceRequest,activityMsgId); |
146 QPointer<MsgMainWindow> mainWindow = new MsgMainWindow(serviceRequest,activityMsgId); |
|
147 app.initViewReady(); |
143 // Set the main window pointer to activity handler. |
148 // Set the main window pointer to activity handler. |
144 activityHandler->setMainWindow(mainWindow); |
149 activityHandler->setMainWindow(mainWindow); |
145 mainWindow->show(); |
150 mainWindow->show(); |
146 |
151 |
147 // Event loop |
152 // Event loop |