idlehomescreen/xmluirendering/uiengine/src/xnappuiadapter.cpp
branchRCL_3
changeset 35 3321d3e205b6
parent 34 5456b4e8b3a8
--- a/idlehomescreen/xmluirendering/uiengine/src/xnappuiadapter.cpp	Wed Sep 01 12:32:46 2010 +0100
+++ b/idlehomescreen/xmluirendering/uiengine/src/xnappuiadapter.cpp	Tue Sep 14 20:58:58 2010 +0300
@@ -30,6 +30,7 @@
 #include "hscontentcontrolfactory.h"
 #include "xnviewadapter.h"
 #include "xnnode.h"
+#include "xnviewswitcher.h"
 
 #include "xuikon_builds_cfg.hrh"
 #include "debug.h"
@@ -87,7 +88,9 @@
     
     iImpl = CXnAppUiAdapterImpl::NewL( iApplicationUid, *this );
     iImpl->ConstructL();
-     
+
+    iViewSwitcher = CXnViewSwitcher::NewL(); 
+    
     __TIME_ENDMARK( "CXnAppUiAdapter::ConstructL, done", time );
     }
 
@@ -98,6 +101,8 @@
 //
 EXPORT_C CXnAppUiAdapter::~CXnAppUiAdapter()
     {       
+    delete iViewSwitcher;
+
     delete iUiEngineAppIf;
     
     delete iImpl;    
@@ -471,4 +476,14 @@
     return iImpl->ViewAdapter().FocusControl().MakeVisible( ETrue );
     }
 
+// -----------------------------------------------------------------------------
+// CXnAppUiAdapter::ViewSwitcher
+//
+// -----------------------------------------------------------------------------
+//
+CXnViewSwitcher* CXnAppUiAdapter::ViewSwitcher()
+    {
+    return iViewSwitcher;
+    }
+
 // End of file