idlehomescreen/xmluirendering/uiengine/src/xnextrenderingpluginwrapper.cpp
branchRCL_3
changeset 9 f966699dea19
parent 2 08c6ee43b396
child 30 b8fae6b8a148
--- a/idlehomescreen/xmluirendering/uiengine/src/xnextrenderingpluginwrapper.cpp	Tue Feb 02 00:04:13 2010 +0200
+++ b/idlehomescreen/xmluirendering/uiengine/src/xnextrenderingpluginwrapper.cpp	Fri Feb 19 22:42:37 2010 +0200
@@ -18,6 +18,10 @@
 // System include files
 
 // User include files
+#include "xnnode.h"
+#include "xnuiengine.h"
+#include "xnappuiadapter.h"
+
 #include "xnextrenderingpluginwrapper.h"
 
 // ======== MEMBER FUNCTIONS ========
@@ -49,6 +53,7 @@
     iNode = &aNode;
     
     CXnControlAdapter::ConstructL( aNode );
+    iAdapter->SetEventHandler( this );
     }
 
 // ----------------------------------------------------------------------------
@@ -210,5 +215,28 @@
 	{
 	iAdapter->ExitPowerSaveModeL();
 	}
-	
+
+// ----------------------------------------------------------------------------
+// CXnExtRenderingPluginWrapper::HandleEventL()
+//
+// ----------------------------------------------------------------------------
+//
+void CXnExtRenderingPluginWrapper::HandleEventL( const TDesC& aEvent, const TDesC8& aDestination )
+    {
+    
+    CXnNode* node = iNode->Node().UiEngine()->FindNodeByIdL( aDestination );
+    CXnAppUiAdapter* appui = static_cast<CXnAppUiAdapter*>(iAvkonAppUi);
+    appui->HandleEventL( aEvent, node->AppIfL() );
+    }
+
+// ----------------------------------------------------------------------------
+// CXnExtRenderingPluginWrapper::SetDataL()
+//
+// ----------------------------------------------------------------------------
+//
+void CXnExtRenderingPluginWrapper::SetDataL( const TDesC8& aData, const TDesC& aType, TInt aIndex )
+    {
+    iAdapter->SetDataL( aData, aType, aIndex );
+    }
+
 // End of file