phonebookui/phonebookapp/src/main.cpp
changeset 24 0ba2181d7c28
child 40 b46a585f6909
equal deleted inserted replaced
0:e686773b3f54 24:0ba2181d7c28
       
     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 
       
    18 #include <hbapplication.h>
       
    19 #include <QTranslator>
       
    20 #include "cntmainwindow.h"
       
    21 #include "cntappservicehandler.h"
       
    22 #include "qtpbkglobal.h"
       
    23 
       
    24 int main(int argc, char **argv)
       
    25 {
       
    26 
       
    27     HbApplication a( argc, argv );
       
    28 
       
    29     QTranslator translator;
       
    30     QString lang = QLocale::system().name();
       
    31     QString path = "z:/resource/qt/translations/";
       
    32     translator.load(path + "contacts_" + lang);
       
    33     a.installTranslator(&translator);
       
    34     
       
    35     CntAppServiceHandler serviceHandler;
       
    36     CntMainWindow mainWindow;
       
    37 
       
    38     mainWindow.show();
       
    39 
       
    40     return a.exec();
       
    41 }
       
    42