equal
deleted
inserted
replaced
18 |
18 |
19 // INCLUDE FILES |
19 // INCLUDE FILES |
20 #include <featmgr.h> |
20 #include <featmgr.h> |
21 #include <accfwnoteuinotifier.rsg> |
21 #include <accfwnoteuinotifier.rsg> |
22 #include <data_caging_path_literals.hrh> |
22 #include <data_caging_path_literals.hrh> |
23 #include <secondarydisplay/secondarydisplayaccfwapi.h> |
23 #include <SecondaryDisplay/SecondaryDisplayAccFwAPI.h> |
24 #include <bautils.h> |
24 #include <bautils.h> |
25 #include <hbdevicemessageboxsymbian.h> |
25 #include <hbdevicemessageboxsymbian.h> |
26 #include "AccFwUiNoteNotifier.h" |
26 #include "AccFwUiNoteNotifier.h" |
27 #include "acc_debug.h" |
27 #include "acc_debug.h" |
28 |
28 |
65 // Destructor |
65 // Destructor |
66 CAccFwUiNoteNotifier::~CAccFwUiNoteNotifier() |
66 CAccFwUiNoteNotifier::~CAccFwUiNoteNotifier() |
67 { |
67 { |
68 API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::~CAccFwUiNoteNotifier()" ); |
68 API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::~CAccFwUiNoteNotifier()" ); |
69 |
69 |
70 // delete iNote; |
|
71 delete iNoteText; |
70 delete iNoteText; |
72 CActive::Cancel(); |
71 CActive::Cancel(); |
73 |
72 |
74 API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccPolAccessoryPolicy::~CAccFwUiNoteNotifier() - return void" ); |
73 API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccPolAccessoryPolicy::~CAccFwUiNoteNotifier() - return void" ); |
75 } |
74 } |
225 } |
224 } |
226 |
225 |
227 iMessage = aMessage; |
226 iMessage = aMessage; |
228 if( showNote ) |
227 if( showNote ) |
229 { |
228 { |
230 if ( FeatureManager::FeatureSupported( KFeatureIdCoverDisplay ) ) |
229 iIsCancelled = EFalse; |
231 { |
|
232 API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::StartL() - Cover UI supported" ); |
|
233 iPublishNote = ETrue; |
|
234 } |
|
235 |
|
236 iIsCancelled = EFalse; |
|
237 SetActive(); |
230 SetActive(); |
238 TRequestStatus* status = &iStatus; |
231 TRequestStatus* status = &iStatus; |
239 User::RequestComplete( status, KErrNone ); // RunL() function will get called |
232 User::RequestComplete( status, KErrNone ); // RunL() function will get called |
240 } |
233 } |
241 else |
234 else |
313 { |
306 { |
314 API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::Cancel() - enter" ); |
307 API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::Cancel() - enter" ); |
315 |
308 |
316 iIsCancelled = ETrue; |
309 iIsCancelled = ETrue; |
317 |
310 |
318 // Cancel active object, delete dialog and free resources |
311 // Cancel active object and free resources |
319 if ( IsActive() ) |
312 if ( IsActive() ) |
320 { |
313 { |
321 CActive::Cancel(); |
314 CActive::Cancel(); |
322 } |
315 } |
323 delete iNoteText; |
316 delete iNoteText; |