radioapp/radioapplication/src/main.cpp
branchGCC_SURGE
changeset 37 451b2e1545b2
parent 19 afea38384506
parent 28 075425b8d9a4
equal deleted inserted replaced
26:6bcf277166c1 37:451b2e1545b2
    20 
    20 
    21 // User includes
    21 // User includes
    22 #include "radioapplication.h"
    22 #include "radioapplication.h"
    23 #include "radiologger.h"
    23 #include "radiologger.h"
    24 
    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 
    25 
    32 /*!
    26 /*!
    33  * Runs the application
    27  * Runs the application
    34  */
    28  */
    35 int main( int argc, char* argv[] )
    29 int main( int argc, char* argv[] )
    38 
    32 
    39     LOG_TIMESTAMP( "Tesla started" );
    33     LOG_TIMESTAMP( "Tesla started" );
    40 
    34 
    41     RadioApplication app( argc, argv );
    35     RadioApplication app( argc, argv );
    42 
    36 
    43     HbTranslator translator( TRANSLATIONS_FOLDER, "fmradio" ); // TODO: Rename exe to fmradio.exe to get rid of this
    37     HbTranslator translator;
    44 
    38 
    45     const int returnValue = app.exec();
    39     const int returnValue = app.exec();
    46 
    40 
    47     UNINSTALL_MESSAGE_HANDLER // Uninstalls the file tracer
    41     UNINSTALL_MESSAGE_HANDLER // Uninstalls the file tracer
    48 
    42