diff -r 41a7f70b3818 -r 5266b1f337bd phoneapp/phoneuicontrol/src/cphoneaccessorybthandler.cpp --- a/phoneapp/phoneuicontrol/src/cphoneaccessorybthandler.cpp Tue Aug 31 15:14:29 2010 +0300 +++ b/phoneapp/phoneuicontrol/src/cphoneaccessorybthandler.cpp Wed Sep 01 12:30:10 2010 +0100 @@ -22,6 +22,7 @@ #include #include #include +#include #include "cphoneaccessorybthandler.h" #include "cphonecenrepproxy.h" @@ -34,6 +35,8 @@ #include "phoneui.pan" #include "phonerssbase.h" #include "tphonecmdparamnote.h" +#include "tphonecmdparamglobalnote.h" + // CONSTANTS @@ -76,6 +79,31 @@ { } +// ----------------------------------------------------------- +// CPhoneAccessoryBTHandler::SetBTDebugModeL +// Handling for message EPEMessageBTDebugMode. +// Sets BT debug mode PS key on. +// ----------------------------------------------------------- +// +void CPhoneAccessoryBTHandler::SetBTDebugModeL() + { + __LOGMETHODSTARTEND(EPhoneControl, "CPhoneAccessoryBTHandler::SetBTDebugModeL( ) "); + if ( FeatureManager::FeatureSupported( KFeatureIdOnScreenDialer ) ) + { + iViewCommandHandle->ExecuteCommandL( EPhoneViewClearNumberEntryContent ); + } + else + { + // Remove number entry from screen + iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveNumberEntry ); + } + iNEClearedHandler->HandleNumberEntryClearedL(); + if ( RProperty::Set( KPSUidBluetoothDutMode, KBTSspDebugmode, EBTSspDebugModeOn )) + { + __PHONELOG( EOnlyFatal, EPhoneControl, "CPhoneAccessoryBTHandler::SetBTDebugModeL PS key not defined" ); + } + } + // --------------------------------------------------------- // CPhoneAccessoryBTHandler::SetBTHandsfreeModeL // --------------------------------------------------------- @@ -210,18 +238,18 @@ // void CPhoneAccessoryBTHandler::ShowBTActivatedL() { - // Get localised text - HBufC* buf = StringLoader::LoadLC( - CPhoneMainResourceResolver::Instance()-> - ResolveResourceID( EPhoneInfoBTAccActivated ) ); - - TPhoneCmdParamNote noteParam; - noteParam.SetType( EPhoneNoteConfirmation ); - noteParam.SetText( *buf ); + + TPhoneCmdParamGlobalNote globalNoteParam; + globalNoteParam.SetType( EAknGlobalInformationNote ); + globalNoteParam.SetTone( EAvkonSIDNoSound ); + globalNoteParam.SetTextResourceId( + CPhoneMainResourceResolver::Instance()-> + ResolveResourceID( EPhoneInfoBTAccActivated ) ); + // Display note - iViewCommandHandle->ExecuteCommandL( EPhoneViewShowNote, ¬eParam ); - CleanupStack::PopAndDestroy( buf ); + iViewCommandHandle->ExecuteCommandL( + EPhoneViewShowGlobalNote, &globalNoteParam ); } // ---------------------------------------------------------