phonebookui/Phonebook2/UIControls/src/CPbk2FetchDlgPage.cpp
branchRCL_3
changeset 26 0d28c1c5b6dd
parent 14 81f8547efd4f
child 64 c1e8ba0c2b16
--- 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 <Pbk2UIControls.hrh>
 #include <Pbk2UIControls.rsg>
 #include <CPbk2ViewState.h>
-#include <MPbk2AppUi.h>
-#include <MPbk2ApplicationServices.h>
-#include <MPbk2ContactViewSupplier.h>
 
 // Virtual Phonebook
 #include <MVPbkContactViewBase.h>
@@ -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