equal
deleted
inserted
replaced
16 */ |
16 */ |
17 |
17 |
18 #include <QtGui> |
18 #include <QtGui> |
19 #include <hbapplication.h> |
19 #include <hbapplication.h> |
20 #include <hbtranslator.h> |
20 #include <hbtranslator.h> |
|
21 #include <xqserviceutil.h> |
|
22 #include <hbsplashscreen.h> |
21 |
23 |
22 #include "mpmainwindow.h" |
24 #include "mpmainwindow.h" |
23 #include "mptrace.h" |
25 #include "mptrace.h" |
24 |
26 |
25 /*! |
27 /*! |
50 int main(int argc, char *argv[]) |
52 int main(int argc, char *argv[]) |
51 { |
53 { |
52 TX_STATIC_ENTRY |
54 TX_STATIC_ENTRY |
53 |
55 |
54 // Initialization |
56 // Initialization |
55 HbApplication app(argc, argv); |
57 HbApplication app(argc, argv, Hb::NoSplash); |
|
58 if ( !XQServiceUtil::isService() ) { |
|
59 HbSplashScreen::start( ); |
|
60 } |
56 QVariantHash params = app.activateParams(); |
61 QVariantHash params = app.activateParams(); |
57 HbTranslator translator; |
62 HbTranslator translator; |
58 translator.loadCommon(); |
63 translator.loadCommon(); |
59 MpMainWindow::ActivityMode mode; |
64 MpMainWindow::ActivityMode mode; |
60 |
65 |
61 if ( !params.value( "activityname" ).toString().compare( "MusicNowPlayingView" ) ) { |
66 if ( !params.value( "activityname" ).toString().compare( "MusicNowPlayingView" ) ) { |
62 if( params.contains( "shuffle" ) ) { |
67 mode = MpMainWindow::MusicNowPlayingView; |
63 mode = !params.value( "shuffle" ).toString().compare( "yes" ) ? MpMainWindow::MusicNowPlayingViewShuffleAll : MpMainWindow::MusicNowPlayingView; |
|
64 } |
|
65 else { |
|
66 mode = MpMainWindow::MusicNowPlayingView; |
|
67 } |
|
68 } |
68 } |
69 else { |
69 else { |
70 mode = MpMainWindow::MusicMainView; |
70 mode = MpMainWindow::MusicMainView; |
71 } |
71 } |
72 |
72 |