188 |
188 |
189 QString heading; |
189 QString heading; |
190 if (aTitleText.isEmpty()) { |
190 if (aTitleText.isEmpty()) { |
191 if (ESatDigitOnly == aCharacterSet) { |
191 if (ESatDigitOnly == aCharacterSet) { |
192 TFLOGSTRING("SATAPP:SatAppCommandHandler::getInkey: ESatDigitOnly") |
192 TFLOGSTRING("SATAPP:SatAppCommandHandler::getInkey: ESatDigitOnly") |
193 heading = tr("Enternumber (1 digit 0-9) "); |
193 heading = hbTrId("txt_sat_getinkey_nbr"); |
194 } else { |
194 } else { |
195 // ESatCharSmsDefaultAlphabet or ESatCharUcs2Alphabet |
195 // ESatCharSmsDefaultAlphabet or ESatCharUcs2Alphabet |
196 TFLOGSTRING("SatAppCommandHandler::getInkey others") |
196 TFLOGSTRING("SatAppCommandHandler::getInkey others") |
197 heading = tr("Enter character "); |
197 heading = hbTrId("txt_sat_getinkey_char"); |
198 } |
198 } |
199 } else { |
199 } else { |
200 heading = aTitleText; |
200 heading = aTitleText; |
201 TFLOGSTRING("SatAppCommandHandler::getInkey: Using aTitleText") |
201 TFLOGSTRING("SatAppCommandHandler::getInkey: Using aTitleText") |
202 } |
202 } |
203 //Duration will be implemented in GetInkey proactive command |
203 //Duration will be implemented in GetInkey proactive command |
204 TSatAppUserResponse rsp = EUserNoResponse; |
204 TSatAppUserResponse rsp = EUserNoResponse; |
205 rsp = mUi.showGetInkeyQuery(heading, aInputText, aCharacterSet, aDuration); |
205 rsp = mUi.showGetInkeyQuery(heading, aInputText, aCharacterSet, aDuration); |
206 |
206 |
207 if (aDuration) { |
207 if (aDuration) { |
208 aDuration = time.elapsed() / 100; |
208 aDuration = time.elapsed() / KSymbianTimeConvertQtTime; |
209 TFLOGSTRING2("SATAPP: SatAppCommandHandler::getInkey\ |
209 TFLOGSTRING2("SATAPP: SatAppCommandHandler::getInkey\ |
210 return for server aDuration: %d", aDuration) |
210 return for server aDuration: %d", aDuration) |
211 } |
211 } |
212 // User press OK key |
212 // User press OK key |
213 if (EUserPrimaryResponse == rsp) { |
213 if (EUserPrimaryResponse == rsp) { |
307 QString heading; |
307 QString heading; |
308 |
308 |
309 if (aTitleText.isEmpty()) { |
309 if (aTitleText.isEmpty()) { |
310 if (ESatDigitOnly == aCharacterSet) { |
310 if (ESatDigitOnly == aCharacterSet) { |
311 TFLOGSTRING("SATAPP::getInput ESatDigitOnly") |
311 TFLOGSTRING("SATAPP::getInput ESatDigitOnly") |
312 heading = tr("Enter:\n(1 digit 0-9)"); |
312 heading = hbTrId("txt_sat_getinput_nbr"); |
313 } else { |
313 } else { |
314 // ESatCharSmsDefaultAlphabet or ESatCharUcs2Alphabet |
314 // ESatCharSmsDefaultAlphabet or ESatCharUcs2Alphabet |
315 TFLOGSTRING("SatAppCommandHandler::getInput ESatCharSmsDefaultAlphabet \ |
315 TFLOGSTRING("SatAppCommandHandler::getInput ESatCharSmsDefaultAlphabet \ |
316 or ESatCharUcs2Alphabet") |
316 or ESatCharUcs2Alphabet") |
317 heading = tr("Enter:"); |
317 heading = hbTrId("txt_sat_getinput_char"); |
318 } |
318 } |
319 } else { |
319 } else { |
320 heading.append(aTitleText); |
320 heading.append(aTitleText); |
321 } |
321 } |
322 |
322 |
363 } |
363 } |
364 TFLOGSTRING("SATAPP: SatAppCommandHandler::getInput exit") |
364 TFLOGSTRING("SATAPP: SatAppCommandHandler::getInput exit") |
365 } |
365 } |
366 |
366 |
367 // ---------------------------------------------------------------------------- |
367 // ---------------------------------------------------------------------------- |
|
368 // SatAppCommandHandler::callControl |
|
369 // (other items were commented in a header). |
|
370 // ---------------------------------------------------------------------------- |
|
371 // |
|
372 void SatAppCommandHandler::callControl( |
|
373 const QString &aText, |
|
374 const TSatAlphaIdStatus /*aAlphaIdStatus*/) |
|
375 { |
|
376 TFLOGSTRING("SATAPP: SatAppCommandHandler::showCallControlNote call") |
|
377 //if (ESatAlphaIdNotNull == aAlphaIdStatus) { |
|
378 //TODO The note will be disabled by the phone UI when the call is |
|
379 // in connecting status. But call control case is an exception, So we |
|
380 // use RAknKeyLock to enable soft notifications. |
|
381 mUi.showCallControlNote(aText); |
|
382 TFLOGSTRING("SATAPP: SatAppCommandHandler::showCallControlNote exit") |
|
383 } |
|
384 |
|
385 // ---------------------------------------------------------------------------- |
|
386 // SatAppCommandHandler::moSmControl |
|
387 // (other items were commented in a header). |
|
388 // ---------------------------------------------------------------------------- |
|
389 // |
|
390 void SatAppCommandHandler::moSmControl( |
|
391 const QString &aText, |
|
392 const TSatAlphaIdStatus aAlphaIdStatus) |
|
393 { |
|
394 TFLOGSTRING("SATAPP: SatAppCommandHandler::moSmControl call") |
|
395 if (ESatAlphaIdNotNull == aAlphaIdStatus) { |
|
396 mUi.showMoSmControlNote(aText); |
|
397 } else { |
|
398 mUi.showSatInfoNote(aText); |
|
399 } |
|
400 TFLOGSTRING("SATAPP: SatAppCommandHandler::moSmControl exit") |
|
401 } |
|
402 |
|
403 // ---------------------------------------------------------------------------- |
368 // SatAppCommandHandler::confirmSend |
404 // SatAppCommandHandler::confirmSend |
369 // (other items were commented in a header). |
405 // (other items were commented in a header). |
370 // ---------------------------------------------------------------------------- |
406 // ---------------------------------------------------------------------------- |
371 // |
407 // |
372 void SatAppCommandHandler::confirmSend( |
408 void SatAppCommandHandler::confirmSend( |
379 aRes = ESatNoResponseFromUser; |
415 aRes = ESatNoResponseFromUser; |
380 QString title; |
416 QString title; |
381 switch (aType) { |
417 switch (aType) { |
382 case ESatUiConfirmSendSms: |
418 case ESatUiConfirmSendSms: |
383 { |
419 { |
384 title.append(tr("Allow SIM card to send message?")); |
420 title.append(hbTrId("txt_sat_sim_notification_sendsms")); |
|
421 TFLOGSTRING( "SATAPP: SatAppCommandHandler::confirmSend sms" ) |
|
422 } |
385 break; |
423 break; |
386 } |
|
387 case ESatUiConfirmSendSs: |
424 case ESatUiConfirmSendSs: |
388 case ESatUiConfirmSendUssd: //the same string for SS and USSD |
425 case ESatUiConfirmSendUssd: //the same string for SS and USSD |
389 //title.append(tr("xxxxx")); |
426 { |
|
427 title.append(hbTrId("txt_sat_sim_notification_sendss_ussd")); |
|
428 TFLOGSTRING( "SATAPP: SatAppCommandHandler::confirmSend ussd or ss" ) |
|
429 } |
390 break; |
430 break; |
391 default: |
431 default: |
392 aRes = ESatFailure; |
432 aRes = ESatFailure; |
393 TFLOGSTRING( "SATAPP: SatAppCommandHandler::confirmSend type unsupport" ) |
433 TFLOGSTRING( "SATAPP: SatAppCommandHandler::confirmSend type unsupport" ) |
394 break; |
434 break; |
452 bool &aActionAccepted//, |
492 bool &aActionAccepted//, |
453 //const CFbsBitmap* aIconBitmap, |
493 //const CFbsBitmap* aIconBitmap, |
454 //const TBool aSelfExplanatory |
494 //const TBool aSelfExplanatory |
455 ) |
495 ) |
456 { |
496 { |
457 TFLOGSTRING("SatAppCommandHandler::showSetUpCallConfirm") |
497 TFLOGSTRING("SATAPP: SatAppCommandHandler::showSetUpCallConfirm call") |
458 mUi.showConfirmSetUpCallQuery(aText, aSimAppName, aActionAccepted); |
498 mUi.showConfirmSetUpCallQuery(aText, aSimAppName, aActionAccepted); |
459 TFLOGSTRING("SatAppCommandHandler::showSetUpCallConfirm exit") |
499 TFLOGSTRING("SATAPP: SatAppCommandHandler::showSetUpCallConfirm exit") |
460 } |
500 } |
461 |
501 |
|
502 // ---------------------------------------------------------------------------- |
|
503 // SatAppCommandHandler::showSsWaitNote |
|
504 // (other items were commented in a header). |
|
505 // Displays a wait note to indicate SS sending. |
|
506 // ---------------------------------------------------------------------------- |
|
507 // |
|
508 void SatAppCommandHandler::showSsWaitNote( |
|
509 const QString &aText, |
|
510 //const CFbsBitmap* aIconBitmapSendSM, |
|
511 const bool aSelfExplanatoryIcon) |
|
512 { |
|
513 TFLOGSTRING("SATAPP: SatAppCommandHandler::showSsWaitNote call") |
|
514 mUi.showSsWaitNote(aText, aSelfExplanatoryIcon); |
|
515 TFLOGSTRING("SATAPP: SatAppCommandHandler::showSsWaitNote exit") |
|
516 } |
|
517 |
|
518 // ---------------------------------------------------------------------------- |
|
519 // SatAppCommandHandler::showBIPWaitNote |
|
520 // (other items were commented in a header). |
|
521 // ---------------------------------------------------------------------------- |
|
522 // |
|
523 void SatAppCommandHandler::showBIPWaitNote(int aCommand, const QString &aText) |
|
524 { |
|
525 TFLOGSTRING("SATAPP: SatAppCommandHandler::showBIPWaitNote call") |
|
526 QString title = aText; |
|
527 if (ECloseChannelIdentifier == aCommand ){ |
|
528 if (aText.isEmpty()){ |
|
529 title= hbTrId("txt_sat_closechannel_wait_note"); |
|
530 } |
|
531 // No cancel key support, close channel |
|
532 mUi.showCloseChannelWaitNote(title); |
|
533 } else { |
|
534 // Cancel key support, Send Data, Receive Data |
|
535 mUi.showBIPWaitNote(title); |
|
536 } |
|
537 |
|
538 TFLOGSTRING("SATAPP: SatAppCommandHandler::showBIPWaitNote exit") |
|
539 } |
462 //End of file |
540 //End of file |