clientprovisioning/cpqtsp/src/main.cpp
author hgs
Tue, 13 Jul 2010 03:48:30 +0530
changeset 45 0f9fc722d255
permissions -rw-r--r--
201021_01
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
45
0f9fc722d255 201021_01
hgs
parents:
diff changeset
     1
/*
0f9fc722d255 201021_01
hgs
parents:
diff changeset
     2
* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). 
0f9fc722d255 201021_01
hgs
parents:
diff changeset
     3
* All rights reserved.
0f9fc722d255 201021_01
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
0f9fc722d255 201021_01
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
0f9fc722d255 201021_01
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
0f9fc722d255 201021_01
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
0f9fc722d255 201021_01
hgs
parents:
diff changeset
     8
*
0f9fc722d255 201021_01
hgs
parents:
diff changeset
     9
* Initial Contributors:
0f9fc722d255 201021_01
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
0f9fc722d255 201021_01
hgs
parents:
diff changeset
    11
*
0f9fc722d255 201021_01
hgs
parents:
diff changeset
    12
* Contributors:
0f9fc722d255 201021_01
hgs
parents:
diff changeset
    13
*
0f9fc722d255 201021_01
hgs
parents:
diff changeset
    14
* Description: 
0f9fc722d255 201021_01
hgs
parents:
diff changeset
    15
*     Bio control for Provisioning documents.
0f9fc722d255 201021_01
hgs
parents:
diff changeset
    16
*
0f9fc722d255 201021_01
hgs
parents:
diff changeset
    17
*/
0f9fc722d255 201021_01
hgs
parents:
diff changeset
    18
0f9fc722d255 201021_01
hgs
parents:
diff changeset
    19
#include <hbapplication.h>
0f9fc722d255 201021_01
hgs
parents:
diff changeset
    20
#include <CpQtSpMainWindow.h>
0f9fc722d255 201021_01
hgs
parents:
diff changeset
    21
#include <QTranslator>
0f9fc722d255 201021_01
hgs
parents:
diff changeset
    22
#include <QString>
0f9fc722d255 201021_01
hgs
parents:
diff changeset
    23
#include <QLocale>
0f9fc722d255 201021_01
hgs
parents:
diff changeset
    24
0f9fc722d255 201021_01
hgs
parents:
diff changeset
    25
int main(int argc, char **argv)
0f9fc722d255 201021_01
hgs
parents:
diff changeset
    26
{ 
0f9fc722d255 201021_01
hgs
parents:
diff changeset
    27
    HbApplication a( argc, argv );    
0f9fc722d255 201021_01
hgs
parents:
diff changeset
    28
    
0f9fc722d255 201021_01
hgs
parents:
diff changeset
    29
    QTranslator *translator = new QTranslator();
0f9fc722d255 201021_01
hgs
parents:
diff changeset
    30
    QString lang = QLocale::system().name();
0f9fc722d255 201021_01
hgs
parents:
diff changeset
    31
    QString path = "Z:/resource/qt/translations/";
0f9fc722d255 201021_01
hgs
parents:
diff changeset
    32
    bool fine = translator->load("deviceupdates_en.qm", path);
0f9fc722d255 201021_01
hgs
parents:
diff changeset
    33
    if (fine)
0f9fc722d255 201021_01
hgs
parents:
diff changeset
    34
        qApp->installTranslator(translator);
0f9fc722d255 201021_01
hgs
parents:
diff changeset
    35
0f9fc722d255 201021_01
hgs
parents:
diff changeset
    36
    QTranslator *commontranslator = new QTranslator();
0f9fc722d255 201021_01
hgs
parents:
diff changeset
    37
    fine = commontranslator->load("common_" + lang, path);
0f9fc722d255 201021_01
hgs
parents:
diff changeset
    38
    if (fine)
0f9fc722d255 201021_01
hgs
parents:
diff changeset
    39
        qApp->installTranslator(commontranslator);
0f9fc722d255 201021_01
hgs
parents:
diff changeset
    40
    
0f9fc722d255 201021_01
hgs
parents:
diff changeset
    41
    CpQtSpMainWindow mainWindow;    
0f9fc722d255 201021_01
hgs
parents:
diff changeset
    42
    mainWindow.show();    
0f9fc722d255 201021_01
hgs
parents:
diff changeset
    43
    return a.exec();     
0f9fc722d255 201021_01
hgs
parents:
diff changeset
    44
}
0f9fc722d255 201021_01
hgs
parents:
diff changeset
    45