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 if ( RSat::KPSessionTerminatedByUser == iPlayToneRsp.iGeneralResult ) |
72 |
73 { |
73 // A short-ish Play tone is aborted in GCf testing, that will be supported |
74 LOG( SIMPLE, "PLAYTONE: CPlayToneHandler::ClientResponse \ |
74 // by using the Sat app Menu key to abort the play tone and to respond |
75 KPSessionTerminatedByUser" ) |
75 // with KPSessionTerminatedByUser to Sat Server. That's why |
76 // Next SimSession end will close the ui session. |
76 // MSatUtils::ESessionTerminatedByUser notify is NOT sent here because |
77 iUtils->NotifyEvent( MSatUtils::ESessionTerminatedByUser ); |
77 // otherwise CSimSessionEndHandler::HandleCommand() closes Sat App always. |
78 } |
78 // (That should be done only if UI was not launched by user.) |
79 |
79 LOG2( SIMPLE, "PLAYTONE: CPlayToneHandler::ClientResponse result=%d", |
|
80 iPlayToneRsp.iGeneralResult ) |
|
81 |
80 // If command had icon data and was done succesfully, report that icon |
82 // If command had icon data and was done succesfully, report that icon |
81 // was not shown |
83 // was not shown |
82 // To be removed when icons are allowed in this command |
84 // To be removed when icons are allowed in this command |
83 if ( ( RSat::KSuccess == iPlayToneRsp.iGeneralResult ) && |
85 if ( ( RSat::KSuccess == iPlayToneRsp.iGeneralResult ) && |
84 iIconCommand ) |
86 iIconCommand ) |