logsui/logsapp/src/main.cpp
changeset 14 f27aebe284bb
parent 6 41c0a814d878
child 15 76d2cf7a585e
equal deleted inserted replaced
11:64a47b97e1e1 14:f27aebe284bb
    31 
    31 
    32 int main(int argc, char *argv[])
    32 int main(int argc, char *argv[])
    33 {
    33 {
    34     LOGS_QDEBUG( "logs [UI] -> main()" )
    34     LOGS_QDEBUG( "logs [UI] -> main()" )
    35   
    35   
    36     HbApplication app(argc, argv, Hb::NoSplash);
    36     HbApplication app(argc, argv);
    37     LogsMainWindow window;
    37     LogsMainWindow window;
    38     HbTranslator translator("dialer");
    38     HbTranslator translator("dialer");
    39     translator.loadCommon();
    39     translator.loadCommon();
    40 
    40 
    41     HbStyleLoader::registerFilePath(":/logslayouts");
    41     HbStyleLoader::registerFilePath(":/logslayouts");
    42     
    42     
    43     // Create service handler asap so that services are published fast.
    43     // Create service handler asap so that services are published fast.
    44     // Servicehandler cannot be created before HbApplication creation.
    44     // Servicehandler cannot be created before HbApplication creation.
    45     // This can cause problem of service request not coming through if
    45     // This can cause problem of service request not coming through if
    46     // HbApplication creation takes long time.
    46     // HbApplication creation takes long time.
    47     LogsServiceHandler service(window);
    47     LogsServiceHandler service;
    48     LogsServiceHandlerOld serviceOld(window);
    48     LogsServiceHandlerOld serviceOld;
    49     LogsViewManager viewManager(window, service, serviceOld);
    49     LogsViewManager viewManager(window, service, serviceOld);
    50     
    50     
    51     // Don't show window yet as app might be started at background
    51     // Don't show window yet as app might be started at background
    52     int err = app.exec();
    52     int err = app.exec();
    53     
    53