radioapp/radioapplication/src/main.cpp
author Pat Downey <patd@symbian.org>
Tue, 18 May 2010 11:27:22 +0100
changeset 21 6bac020dcc51
parent 19 afea38384506
child 37 451b2e1545b2
permissions -rw-r--r--
Merge docml changeset with recent Nokia delivery.

/*
* Copyright (c) 2009 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:
*
*/

// System includes
#include <HbTranslator>

// User includes
#include "radioapplication.h"
#include "radiologger.h"

// Constants
#ifdef BUILD_WIN32
    const char* TRANSLATIONS_FOLDER = "";
#else
    const char* TRANSLATIONS_FOLDER = "/resource/qt/translations/";
#endif // BUILD_WIN32

/*!
 * Runs the application
 */
int main( int argc, char* argv[] )
{
    INSTALL_MESSAGE_HANDLER // Installs the file tracer if enabled

    LOG_TIMESTAMP( "Tesla started" );

    RadioApplication app( argc, argv );

    HbTranslator translator( TRANSLATIONS_FOLDER, "fmradio" ); // TODO: Rename exe to fmradio.exe to get rid of this

    const int returnValue = app.exec();

    UNINSTALL_MESSAGE_HANDLER // Uninstalls the file tracer

    return returnValue;
}