controlpanelui/src/tonefetcher/src/main.cpp
changeset 31 e79ce701c376
parent 25 19394c261aa5
child 43 aae8b749572d
equal deleted inserted replaced
25:19394c261aa5 31:e79ce701c376
    23 
    23 
    24 int main(int argc, char *argv[])
    24 int main(int argc, char *argv[])
    25 {
    25 {
    26     HbApplication a(argc, argv);
    26     HbApplication a(argc, argv);
    27     
    27     
    28     
    28 #ifdef ENABLE_TONEFETCHER_LOG
    29     Logger::instance(TONEFETCHER_LOGGER_NAME)->configure(
    29     Logger::instance(TONEFETCHER_LOGGER_NAME)->configure(
    30             TF_LOGGER_CONFIG_PATH,QSettings::IniFormat);
    30             TF_LOGGER_CONFIG_PATH,QSettings::IniFormat);
    31 
    31 #endif
    32     TF_LOG("Entering tonefetcher.exe...");
    32     TF_LOG("Entering tonefetcher.exe...");
    33     ToneFetcherMainWindow w;   
    33     ToneFetcherMainWindow w;   
    34     w.show();
    34     w.show();
    35     return a.exec();
    35     int ret = a.exec();
       
    36     TF_LOG("Leaving tonefetcher.exe...");
       
    37 #ifdef ENABLE_TONEFETCHER_LOG
       
    38     Logger::closeAll();
       
    39 #endif
       
    40     return ret;
    36 }
    41 }