usbuis/usbsettingsapp/src/main.cpp
branchRCL_3
changeset 24 e02eb84a14d2
parent 23 25fce757be94
child 25 60826dff342d
equal deleted inserted replaced
23:25fce757be94 24:e02eb84a14d2
     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 <QTranslator>
       
    18 #include <QString>
       
    19 #include <QLocale>
       
    20 #include "usbsettingsapp.h"
       
    21 #include <hbapplication.h>
       
    22 
       
    23 int main(int argc, char *argv[])
       
    24 {
       
    25     HbApplication usbApp(argc, argv);
       
    26     QTranslator translator;
       
    27     
       
    28      // add translator for application library
       
    29     QString locale = QLocale::system().name();
       
    30     QString filename = QString("usbview_") + locale; 
       
    31     bool success = translator.load( filename, QString("/resource/qt/translations") ); 
       
    32     if (success)
       
    33         {
       
    34         usbApp.installTranslator(&translator);
       
    35         }
       
    36   
       
    37     USBSettingsApp settingsapp;
       
    38     settingsapp.show();
       
    39 
       
    40     return usbApp.exec();
       
    41     
       
    42 }