satui/satapp/src/main.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 23 Jun 2010 18:49:32 +0300
changeset 31 a2467631ae02
parent 15 d7fc66ccd6fb
child 33 8d5d7fcf9b59
permissions -rw-r--r--
Revision: 201023 Kit: 2010125

/*
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
*
*
*/

#include <QApplication>
#include <QTranslator>
#include <hbapplication.h>
#include <hbmainwindow.h>

#include "satappmainhandler.h"
#include "tflogger.h"

int main(int argc, char *argv[])
{
    TFLOGSTRING("SATAPP: main")

    HbApplication app(argc, argv);
    TFLOGSTRING("SATAPP: main app created")
    
    QTranslator translator;
    bool ok = translator.load(":/translations/satapp_en");
    TFLOGSTRING2("SATUI: main, translation %d (1=OK, 0=fail)", ok )
    app.installTranslator(&translator);

    HbMainWindow window;
    TFLOGSTRING("SATAPP: main window created")

    SatAppMainHandler *mainHandler = new SatAppMainHandler(window);
        
    window.show();
    TFLOGSTRING("SATAPP: main view showed")

    int result = app.exec();
    TFLOGSTRING2("SATAPP: main exit %d", result)

    delete mainHandler;
    return result;
}

//End of file