equal
deleted
inserted
replaced
39 #include <MPbk2ExitCallback.h> |
39 #include <MPbk2ExitCallback.h> |
40 #include <TPbk2DestructionIndicator.h> |
40 #include <TPbk2DestructionIndicator.h> |
41 #include "CPbk2NamesListControl.h" |
41 #include "CPbk2NamesListControl.h" |
42 #include <CPbk2AppUiBase.h> |
42 #include <CPbk2AppUiBase.h> |
43 #include <MPbk2KeyEventHandler.h> |
43 #include <MPbk2KeyEventHandler.h> |
|
44 #include <MPbk2AppUi.h> |
|
45 #include <MPbk2ApplicationServices.h> |
|
46 #include <MPbk2ContactViewSupplier.h> |
44 |
47 |
45 // Virtual Phonebook |
48 // Virtual Phonebook |
46 #include <CVPbkContactLinkArray.h> |
49 #include <CVPbkContactLinkArray.h> |
47 #include <CVPbkContactManager.h> |
50 #include <CVPbkContactManager.h> |
48 #include <MVPbkContactViewBase.h> |
51 #include <MVPbkContactViewBase.h> |
162 } |
165 } |
163 |
166 |
164 if ( iSelfPtr ) |
167 if ( iSelfPtr ) |
165 { |
168 { |
166 *iSelfPtr = NULL; |
169 *iSelfPtr = NULL; |
|
170 } |
|
171 |
|
172 if ( iStoreConfiguration ) |
|
173 { |
|
174 iStoreConfiguration->RemoveObserver( *this ); |
167 } |
175 } |
168 |
176 |
169 RemoveCommandFromMSK(); |
177 RemoveCommandFromMSK(); |
170 delete iTabSkinDelay; |
178 delete iTabSkinDelay; |
171 delete iSelectionRestorer; |
179 delete iSelectionRestorer; |
217 // In addition Layout_Meta_Data::IsMSKEnabled() is expected to be called, |
225 // In addition Layout_Meta_Data::IsMSKEnabled() is expected to be called, |
218 // which checks from the layout data whether or not the MSK is supported |
226 // which checks from the layout data whether or not the MSK is supported |
219 // in the current resolution/orientation. |
227 // in the current resolution/orientation. |
220 // So if either one returns EFalse, then MSK is not shown. |
228 // So if either one returns EFalse, then MSK is not shown. |
221 iMSKEnabled = (AknLayoutUtils::MSKEnabled() && Layout_Meta_Data::IsMSKEnabled()); |
229 iMSKEnabled = (AknLayoutUtils::MSKEnabled() && Layout_Meta_Data::IsMSKEnabled()); |
|
230 |
|
231 // Add the store observer. |
|
232 iStoreConfiguration = &Phonebook2::Pbk2AppUi()->ApplicationServices().StoreConfiguration(); |
|
233 iStoreConfiguration->AddObserverL( *this ); |
222 } |
234 } |
223 |
235 |
224 // -------------------------------------------------------------------------- |
236 // -------------------------------------------------------------------------- |
225 // CPbk2FetchDlg::NewL |
237 // CPbk2FetchDlg::NewL |
226 // -------------------------------------------------------------------------- |
238 // -------------------------------------------------------------------------- |
1314 // practice because it's exit command. |
1326 // practice because it's exit command. |
1315 TRAP_IGNORE( cmdObs->ProcessCommandL( aCommandId ) ); |
1327 TRAP_IGNORE( cmdObs->ProcessCommandL( aCommandId ) ); |
1316 } |
1328 } |
1317 } |
1329 } |
1318 |
1330 |
|
1331 |
|
1332 // -------------------------------------------------------------------------- |
|
1333 // CPbk2FetchDlg::ConfigurationChanged |
|
1334 // -------------------------------------------------------------------------- |
|
1335 // |
|
1336 void CPbk2FetchDlg::ConfigurationChanged() |
|
1337 { |
|
1338 // Do nothing. |
|
1339 } |
|
1340 |
|
1341 // -------------------------------------------------------------------------- |
|
1342 // CPbk2FetchDlg::ConfigurationChangedComplete |
|
1343 // -------------------------------------------------------------------------- |
|
1344 // |
|
1345 void CPbk2FetchDlg::ConfigurationChangedComplete() |
|
1346 { |
|
1347 // When changing the setting in phonebook. |
|
1348 // Fetch dialog will exit and return back to the last view. |
|
1349 // For example: |
|
1350 // Speeddial: back to its main view. |
|
1351 // Message: back to its editor view. |
|
1352 TryExitL( EAknSoftkeyBack ); |
|
1353 } |
1319 // End of File |
1354 // End of File |