diff -r 94dc1107e8b2 -r 40a3f856b14d phoneapp/phoneuicontrol/src/cphoneaccessorybthandler.cpp --- a/phoneapp/phoneuicontrol/src/cphoneaccessorybthandler.cpp Thu Jul 15 18:38:16 2010 +0300 +++ b/phoneapp/phoneuicontrol/src/cphoneaccessorybthandler.cpp Thu Aug 19 09:54:27 2010 +0300 @@ -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 @@ -235,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 ); } // ---------------------------------------------------------