equal
deleted
inserted
replaced
189 // Displays information note to the user telling that the device will restart |
189 // Displays information note to the user telling that the device will restart |
190 HBufC* prompt = iEnv->AllocReadResourceLC( R_DEVICE_RESTART ); |
190 HBufC* prompt = iEnv->AllocReadResourceLC( R_DEVICE_RESTART ); |
191 CAknInformationNote* note = new ( ELeave ) CAknInformationNote( ETrue ); |
191 CAknInformationNote* note = new ( ELeave ) CAknInformationNote( ETrue ); |
192 note->ExecuteLD( *prompt ); |
192 note->ExecuteLD( *prompt ); |
193 CleanupStack::PopAndDestroy( prompt ); |
193 CleanupStack::PopAndDestroy( prompt ); |
194 |
194 |
|
195 #ifndef __WINS__ //Do not allow RFS in emulator |
195 if (aType == ERfsNormal ) startersession.Reset( RStarterSession::ENormalRFSReset ); |
196 if (aType == ERfsNormal ) startersession.Reset( RStarterSession::ENormalRFSReset ); |
196 else if (aType == ERfsDeep ) startersession.Reset( RStarterSession::EDeepRFSReset ); |
197 else if (aType == ERfsDeep ) startersession.Reset( RStarterSession::EDeepRFSReset ); |
197 else startersession.Reset( RStarterSession::EUnknownReset ); |
198 else startersession.Reset( RStarterSession::EUnknownReset ); |
|
199 #endif // __WINS__ |
198 startersession.Close(); |
200 startersession.Close(); |
199 } |
201 } |
200 } |
202 } |
201 // Inform SIP and PDP that the RFS has completed its operation. |
203 // Inform SIP and PDP that the RFS has completed its operation. |
202 // The method is used for two purposes |
204 // The method is used for two purposes |
421 gprsState = KErrUnknown; |
423 gprsState = KErrUnknown; |
422 wcdmaState = KErrUnknown; |
424 wcdmaState = KErrUnknown; |
423 } |
425 } |
424 } |
426 } |
425 |
427 |
426 #ifndef __WINS__ //Do not allow RFS in emulator |
|
427 if (( callState != KErrUnknown && |
428 if (( callState != KErrUnknown && |
428 callState != EPSCTsyCallStateNone ) || |
429 callState != EPSCTsyCallStateNone ) || |
429 ( gprsState != KErrUnknown && |
430 ( gprsState != KErrUnknown && |
430 gprsState != EPSGprsUnattached && |
431 gprsState != EPSGprsUnattached && |
431 gprsState != EPSGprsAttach && |
432 gprsState != EPSGprsAttach && |
435 wcdmaState != EPSWcdmaAttach && |
436 wcdmaState != EPSWcdmaAttach && |
436 wcdmaState != EPSWcdmaSuspend) || |
437 wcdmaState != EPSWcdmaSuspend) || |
437 ( btState ) || |
438 ( btState ) || |
438 ( irdaState == TIrdaStatusCodes::EIrConnected ) || |
439 ( irdaState == TIrdaStatusCodes::EIrConnected ) || |
439 ( wlanState == EPSWlanIndicatorActive || wlanState == EPSWlanIndicatorActiveSecure )) |
440 ( wlanState == EPSWlanIndicatorActive || wlanState == EPSWlanIndicatorActiveSecure )) |
440 #endif //__WINS__ |
|
441 { |
441 { |
442 HBufC* prompt = iEnv->AllocReadResourceLC( R_ACTIVE_CALLS ); |
442 HBufC* prompt = iEnv->AllocReadResourceLC( R_ACTIVE_CALLS ); |
443 |
443 |
444 CAknInformationNote* note = new ( ELeave ) CAknInformationNote( ETrue ); |
444 CAknInformationNote* note = new ( ELeave ) CAknInformationNote( ETrue ); |
445 |
445 |