data/renderingplugin/src/renderer.cpp
changeset 0 b856a9924bbc
child 9 6967ff0a31f5
equal deleted inserted replaced
-1:000000000000 0:b856a9924bbc
       
     1 /*
       
     2 * Copyright (c) {Year(s)} {Copyright owner}.
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * {Name} {Company} ? Initial contribution
       
    11 *
       
    12 * Contributors:
       
    13 * {Name} {Company} ? {{Description of contribution}}
       
    14 *
       
    15 * Description:
       
    16 * {{Description of the file}}
       
    17 *
       
    18 */
       
    19 
       
    20 #include <ecom/implementationproxy.h>
       
    21 #include "#replace#Renderer.h"
       
    22 
       
    23 // ============================ MEMBER FUNCTIONS ===============================
       
    24 
       
    25 // -----------------------------------------------------------------------------
       
    26 // Symbian static 1st phase constructor
       
    27 // -----------------------------------------------------------------------------
       
    28 //
       
    29 #replace#Renderer* #replace#Renderer::NewL()
       
    30     {
       
    31     #replace#Renderer* self = #replace#Renderer::NewLC();
       
    32     CleanupStack::Pop( self );
       
    33     return self;
       
    34     }
       
    35 // -----------------------------------------------------------------------------
       
    36 // Symbian static 1st phase constructor
       
    37 // -----------------------------------------------------------------------------
       
    38 //
       
    39 #replace#Renderer* #replace#Renderer::NewLC()
       
    40     {
       
    41     #replace#Renderer* self = new( ELeave ) #replace#Renderer();
       
    42     CleanupStack::PushL( self );
       
    43     self->ConstructL();
       
    44     return self;
       
    45     }
       
    46 
       
    47 // -----------------------------------------------------------------------------
       
    48 // C++ destructor
       
    49 // -----------------------------------------------------------------------------
       
    50 //
       
    51 #replace#Renderer::~#replace#Renderer()
       
    52     {
       
    53     }
       
    54 
       
    55 // -----------------------------------------------------------------------------
       
    56 // Handles key events.
       
    57 // -----------------------------------------------------------------------------
       
    58 //
       
    59 TKeyResponse #replace#Renderer::OfferKeyEventL( const TKeyEvent& aKeyEvent,
       
    60     TEventCode aType )
       
    61     {
       
    62     }
       
    63 
       
    64 // -----------------------------------------------------------------------------
       
    65 // Set window for this control
       
    66 // -----------------------------------------------------------------------------
       
    67 //
       
    68 void #replace#Renderer::SetContainerWindowL( const CCoeControl &aContainer )
       
    69     {
       
    70     CCoeControl::SetContainerWindowL( aContainer );
       
    71     }
       
    72 
       
    73 // -----------------------------------------------------------------------------
       
    74 // (other items were commented in a header).
       
    75 // -----------------------------------------------------------------------------
       
    76 //
       
    77 void #replace#Renderer::HandlePointerEventL( const TPointerEvent& aPointerEvent )
       
    78     {
       
    79     CCoeControl::HandlePointerEventL( aPointerEvent );
       
    80     }
       
    81 
       
    82 // -----------------------------------------------------------------------------
       
    83 // Returns the number of component controls
       
    84 // -----------------------------------------------------------------------------
       
    85 //
       
    86 TInt #replace#Renderer::CountComponentControls() const
       
    87     {
       
    88     return 0;
       
    89     }
       
    90 
       
    91 // -----------------------------------------------------------------------------
       
    92 // Returns the specified control
       
    93 // -----------------------------------------------------------------------------
       
    94 //
       
    95 CCoeControl* #replace#Renderer::ComponentControl( TInt aIndex ) const
       
    96     {
       
    97     return NULL;
       
    98     }
       
    99 
       
   100 // -----------------------------------------------------------------------------
       
   101 // Skin change notification.
       
   102 // -----------------------------------------------------------------------------
       
   103 //
       
   104 void #replace#Renderer::SkinChanged()
       
   105     {
       
   106     }
       
   107 
       
   108 // -----------------------------------------------------------------------------
       
   109 // EnterPowerSaveModeL
       
   110 // -----------------------------------------------------------------------------
       
   111 //
       
   112 void #replace#Renderer::EnterPowerSaveModeL()
       
   113     {
       
   114     }
       
   115 
       
   116 // -----------------------------------------------------------------------------
       
   117 // ExitPowerSaveModeL
       
   118 //
       
   119 // -----------------------------------------------------------------------------
       
   120 //
       
   121 void #replace#Renderer::ExitPowerSaveModeL()
       
   122     {
       
   123     }
       
   124 
       
   125 // -----------------------------------------------------------------------------
       
   126 // Called if focus changes
       
   127 // -----------------------------------------------------------------------------
       
   128 //
       
   129 void #replace#Renderer::FocusChanged( TDrawNow /*aDrawNow*/ )
       
   130     {
       
   131     }
       
   132 
       
   133 // -----------------------------------------------------------------------------
       
   134 // Called if position or size changes
       
   135 // -----------------------------------------------------------------------------
       
   136 //
       
   137 void #replace#Renderer::SizeChanged()
       
   138     {
       
   139     }
       
   140 
       
   141 // -----------------------------------------------------------------------------
       
   142 // Draws the carousel component
       
   143 // -----------------------------------------------------------------------------
       
   144 //
       
   145 void #replace#Renderer::Draw( const TRect& aRect ) const
       
   146     {
       
   147     CWindowGc& gc( SystemGc() );
       
   148     gc.DrawEllipse( aRect );
       
   149     }
       
   150 
       
   151 // -----------------------------------------------------------------------------
       
   152 // C++ default constructor
       
   153 // -----------------------------------------------------------------------------
       
   154 //
       
   155 #replace#Renderer::#replace#Renderer()
       
   156     {
       
   157     // Do nothing
       
   158     }
       
   159 
       
   160 // -----------------------------------------------------------------------------
       
   161 // Symbian 2nd phase constructor can leave.
       
   162 // -----------------------------------------------------------------------------
       
   163 //
       
   164 void #replace#Renderer::ConstructL()
       
   165     {
       
   166     }
       
   167 
       
   168 // ============================ PUBLIC FUNCTIONS ===============================
       
   169 
       
   170 const TImplementationProxy KImplementationTable[] =
       
   171     {
       
   172 #ifdef __EABI__
       
   173     IMPLEMENTATION_PROXY_ENTRY( 0x22334455, #replace#Renderer::NewL )
       
   174 #else
       
   175     { { 0x22334455 }, #replace#Renderer::NewL }
       
   176 #endif
       
   177     };
       
   178 
       
   179 // -----------------------------------------------------------------------------
       
   180 // Returns the list of implementations provided by the plugin
       
   181 // -----------------------------------------------------------------------------
       
   182 //
       
   183 EXPORT_C const TImplementationProxy* ImplementationGroupProxy(
       
   184     TInt& aTableCount )
       
   185     {
       
   186     aTableCount = sizeof( KImplementationTable ) / sizeof( TImplementationProxy );
       
   187     return KImplementationTable;
       
   188     }
       
   189