--- a/commsconfig/cscsettingsui/src/cscsettingsuimainview.cpp Fri Mar 12 15:42:09 2010 +0200
+++ b/commsconfig/cscsettingsui/src/cscsettingsuimainview.cpp Mon Mar 15 12:39:55 2010 +0200
@@ -915,4 +915,30 @@
CSCSETUIDEBUG( "CCSCSettingsUiMainView::HandleSettingsUiExitL - OUT" );
}
-
+
+// ---------------------------------------------------------------------------
+// CCSCSettingsUiMainView::ResetViewL
+// Resets service settings when switching services
+// ---------------------------------------------------------------------------
+//
+void CCSCSettingsUiMainView::ResetViewL()
+ {
+ CSCSETUIDEBUG( "CCSCSettingsUiMainView::ResetViewL - IN" );
+
+ // Create container when view is activated.
+ if ( !iContainer )
+ {
+ iContainer = new (ELeave) CCSCSettingsUiMainContainer( iModel );
+ iContainer->SetMopParent( this );
+ iContainer->ConstructL( ClientRect() );
+ AppUi()->AddToStackL( *this, iContainer );
+ iContainer->ListBox()->SetListBoxObserver( this );
+ }
+
+ SetTitleTextL();
+ UpdateSoftkeysL();
+ iContainer->UpdateContainerL();
+
+ CSCSETUIDEBUG( "CCSCSettingsUiMainView::ResetViewL - OUT" );
+ }
+