equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: Implementation of main.cpp |
14 * Description: Implementation of main.cpp |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 // Version : %version: 1 % |
18 // Version : %version: 3 % |
19 |
19 |
20 |
20 |
21 #include <QObject> |
21 #include <QObject> |
22 #include <QTranslator> |
22 #include <QTranslator> |
23 #include <QLocale> |
23 #include <QLocale> |
24 #include <hbapplication.h> |
24 #include <hbapplication.h> |
25 #include <hbmainwindow.h> |
25 #include <hbmainwindow.h> |
26 #include <xqserviceutil.h> |
26 #include <xqserviceutil.h> |
|
27 #include <hbactivitymanager.h> |
27 |
28 |
28 #include "videoplayerengine.h" |
29 #include "videoplayerengine.h" |
|
30 #include "videoactivitystate.h" |
29 |
31 |
30 int main(int argc, char *argv[]) |
32 int main(int argc, char *argv[]) |
31 { |
33 { |
32 HbApplication app(argc, argv); |
34 HbApplication app(argc, argv, Hb::SplashFixedVertical); |
33 |
35 |
34 // Load the translation file. |
36 // Load the translation file. |
35 QString lang = QLocale::system().name(); |
37 QString lang = QLocale::system().name(); |
36 |
38 |
37 QTranslator translator; |
39 QTranslator translator; |
66 bool isService = XQServiceUtil::isService(); |
68 bool isService = XQServiceUtil::isService(); |
67 |
69 |
68 if (!isService) |
70 if (!isService) |
69 { |
71 { |
70 app.setApplicationName(hbTrId("txt_videos_title_videos")); |
72 app.setApplicationName(hbTrId("txt_videos_title_videos")); |
|
73 |
|
74 HbActivityManager *actManager = app.activityManager(); |
|
75 // save activity data locally |
|
76 VideoActivityState::instance().setActivityData(actManager->activityData(ACTIVITY_VIDEOPLAYER_MAINVIEW)); |
|
77 // remove from activitymanager |
|
78 actManager->removeActivity(ACTIVITY_VIDEOPLAYER_MAINVIEW); |
71 } |
79 } |
72 |
80 |
73 HbMainWindow mainWindow( 0, Hb::WindowFlagTransparent ); |
81 HbMainWindow mainWindow( 0, Hb::WindowFlagTransparent ); |
74 mainWindow.setAttribute( Qt::WA_OpaquePaintEvent ); |
82 mainWindow.setAttribute( Qt::WA_OpaquePaintEvent ); |
75 |
83 |