logsui/logsapp/src/main.cpp
changeset 17 90fe74753f71
parent 15 76d2cf7a585e
child 18 acd4e87b24b4
equal deleted inserted replaced
15:76d2cf7a585e 17:90fe74753f71
    13 *
    13 *
    14 * Description:
    14 * Description:
    15 *
    15 *
    16 */
    16 */
    17 //USER
    17 //USER
       
    18 #include "logsapplication.h"
    18 #include "logsmainwindow.h"
    19 #include "logsmainwindow.h"
    19 #include "logsviewmanager.h"
    20 #include "logsviewmanager.h"
    20 #include "logsservicehandler.h"
    21 #include "logsservicehandler.h"
    21 #include "logsservicehandlerold.h"
    22 #include "logsservicehandlerold.h"
    22 #include "logslogger.h"
    23 #include "logslogger.h"
    37 
    38 
    38 int main(int argc, char *argv[])
    39 int main(int argc, char *argv[])
    39 {
    40 {
    40     LOGS_QDEBUG( "logs [UI] -> main()" )
    41     LOGS_QDEBUG( "logs [UI] -> main()" )
    41 
    42 
    42     HbApplication app(argc, argv);
    43     LogsApplication app(argc, argv);
    43 
    44 
    44 #ifdef LOGS_USE_QTRANSLATOR
    45 #ifdef LOGS_USE_QTRANSLATOR
    45     QString lang = QLocale::system().name();
    46     QString lang = QLocale::system().name();
    46     QTranslator trans;
    47     QTranslator trans;
    47     QString path = "z:/resource/qt/translations/";
    48     QString path = "z:/resource/qt/translations/";
    61     HbTranslator translator("dialer");
    62     HbTranslator translator("dialer");
    62     translator.loadCommon();
    63     translator.loadCommon();
    63 #endif
    64 #endif
    64     
    65     
    65     LogsMainWindow window;
    66     LogsMainWindow window;
       
    67     //Application ready signal is emitted after startup when UI is fully loaded and functional
       
    68     QObject::connect( &window, SIGNAL(viewReady()), &app, SLOT(testLogsHandleAppViewReady()) );    
    66     HbStyleLoader::registerFilePath(":/logslayouts");
    69     HbStyleLoader::registerFilePath(":/logslayouts");
    67     
    70     
    68     // Create service handler asap so that services are published fast.
    71     // Create service handler asap so that services are published fast.
    69     // Servicehandler cannot be created before HbApplication creation.
    72     // Servicehandler cannot be created before HbApplication creation.
    70     // This can cause problem of service request not coming through if
    73     // This can cause problem of service request not coming through if