phoneapp/phoneuicontrol/src/cphonebtaadisconnecthandler.cpp
branchRCL_3
changeset 61 41a7f70b3818
parent 14 24062c24fe38
child 62 5266b1f337bd
equal deleted inserted replaced
58:40a3f856b14d 61:41a7f70b3818
    95 //
    95 //
    96 void CPhoneBtaaDisconnectHandler::Cancel()
    96 void CPhoneBtaaDisconnectHandler::Cancel()
    97     {
    97     {
    98     __LOGMETHODSTARTEND(EPhoneControl, "CPhoneBtaaDisconnectHandler::Cancel()");
    98     __LOGMETHODSTARTEND(EPhoneControl, "CPhoneBtaaDisconnectHandler::Cancel()");
    99     TRAP_IGNORE( iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveQuery ) );
    99     TRAP_IGNORE( iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveQuery ) );
   100     if ( !iOldMuted && iStateMachine->PhoneEngineInfo()->AudioMute() &&
   100     DeleteAll();
   101     	ELaunchQuery == iState )
   101     if ( !iOldMuted && iStateMachine->PhoneEngineInfo()->AudioMute() )
   102         {
   102         {
   103         TRAP_IGNORE ( SetMuteL( EFalse ) );
   103         TRAP_IGNORE ( SetMuteL( EFalse ) );
   104         }
   104         }
   105 	DeleteAll();
       
   106     iOldMuted = EFalse;
   105     iOldMuted = EFalse;
   107     }
   106     }
   108 
   107 
   109 // -----------------------------------------------------------------------------
   108 // -----------------------------------------------------------------------------
   110 // CPhoneBtaaDisconnectHandler::LaunchQueryL
   109 // CPhoneBtaaDisconnectHandler::LaunchQueryL
   282 // -----------------------------------------------------------------------------
   281 // -----------------------------------------------------------------------------
   283 //
   282 //
   284 void CPhoneBtaaDisconnectHandler::ShowQueryL( TInt aResourceId )
   283 void CPhoneBtaaDisconnectHandler::ShowQueryL( TInt aResourceId )
   285     {
   284     {
   286     __LOGMETHODSTARTEND(EPhoneControl, "CPhoneBtaaDisconnectHandler::ShowQueryL( ) ");
   285     __LOGMETHODSTARTEND(EPhoneControl, "CPhoneBtaaDisconnectHandler::ShowQueryL( ) ");
   287 	//__ASSERT_DEBUG( aResourceId, Panic( EPhoneCtrlParameterNotInitialized ) );
   286     //__ASSERT_DEBUG( aResourceId, Panic( EPhoneCtrlParameterNotInitialized ) );
   288     TPhoneCmdParamQuery queryParam;
   287     TPhoneCmdParamQuery queryParam;
   289     queryParam.SetQueryType( EPhoneGlobalQueryDialog );
   288     queryParam.SetQueryType( EPhoneGlobalQueryDialog );
   290   
   289   
   291     HBufC* queryPrompt = StringLoader::LoadLC( 
   290     HBufC* queryPrompt = StringLoader::LoadLC( 
   292             CPhoneMainResourceResolver::Instance()->ResolveResourceID( 
   291             CPhoneMainResourceResolver::Instance()->ResolveResourceID(