equal
deleted
inserted
replaced
135 // |
135 // |
136 // ---------------------------------------------------------------------------- |
136 // ---------------------------------------------------------------------------- |
137 // |
137 // |
138 CAiProfileEngine::~CAiProfileEngine() |
138 CAiProfileEngine::~CAiProfileEngine() |
139 { |
139 { |
|
140 delete iOfflineQueryDialog; |
|
141 iOfflineQueryDialog = NULL; |
|
142 |
140 iSSSettings.CancelAll( *this ); |
143 iSSSettings.CancelAll( *this ); |
141 iSSSettings.Close(); |
144 iSSSettings.Close(); |
142 |
145 |
143 delete iActiveProfileName; |
146 delete iActiveProfileName; |
144 delete iSwapProfileName; |
147 delete iSwapProfileName; |
274 |
277 |
275 result = EFalse; |
278 result = EFalse; |
276 } |
279 } |
277 else |
280 else |
278 { |
281 { |
279 CAknQueryDialog* dlg = CAknQueryDialog::NewL(); |
282 if ( iOfflineQueryDialog == NULL ) |
280 |
283 { |
281 result = dlg->ExecuteLD( R_AI_LEAVE_OFFLINE_MODE_QUERY ); |
284 iOfflineQueryDialog = CAknQueryDialog::NewL(); |
|
285 result = iOfflineQueryDialog->ExecuteLD( R_AI_LEAVE_OFFLINE_MODE_QUERY ); |
|
286 iOfflineQueryDialog = NULL; |
|
287 } |
282 } |
288 } |
283 |
289 |
284 return result; |
290 return result; |
285 } |
291 } |
286 |
292 |
663 // |
669 // |
664 // ---------------------------------------------------------------------------- |
670 // ---------------------------------------------------------------------------- |
665 // |
671 // |
666 void CAiProfileEngine::HandleProfileActivatedL( TInt /*aProfileId*/ ) |
672 void CAiProfileEngine::HandleProfileActivatedL( TInt /*aProfileId*/ ) |
667 { |
673 { |
|
674 // prevents duplicate offline notes on the screen. |
|
675 if ( iOfflineQueryDialog ) |
|
676 { |
|
677 delete iOfflineQueryDialog; |
|
678 iOfflineQueryDialog = NULL; |
|
679 } |
|
680 |
668 DetermineTimedAndSilentStatesL(); |
681 DetermineTimedAndSilentStatesL(); |
669 |
682 |
670 NotifyContentUpdate(); |
683 NotifyContentUpdate(); |
671 } |
684 } |
672 |
685 |