radioapp/radiouiengine/src/radiouiengine.cpp
changeset 51 bbebb0235466
parent 36 ba22309243a1
child 57 21be958eb3ce
equal deleted inserted replaced
47:74b7c6e79031 51:bbebb0235466
   110 void RadioUiEngine::launchRadioServer()
   110 void RadioUiEngine::launchRadioServer()
   111 {
   111 {
   112     QStringList args;
   112     QStringList args;
   113     args << RADIO_RANGE_USEURO; //TODO: Determine current region
   113     args << RADIO_RANGE_USEURO; //TODO: Determine current region
   114     args << QString::number( lastTunedFrequency( 0 ) );
   114     args << QString::number( lastTunedFrequency( 0 ) );
   115     args << QString::number( lastVolume() );
   115     args << QString::number( lastVolume() * VOLUME_STEP_DIVIDER );
   116 
   116 
   117     QProcess serverProcess;
   117     QProcess serverProcess;
   118     bool success = serverProcess.startDetached( RADIO_SERVER_NAME, args );
   118     bool success = serverProcess.startDetached( RADIO_SERVER_NAME, args );
   119     LOG_ASSERT( success, LOG( "Failed to start radio server!" ) );
   119     LOG_ASSERT( success, LOG( "Failed to start radio server!" ) );
   120 }
   120 }