idlehomescreen/xmluirendering/uiengine/src/xnextrenderingpluginwrapper.cpp
branchRCL_3
changeset 9 f966699dea19
parent 2 08c6ee43b396
child 30 b8fae6b8a148
equal deleted inserted replaced
5:c743ef5928ba 9:f966699dea19
    16 */
    16 */
    17 
    17 
    18 // System include files
    18 // System include files
    19 
    19 
    20 // User include files
    20 // User include files
       
    21 #include "xnnode.h"
       
    22 #include "xnuiengine.h"
       
    23 #include "xnappuiadapter.h"
       
    24 
    21 #include "xnextrenderingpluginwrapper.h"
    25 #include "xnextrenderingpluginwrapper.h"
    22 
    26 
    23 // ======== MEMBER FUNCTIONS ========
    27 // ======== MEMBER FUNCTIONS ========
    24 
    28 
    25 // ----------------------------------------------------------------------------
    29 // ----------------------------------------------------------------------------
    47 void CXnExtRenderingPluginWrapper::ConstructL( CXnNodePluginIf& aNode )
    51 void CXnExtRenderingPluginWrapper::ConstructL( CXnNodePluginIf& aNode )
    48     {
    52     {
    49     iNode = &aNode;
    53     iNode = &aNode;
    50     
    54     
    51     CXnControlAdapter::ConstructL( aNode );
    55     CXnControlAdapter::ConstructL( aNode );
       
    56     iAdapter->SetEventHandler( this );
    52     }
    57     }
    53 
    58 
    54 // ----------------------------------------------------------------------------
    59 // ----------------------------------------------------------------------------
    55 // CXnExtRenderingPluginWrapper::CXnExtRenderingPluginWrapper()
    60 // CXnExtRenderingPluginWrapper::CXnExtRenderingPluginWrapper()
    56 //
    61 //
   208 void CXnExtRenderingPluginWrapper::DoExitPowerSaveModeL( 
   213 void CXnExtRenderingPluginWrapper::DoExitPowerSaveModeL( 
   209     TModeEvent /*aEvent*/ )
   214     TModeEvent /*aEvent*/ )
   210 	{
   215 	{
   211 	iAdapter->ExitPowerSaveModeL();
   216 	iAdapter->ExitPowerSaveModeL();
   212 	}
   217 	}
   213 	
   218 
       
   219 // ----------------------------------------------------------------------------
       
   220 // CXnExtRenderingPluginWrapper::HandleEventL()
       
   221 //
       
   222 // ----------------------------------------------------------------------------
       
   223 //
       
   224 void CXnExtRenderingPluginWrapper::HandleEventL( const TDesC& aEvent, const TDesC8& aDestination )
       
   225     {
       
   226     
       
   227     CXnNode* node = iNode->Node().UiEngine()->FindNodeByIdL( aDestination );
       
   228     CXnAppUiAdapter* appui = static_cast<CXnAppUiAdapter*>(iAvkonAppUi);
       
   229     appui->HandleEventL( aEvent, node->AppIfL() );
       
   230     }
       
   231 
       
   232 // ----------------------------------------------------------------------------
       
   233 // CXnExtRenderingPluginWrapper::SetDataL()
       
   234 //
       
   235 // ----------------------------------------------------------------------------
       
   236 //
       
   237 void CXnExtRenderingPluginWrapper::SetDataL( const TDesC8& aData, const TDesC& aType, TInt aIndex )
       
   238     {
       
   239     iAdapter->SetDataL( aData, aType, aIndex );
       
   240     }
       
   241 
   214 // End of file
   242 // End of file