radioapp/radioapplication/src/main.cpp
changeset 23 a2b50a479edf
parent 19 afea38384506
child 24 6df133bd92e1
equal deleted inserted replaced
19:afea38384506 23:a2b50a479edf
     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 // System includes
       
    19 #include <HbTranslator>
       
    20 
       
    21 // User includes
       
    22 #include "radioapplication.h"
       
    23 #include "radiologger.h"
       
    24 
       
    25 // Constants
       
    26 #ifdef BUILD_WIN32
       
    27     const char* TRANSLATIONS_FOLDER = "";
       
    28 #else
       
    29     const char* TRANSLATIONS_FOLDER = "/resource/qt/translations/";
       
    30 #endif // BUILD_WIN32
       
    31 
       
    32 /*!
       
    33  * Runs the application
       
    34  */
       
    35 int main( int argc, char* argv[] )
       
    36 {
       
    37     INSTALL_MESSAGE_HANDLER // Installs the file tracer if enabled
       
    38 
       
    39     LOG_TIMESTAMP( "Tesla started" );
       
    40 
       
    41     RadioApplication app( argc, argv );
       
    42 
       
    43     HbTranslator translator( TRANSLATIONS_FOLDER, "fmradio" ); // TODO: Rename exe to fmradio.exe to get rid of this
       
    44 
       
    45     const int returnValue = app.exec();
       
    46 
       
    47     UNINSTALL_MESSAGE_HANDLER // Uninstalls the file tracer
       
    48 
       
    49     return returnValue;
       
    50 }