satui/satapp/src/main.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 03 May 2010 13:01:45 +0300
changeset 15 d7fc66ccd6fb
parent 12 ae8abd0db65c
child 33 8d5d7fcf9b59
permissions -rw-r--r--
Revision: 201015 Kit: 201018

/*
* 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