emailuis/nmailui/src/main.cpp
changeset 18 578830873419
child 20 ecc8def7944a
equal deleted inserted replaced
4:e7aa27f58ae1 18:578830873419
       
     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 
       
    19 #include "nmuiheaders.h"
       
    20 
       
    21 /*!
       
    22 	int main
       
    23 */
       
    24 int main(int argc, char *argv[])
       
    25 {
       
    26     HbApplication app(argc, argv);
       
    27  
       
    28     // Load the translation file.
       
    29     QTranslator translator;
       
    30 
       
    31 #ifdef Q_OS_SYMBIAN
       
    32     QString lang = QLocale::system().name();
       
    33     QString appName = "mail_";
       
    34     QString path = "Z:/resource/qt/translations/";
       
    35 #else
       
    36     QString lang;
       
    37     QString appName = "nmailui";
       
    38     QString path = ":/translations";
       
    39 #endif
       
    40     translator.load(appName + lang, path);
       
    41     app.installTranslator(&translator);
       
    42 
       
    43     app.setApplicationName(hbTrId("txt_mail_title_mail"));
       
    44 
       
    45     NmApplication *nmApplication = new NmApplication(&app);
       
    46 
       
    47     int ret = app.exec();
       
    48     delete nmApplication;
       
    49     return ret;
       
    50 }