phoneapp/phoneuicontrol/src/cphoneaccessorybthandler.cpp
branchRCL_3
changeset 58 40a3f856b14d
parent 0 5f000ab63145
child 61 41a7f70b3818
equal deleted inserted replaced
57:94dc1107e8b2 58:40a3f856b14d
    20 #include    <featmgr.h>
    20 #include    <featmgr.h>
    21 #include    <StringLoader.h>
    21 #include    <StringLoader.h>
    22 #include    <btengdomainpskeys.h>
    22 #include    <btengdomainpskeys.h>
    23 #include    <btengdomaincrkeys.h>
    23 #include    <btengdomaincrkeys.h>
    24 #include    <mpeengineinfo.h>
    24 #include    <mpeengineinfo.h>
       
    25 #include    <AknNotifyStd.h>
    25 
    26 
    26 #include    "cphoneaccessorybthandler.h"
    27 #include    "cphoneaccessorybthandler.h"
    27 #include    "cphonecenrepproxy.h"
    28 #include    "cphonecenrepproxy.h"
    28 #include    "cphonemainresourceresolver.h"
    29 #include    "cphonemainresourceresolver.h"
    29 #include    "mphoneneclearedhandler.h"
    30 #include    "mphoneneclearedhandler.h"
    32 #include    "phoneconstants.h"
    33 #include    "phoneconstants.h"
    33 #include    "phonelogger.h"
    34 #include    "phonelogger.h"
    34 #include    "phoneui.pan"
    35 #include    "phoneui.pan"
    35 #include    "phonerssbase.h"
    36 #include    "phonerssbase.h"
    36 #include    "tphonecmdparamnote.h"
    37 #include    "tphonecmdparamnote.h"
       
    38 #include    "tphonecmdparamglobalnote.h"
       
    39 
    37 
    40 
    38 // CONSTANTS
    41 // CONSTANTS
    39 
    42 
    40 const TInt KPhoneBtAddressTextLength = 64;
    43 const TInt KPhoneBtAddressTextLength = 64;
    41 
    44 
   233 // Shows BT activated note.
   236 // Shows BT activated note.
   234 // -----------------------------------------------------------
   237 // -----------------------------------------------------------
   235 //
   238 //
   236 void CPhoneAccessoryBTHandler::ShowBTActivatedL()
   239 void CPhoneAccessoryBTHandler::ShowBTActivatedL()
   237     {
   240     {
   238     // Get localised text 
   241  
   239     HBufC* buf = StringLoader::LoadLC( 
   242     TPhoneCmdParamGlobalNote globalNoteParam;
   240             CPhoneMainResourceResolver::Instance()->
   243     globalNoteParam.SetType( EAknGlobalInformationNote );
   241             ResolveResourceID( EPhoneInfoBTAccActivated ) );
   244     globalNoteParam.SetTone( EAvkonSIDNoSound );
   242     
   245 
   243     TPhoneCmdParamNote noteParam;
   246     globalNoteParam.SetTextResourceId( 
   244     noteParam.SetType( EPhoneNoteConfirmation );
   247         CPhoneMainResourceResolver::Instance()->
   245     noteParam.SetText( *buf );
   248         ResolveResourceID( EPhoneInfoBTAccActivated ) );
   246 
   249 		
   247     // Display note
   250     // Display note
   248     iViewCommandHandle->ExecuteCommandL( EPhoneViewShowNote, &noteParam );
   251     iViewCommandHandle->ExecuteCommandL( 
   249     CleanupStack::PopAndDestroy( buf );
   252         EPhoneViewShowGlobalNote, &globalNoteParam );   
   250     }
   253     }
   251 
   254 
   252 // ---------------------------------------------------------
   255 // ---------------------------------------------------------
   253 // CPhoneAccessoryBTHandler::DoSetHandsfreeModeL
   256 // CPhoneAccessoryBTHandler::DoSetHandsfreeModeL
   254 // ---------------------------------------------------------
   257 // ---------------------------------------------------------