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