phoneengine/networkhandlingstarter/src/main.cpp
changeset 27 2f8f8080a020
child 30 ebdbd102c78a
equal deleted inserted replaced
22:6bb1b21d2484 27:2f8f8080a020
       
     1 /*
       
     2  * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of "Eclipse Public License v1.0"
       
     6  * which accompanies this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description:  
       
    15  *
       
    16  */
       
    17 #include <QLocale>
       
    18 #include <QTranslator>
       
    19 #include <hbapplication.h>
       
    20 #include <hbmainwindow.h>
       
    21 #include <networkhandlingstarter.h>
       
    22 
       
    23 /*!
       
    24     main.
       
    25  */
       
    26 int main(int argc, char **argv)
       
    27 {
       
    28     HbApplication app(argc, argv);
       
    29     
       
    30     // Load telephone_cp translator
       
    31     QTranslator translator; 
       
    32     QString lang = QLocale::system().name();
       
    33     QString path = "z:/resource/qt/translations/";
       
    34     bool translatorLoaded = translator.load(path + "telephone_cp_" + lang);
       
    35     if (translatorLoaded) {
       
    36         app.installTranslator(&translator);
       
    37     }
       
    38     // Load common translator
       
    39     QTranslator commontranslator;
       
    40     translatorLoaded = commontranslator.load( path + "common_" + lang);
       
    41     if (translatorLoaded) {
       
    42         app.installTranslator(&commontranslator);
       
    43     }
       
    44     
       
    45     HbMainWindow mainWindow;
       
    46     NetworkHandlingStarter service;
       
    47     return app.exec();
       
    48 }
       
    49