main/main.cpp
changeset 49 f291796e213d
parent 48 d0b4e67b3a60
child 58 383b67fbdb11
equal deleted inserted replaced
48:d0b4e67b3a60 49:f291796e213d
    25 #include <xqserviceutil.h>
    25 #include <xqserviceutil.h>
    26 
    26 
    27 #include "glxstatemanager.h"
    27 #include "glxstatemanager.h"
    28 #include "glxaiwservicehandler.h"
    28 #include "glxaiwservicehandler.h"
    29 #include "glxapplication.h"
    29 #include "glxapplication.h"
    30 
    30 #include "glxlocalisationstrings.h"
       
    31 #include "hbsplashscreen.h"
    31 #include "OstTraceDefinitions.h"
    32 #include "OstTraceDefinitions.h"
    32 #ifdef OST_TRACE_COMPILER_IN_USE
    33 #ifdef OST_TRACE_COMPILER_IN_USE
    33 #include "mainTraces.h"
    34 #include "mainTraces.h"
    34 #endif
    35 #endif
    35 
    36 
    40     
    41     
    41     QTime localTime = QTime::currentTime();
    42     QTime localTime = QTime::currentTime();
    42     OstTraceExt3( TRACE_NORMAL, DUP1__MAIN, "::main Time at Launch HHMMSS =%d::%d::%d",
    43     OstTraceExt3( TRACE_NORMAL, DUP1__MAIN, "::main Time at Launch HHMMSS =%d::%d::%d",
    43             localTime.hour(), localTime.minute(), localTime.second() );
    44             localTime.hour(), localTime.minute(), localTime.second() );
    44 
    45 
    45     GlxApplication app(argc, argv);	
    46     GlxApplication app(argc, argv, Hb::NoSplash);	
    46     bool loaded(false);	
    47     bool loaded(false);	
    47     QTranslator translator;
    48     QTranslator translator;
    48     QString path = "Z:/resource/qt/translations/";
    49     QString path = "Z:/resource/qt/translations/";
    49     
    50     
    50     loaded = translator.load("photos_" + QLocale::system().name(), path);
    51     loaded = translator.load("photos_" + QLocale::system().name(), path);
    56     GlxAiwServiceHandler* mainWindow = NULL;
    57     GlxAiwServiceHandler* mainWindow = NULL;
    57 
    58 
    58     OstTraceEventStart0( EVENT_DUP1__MAIN_START, "launch" );
    59     OstTraceEventStart0( EVENT_DUP1__MAIN_START, "launch" );
    59 
    60 
    60     if(!XQServiceUtil::isService()){
    61     if(!XQServiceUtil::isService()){
       
    62         HbSplashScreen::start();
    61         stateMgr = new GlxStateManager();
    63         stateMgr = new GlxStateManager();
    62         app.setApplicationName("Photos");          
    64         app.setApplicationName(GLX_TITLE);          
    63         stateMgr->launchApplication();  
    65         stateMgr->launchApplication();  
    64     }
    66     }
    65     else {
    67     else {
    66         mainWindow = new GlxAiwServiceHandler();
    68         mainWindow = new GlxAiwServiceHandler();
    67         mainWindow->show();
    69         mainWindow->show();