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> |
|
26 |
25 |
27 #include "cphoneaccessorybthandler.h" |
26 #include "cphoneaccessorybthandler.h" |
28 #include "cphonecenrepproxy.h" |
27 #include "cphonecenrepproxy.h" |
29 #include "cphonemainresourceresolver.h" |
28 #include "cphonemainresourceresolver.h" |
30 #include "mphoneneclearedhandler.h" |
29 #include "mphoneneclearedhandler.h" |
33 #include "phoneconstants.h" |
32 #include "phoneconstants.h" |
34 #include "phonelogger.h" |
33 #include "phonelogger.h" |
35 #include "phoneui.pan" |
34 #include "phoneui.pan" |
36 #include "phonerssbase.h" |
35 #include "phonerssbase.h" |
37 #include "tphonecmdparamnote.h" |
36 #include "tphonecmdparamnote.h" |
38 #include "tphonecmdparamglobalnote.h" |
|
39 |
|
40 |
37 |
41 // CONSTANTS |
38 // CONSTANTS |
42 |
39 |
43 const TInt KPhoneBtAddressTextLength = 64; |
40 const TInt KPhoneBtAddressTextLength = 64; |
44 |
41 |
236 // Shows BT activated note. |
233 // Shows BT activated note. |
237 // ----------------------------------------------------------- |
234 // ----------------------------------------------------------- |
238 // |
235 // |
239 void CPhoneAccessoryBTHandler::ShowBTActivatedL() |
236 void CPhoneAccessoryBTHandler::ShowBTActivatedL() |
240 { |
237 { |
241 |
238 // Get localised text |
242 TPhoneCmdParamGlobalNote globalNoteParam; |
239 HBufC* buf = StringLoader::LoadLC( |
243 globalNoteParam.SetType( EAknGlobalInformationNote ); |
240 CPhoneMainResourceResolver::Instance()-> |
244 globalNoteParam.SetTone( EAvkonSIDNoSound ); |
241 ResolveResourceID( EPhoneInfoBTAccActivated ) ); |
245 |
242 |
246 globalNoteParam.SetTextResourceId( |
243 TPhoneCmdParamNote noteParam; |
247 CPhoneMainResourceResolver::Instance()-> |
244 noteParam.SetType( EPhoneNoteConfirmation ); |
248 ResolveResourceID( EPhoneInfoBTAccActivated ) ); |
245 noteParam.SetText( *buf ); |
249 |
246 |
250 // Display note |
247 // Display note |
251 iViewCommandHandle->ExecuteCommandL( |
248 iViewCommandHandle->ExecuteCommandL( EPhoneViewShowNote, ¬eParam ); |
252 EPhoneViewShowGlobalNote, &globalNoteParam ); |
249 CleanupStack::PopAndDestroy( buf ); |
253 } |
250 } |
254 |
251 |
255 // --------------------------------------------------------- |
252 // --------------------------------------------------------- |
256 // CPhoneAccessoryBTHandler::DoSetHandsfreeModeL |
253 // CPhoneAccessoryBTHandler::DoSetHandsfreeModeL |
257 // --------------------------------------------------------- |
254 // --------------------------------------------------------- |