equal
deleted
inserted
replaced
86 // Destructor |
86 // Destructor |
87 //----------------------------------------------------------------------------- |
87 //----------------------------------------------------------------------------- |
88 CGlxFetcherDialog::~CGlxFetcherDialog() |
88 CGlxFetcherDialog::~CGlxFetcherDialog() |
89 { |
89 { |
90 TRACER("CGlxFetcherDialog::~CGlxFetcherDialog"); |
90 TRACER("CGlxFetcherDialog::~CGlxFetcherDialog"); |
|
91 if(iMMCNotifier) |
|
92 { |
|
93 delete iMMCNotifier; |
|
94 iMMCNotifier = NULL; |
|
95 } |
91 if(iFetcherContainer) |
96 if(iFetcherContainer) |
92 { |
97 { |
93 // Restore the Toolbar as it was in the Calling application |
98 // Restore the Toolbar as it was in the Calling application |
94 if(iAvkonAppUi->CurrentFixedToolbar()) // there is Hardware Specific Output for Fixed ToolBar |
99 if(iAvkonAppUi->CurrentFixedToolbar()) // there is Hardware Specific Output for Fixed ToolBar |
95 { |
100 { |
121 } |
126 } |
122 // Get the Hitchcock environment. |
127 // Get the Hitchcock environment. |
123 iUiUtility = CGlxUiUtility::UtilityL(); |
128 iUiUtility = CGlxUiUtility::UtilityL(); |
124 iEnv = iUiUtility->Env(); |
129 iEnv = iUiUtility->Env(); |
125 iFetchUri = EFalse; |
130 iFetchUri = EFalse; |
|
131 iMMCNotifier = CGlxMMCNotifier::NewL(*this); |
126 } |
132 } |
127 |
133 |
128 //----------------------------------------------------------------------------- |
134 //----------------------------------------------------------------------------- |
129 // CGlxFetcherDialog::CreateCustomControlL |
135 // CGlxFetcherDialog::CreateCustomControlL |
130 //----------------------------------------------------------------------------- |
136 //----------------------------------------------------------------------------- |
447 void CGlxFetcherDialog::CallCancelFetcherL(TInt aCommandId) |
453 void CGlxFetcherDialog::CallCancelFetcherL(TInt aCommandId) |
448 { |
454 { |
449 TRACER("CGlxFetcherDialog::CallCancelFetcherL"); |
455 TRACER("CGlxFetcherDialog::CallCancelFetcherL"); |
450 TryExitL(aCommandId); |
456 TryExitL(aCommandId); |
451 } |
457 } |
|
458 |
|
459 //----------------------------------------------------------------------------- |
|
460 // CGlxFetcherDialog::HandleMMCRemovalL |
|
461 // This function will be called when MMC is removed |
|
462 // This will ensure exit of fetcher dialog. |
|
463 //----------------------------------------------------------------------------- |
|
464 void CGlxFetcherDialog::HandleMMCRemovalL() |
|
465 { |
|
466 TRACER("CGlxFetcherDialog::HandleMMCRemovalL"); |
|
467 /* |
|
468 * need to delay the destruction of dialog. |
|
469 */ |
|
470 Extension()->iPublicFlags.Set(CEikDialogExtension::EDelayedExit); |
|
471 ProcessCommandL(EAknSoftkeyCancel); |
|
472 Extension()->iPublicFlags.Clear(CEikDialogExtension::EDelayedExit); |
|
473 } |
452 // End of File |
474 // End of File |