diff -r 5586b4d2ec3e -r 0d28c1c5b6dd phonebookui/Phonebook2/UIControls/src/CPbk2FetchDlgPage.cpp --- a/phonebookui/Phonebook2/UIControls/src/CPbk2FetchDlgPage.cpp Wed Apr 14 15:45:35 2010 +0300 +++ b/phonebookui/Phonebook2/UIControls/src/CPbk2FetchDlgPage.cpp Tue Apr 27 16:23:35 2010 +0300 @@ -27,9 +27,6 @@ #include #include #include -#include -#include -#include // Virtual Phonebook #include @@ -90,10 +87,6 @@ { iContactView->RemoveObserver( *iControl ); } - if ( iStoreConfiguration ) - { - iStoreConfiguration->RemoveObserver( *this ); - } } // -------------------------------------------------------------------------- @@ -108,8 +101,6 @@ iControl->AddObserverL( *this ); iContactView->AddObserverL( *iControl ); - iStoreConfiguration = &Phonebook2::Pbk2AppUi()->ApplicationServices().StoreConfiguration(); - iStoreConfiguration->AddObserverL( *this ); AknLayoutUtils::LayoutControl ( iControl, iParentDlg.FetchDlgClientRect(), @@ -391,43 +382,4 @@ } return text; } - -// -------------------------------------------------------------------------- -// CPbk2FetchDlgPage::ConfigurationChanged -// -------------------------------------------------------------------------- -// -void CPbk2FetchDlgPage::ConfigurationChanged() - { - if ( iControl ) - { - iControl->Reset(); - } - } - -// -------------------------------------------------------------------------- -// CPbk2FetchDlgPage::ConfigurationChangedComplete -// -------------------------------------------------------------------------- -// -void CPbk2FetchDlgPage::ConfigurationChangedComplete() - { - if ( iControl ) - { - MVPbkContactViewBase* allContactsView = NULL; - - TRAPD( res, allContactsView = Phonebook2::Pbk2AppUi()-> - ApplicationServices().ViewSupplier().AllContactsViewL() ); - - if ( res == KErrNone ) - { - TRAP( res, iControl->SetViewL( *allContactsView ) ); - iControl->DrawNow(); - } - - if ( res != KErrNone ) - { - CCoeEnv::Static()->HandleError( res ); - iControl->Reset(); - } - } - } // End of File