equal
deleted
inserted
replaced
185 CVRRecViewModel* iViewModel = NULL; |
185 CVRRecViewModel* iViewModel = NULL; |
186 //iAudioRecorder->Close(); |
186 //iAudioRecorder->Close(); |
187 iViewModel = dynamic_cast <CVRRecViewModel*>(iAutoStopObserver); |
187 iViewModel = dynamic_cast <CVRRecViewModel*>(iAutoStopObserver); |
188 if(iViewModel != NULL) |
188 if(iViewModel != NULL) |
189 { |
189 { |
190 iViewModel->HandleCommandL(EEikCmdExit); |
190 TRAP_IGNORE( iViewModel->HandleCommandL(EEikCmdExit) ); |
191 } |
191 } |
192 else |
192 else |
193 { |
193 { |
194 CEikonEnv::Static()->EikAppUi()->HandleCommandL( EAknSoftkeyExit); |
194 TRAP_IGNORE( CEikonEnv::Static()->EikAppUi()->HandleCommandL( EAknSoftkeyExit) ); |
195 } |
195 } |
196 } |
196 } |
197 |
197 |
198 // Media server reports KErrDied if the playing was interrupted |
198 // Media server reports KErrDied if the playing was interrupted |
199 // by some other system sound triggered by for example incoming SMS |
199 // by some other system sound triggered by for example incoming SMS |
932 |
932 |
933 // Error value ignored if PS key is not available |
933 // Error value ignored if PS key is not available |
934 iPropVRState.Set( KPSUidVoiceRecorder, KVoiceRecorderMode, EVRIdle ); |
934 iPropVRState.Set( KPSUidVoiceRecorder, KVoiceRecorderMode, EVRIdle ); |
935 // Used to check the state of a phone call if any |
935 // Used to check the state of a phone call if any |
936 |
936 |
937 if ( iCurrentCallHandler ) delete iCurrentCallHandler; |
937 if ( iCurrentCallHandler ) |
|
938 { |
|
939 delete iCurrentCallHandler; |
|
940 iCurrentCallHandler = NULL; |
|
941 } |
938 |
942 |
939 TRAP_IGNORE( iCurrentCallHandler = CVRSystemEventHandler::NewL() ); |
943 TRAP_IGNORE( iCurrentCallHandler = CVRSystemEventHandler::NewL() ); |
940 TInt currentState( iCurrentCallHandler->StateL( KPSUidCtsyCallInformation, KCTsyCallState ) ); |
944 TInt currentState( 0 ); |
|
945 TRAP_IGNORE( currentState = iCurrentCallHandler->StateL( KPSUidCtsyCallInformation, KCTsyCallState ) ); |
941 |
946 |
942 // Do not allow screen saver if there is an active phone call |
947 // Do not allow screen saver if there is an active phone call |
943 if(currentState == EPSCTsyCallStateRinging) |
948 if(currentState == EPSCTsyCallStateRinging) |
944 { |
949 { |
945 // Do not allow screen saver |
950 // Do not allow screen saver |