equal
deleted
inserted
replaced
33 #include "phoneui.pan" |
33 #include "phoneui.pan" |
34 #include "cphonekeyeventforwarder.h" |
34 #include "cphonekeyeventforwarder.h" |
35 #include "cphonecenrepproxy.h" |
35 #include "cphonecenrepproxy.h" |
36 #include "cphonemediatorfactory.h" |
36 #include "cphonemediatorfactory.h" |
37 #include "tphonecmdparamnumberentryobserver.h" |
37 #include "tphonecmdparamnumberentryobserver.h" |
|
38 #include <phoneappcommands.hrh> |
38 |
39 |
39 // ================= MEMBER FUNCTIONS ======================= |
40 // ================= MEMBER FUNCTIONS ======================= |
40 |
41 |
41 // ----------------------------------------------------------- |
42 // ----------------------------------------------------------- |
42 // CPhoneUIController::CPhoneUIController |
43 // CPhoneUIController::CPhoneUIController |
321 // |
322 // |
322 EXPORT_C TBool CPhoneUIController::HandleCommandL( TInt aCommand ) |
323 EXPORT_C TBool CPhoneUIController::HandleCommandL( TInt aCommand ) |
323 { |
324 { |
324 __ASSERT_DEBUG( iStateMachine->State(), Panic( EPhoneCtrlInvariant ) ); |
325 __ASSERT_DEBUG( iStateMachine->State(), Panic( EPhoneCtrlInvariant ) ); |
325 |
326 |
|
327 |
326 // Send key up message to engine so that we wouldn't accidentally play |
328 // Send key up message to engine so that we wouldn't accidentally play |
327 // any DTMF tone. |
329 // any DTMF tone. |
328 iStateMachine->SendPhoneEngineMessage( MPEPhoneModel::EPEMessageEndDTMF ); |
330 |
|
331 // DTMF tone is not ended if command is EPhoneDialerValidNumber or |
|
332 // EPhoneDialerInvalidNumber. These commands result from |
|
333 // user pressing numbers, and they must not interfere with tones. |
|
334 if ( ! ( aCommand == EPhoneDialerValidNumber || aCommand == EPhoneDialerInvalidNumber ) ) |
|
335 { |
|
336 iStateMachine->SendPhoneEngineMessage( MPEPhoneModel::EPEMessageEndDTMF ); |
|
337 } |
329 |
338 |
330 return iStateMachine->State()->HandleCommandL( aCommand ); |
339 return iStateMachine->State()->HandleCommandL( aCommand ); |
331 } |
340 } |
332 |
341 |
333 // --------------------------------------------------------- |
342 // --------------------------------------------------------- |