idlehomescreen/xmluirendering/uiengine/inc/xnextrenderingpluginwrapper.h
branchRCL_3
changeset 9 f966699dea19
parent 0 f72a12da539e
equal deleted inserted replaced
5:c743ef5928ba 9:f966699dea19
    19 #define XNEXTRENDERINGPLUGINWRAPPER_H
    19 #define XNEXTRENDERINGPLUGINWRAPPER_H
    20 
    20 
    21 // System includes
    21 // System includes
    22 #include <e32base.h>
    22 #include <e32base.h>
    23 #include <xnextrenderingpluginadapter.h>
    23 #include <xnextrenderingpluginadapter.h>
       
    24 #include <xnexteventhandler.h>
    24 
    25 
    25 // User includes
    26 // User includes
    26 #include "xncontroladapter.h"
    27 #include "xncontroladapter.h"
    27 #include "xnproperty.h"
    28 #include "xnproperty.h"
    28 #include "xncomponent.h"
    29 #include "xncomponent.h"
    37  *  @endcode
    38  *  @endcode
    38  *
    39  *
    39  *  @lib extrenderingplugin.lib
    40  *  @lib extrenderingplugin.lib
    40  *  @since S60 v5.0
    41  *  @since S60 v5.0
    41  */
    42  */
    42 NONSHARABLE_CLASS( CXnExtRenderingPluginWrapper ) : public CXnControlAdapter
    43 NONSHARABLE_CLASS( CXnExtRenderingPluginWrapper ) : public CXnControlAdapter, public MXnExtEventHandler
    43     {
    44     {
    44 public: // Constructor and destructor
    45 public: // Constructor and destructor
    45     /**
    46     /**
    46      * Two-phased constructor.
    47      * Two-phased constructor.
    47      */
    48      */
    81     
    82     
    82     void SizeChanged();    
    83     void SizeChanged();    
    83     
    84     
    84     TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
    85     TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
    85     
    86     
       
    87     /**
       
    88      * Routes the data stream for the external rendering plugin.
       
    89      *
       
    90      * @since Series 60 5.2
       
    91      * @param aData Data stream.
       
    92      * @param aType Type of the stream.
       
    93      * @param aIndex Index of the data.
       
    94      */
       
    95     void SetDataL( const TDesC8& aData, const TDesC& aType, TInt aIndex );
       
    96     
    86 public: // New functions
    97 public: // New functions
    87     
    98     
    88     /**
    99     /**
    89      * @see CXnControlAdapter
   100      * @see CXnControlAdapter
    90      */
   101      */
    91     void DoEnterPowerSaveModeL( TModeEvent aEvent );
   102     void DoEnterPowerSaveModeL( TModeEvent aEvent );
    92     
   103     
    93     /**
   104     /**
    94      * @see CXnControlAdapter
   105      * @see CXnControlAdapter
    95      */
   106      */
    96     void DoExitPowerSaveModeL( TModeEvent aEvent );  
   107     void DoExitPowerSaveModeL( TModeEvent aEvent );
    97 
   108     
       
   109     /**
       
   110      * Routes the events from the external rendering plug-ins to content plug-ins
       
   111      * @since Series 60 5.2
       
   112      * @param aEvent Event string
       
   113      * @param aDestination Destination content plug-in.
       
   114      */
       
   115     void HandleEventL( const TDesC& aEvent, const TDesC8& aDestination  );
       
   116     
    98 private: // Data
   117 private: // Data
    99 
   118 
   100     /**
   119     /**
   101      * Rendering plugin adapter. Own.
   120      * Rendering plugin adapter. Own.
   102      */
   121      */