satengine/SatServer/Commands/PlayToneCmd/src/CPlayToneHandler.cpp
branchRCL_3
changeset 19 7d48bed6ce0c
parent 12 71268bfa7aea
child 20 987c9837762f
equal deleted inserted replaced
18:594d59766373 19:7d48bed6ce0c
    67 void CPlayToneHandler::ClientResponse()
    67 void CPlayToneHandler::ClientResponse()
    68     {
    68     {
    69     LOG( SIMPLE, "PLAYTONE: CPlayToneHandler::ClientResponse calling" )
    69     LOG( SIMPLE, "PLAYTONE: CPlayToneHandler::ClientResponse calling" )
    70 
    70 
    71     iPlayToneRsp.SetPCmdNumber( iPlayToneData.PCmdNumber() );
    71     iPlayToneRsp.SetPCmdNumber( iPlayToneData.PCmdNumber() );
    72     
    72     if ( RSat::KPSessionTerminatedByUser == iPlayToneRsp.iGeneralResult )
    73     // A short-ish Play tone is aborted in GCf testing, that will be supported
    73         {
    74     // by using the Sat app Menu key to abort the play tone and to respond
    74         LOG( SIMPLE, "PLAYTONE: CPlayToneHandler::ClientResponse \
    75     // with KPSessionTerminatedByUser to Sat Server. That's why 
    75              KPSessionTerminatedByUser" )
    76     // MSatUtils::ESessionTerminatedByUser notify is NOT sent here because
    76         // Next SimSession end will close the ui session.
    77     // otherwise CSimSessionEndHandler::HandleCommand() closes Sat App always.
    77         iUtils->NotifyEvent( MSatUtils::ESessionTerminatedByUser );
    78     // (That should be done only if UI was not launched by user.)
    78         }
    79     LOG2( SIMPLE, "PLAYTONE: CPlayToneHandler::ClientResponse result=%d",
    79         
    80         iPlayToneRsp.iGeneralResult )
       
    81     
       
    82     // If command had icon data and was done succesfully, report that icon
    80     // If command had icon data and was done succesfully, report that icon
    83     // was not shown
    81     // was not shown
    84     // To be removed when icons are allowed in this command
    82     // To be removed when icons are allowed in this command
    85     if ( ( RSat::KSuccess == iPlayToneRsp.iGeneralResult ) &&
    83     if ( ( RSat::KSuccess == iPlayToneRsp.iGeneralResult ) &&
    86         iIconCommand )
    84         iIconCommand )