--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/data/renderingplugin/src/renderer.cpp Wed Jun 02 13:22:05 2010 +0300
@@ -0,0 +1,189 @@
+/*
+* Copyright (c) {Year(s)} {Copyright owner}.
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
+*
+* Initial Contributors:
+* {Name} {Company} ? Initial contribution
+*
+* Contributors:
+* {Name} {Company} ? {{Description of contribution}}
+*
+* Description:
+* {{Description of the file}}
+*
+*/
+
+#include <ecom/implementationproxy.h>
+#include "#replace#Renderer.h"
+
+// ============================ MEMBER FUNCTIONS ===============================
+
+// -----------------------------------------------------------------------------
+// Symbian static 1st phase constructor
+// -----------------------------------------------------------------------------
+//
+#replace#Renderer* #replace#Renderer::NewL()
+ {
+ #replace#Renderer* self = #replace#Renderer::NewLC();
+ CleanupStack::Pop( self );
+ return self;
+ }
+// -----------------------------------------------------------------------------
+// Symbian static 1st phase constructor
+// -----------------------------------------------------------------------------
+//
+#replace#Renderer* #replace#Renderer::NewLC()
+ {
+ #replace#Renderer* self = new( ELeave ) #replace#Renderer();
+ CleanupStack::PushL( self );
+ self->ConstructL();
+ return self;
+ }
+
+// -----------------------------------------------------------------------------
+// C++ destructor
+// -----------------------------------------------------------------------------
+//
+#replace#Renderer::~#replace#Renderer()
+ {
+ }
+
+// -----------------------------------------------------------------------------
+// Handles key events.
+// -----------------------------------------------------------------------------
+//
+TKeyResponse #replace#Renderer::OfferKeyEventL( const TKeyEvent& aKeyEvent,
+ TEventCode aType )
+ {
+ }
+
+// -----------------------------------------------------------------------------
+// Set window for this control
+// -----------------------------------------------------------------------------
+//
+void #replace#Renderer::SetContainerWindowL( const CCoeControl &aContainer )
+ {
+ CCoeControl::SetContainerWindowL( aContainer );
+ }
+
+// -----------------------------------------------------------------------------
+// (other items were commented in a header).
+// -----------------------------------------------------------------------------
+//
+void #replace#Renderer::HandlePointerEventL( const TPointerEvent& aPointerEvent )
+ {
+ CCoeControl::HandlePointerEventL( aPointerEvent );
+ }
+
+// -----------------------------------------------------------------------------
+// Returns the number of component controls
+// -----------------------------------------------------------------------------
+//
+TInt #replace#Renderer::CountComponentControls() const
+ {
+ return 0;
+ }
+
+// -----------------------------------------------------------------------------
+// Returns the specified control
+// -----------------------------------------------------------------------------
+//
+CCoeControl* #replace#Renderer::ComponentControl( TInt aIndex ) const
+ {
+ return NULL;
+ }
+
+// -----------------------------------------------------------------------------
+// Skin change notification.
+// -----------------------------------------------------------------------------
+//
+void #replace#Renderer::SkinChanged()
+ {
+ }
+
+// -----------------------------------------------------------------------------
+// EnterPowerSaveModeL
+// -----------------------------------------------------------------------------
+//
+void #replace#Renderer::EnterPowerSaveModeL()
+ {
+ }
+
+// -----------------------------------------------------------------------------
+// ExitPowerSaveModeL
+//
+// -----------------------------------------------------------------------------
+//
+void #replace#Renderer::ExitPowerSaveModeL()
+ {
+ }
+
+// -----------------------------------------------------------------------------
+// Called if focus changes
+// -----------------------------------------------------------------------------
+//
+void #replace#Renderer::FocusChanged( TDrawNow /*aDrawNow*/ )
+ {
+ }
+
+// -----------------------------------------------------------------------------
+// Called if position or size changes
+// -----------------------------------------------------------------------------
+//
+void #replace#Renderer::SizeChanged()
+ {
+ }
+
+// -----------------------------------------------------------------------------
+// Draws the carousel component
+// -----------------------------------------------------------------------------
+//
+void #replace#Renderer::Draw( const TRect& aRect ) const
+ {
+ CWindowGc& gc( SystemGc() );
+ gc.DrawEllipse( aRect );
+ }
+
+// -----------------------------------------------------------------------------
+// C++ default constructor
+// -----------------------------------------------------------------------------
+//
+#replace#Renderer::#replace#Renderer()
+ {
+ // Do nothing
+ }
+
+// -----------------------------------------------------------------------------
+// Symbian 2nd phase constructor can leave.
+// -----------------------------------------------------------------------------
+//
+void #replace#Renderer::ConstructL()
+ {
+ }
+
+// ============================ PUBLIC FUNCTIONS ===============================
+
+const TImplementationProxy KImplementationTable[] =
+ {
+#ifdef __EABI__
+ IMPLEMENTATION_PROXY_ENTRY( 0x22334455, #replace#Renderer::NewL )
+#else
+ { { 0x22334455 }, #replace#Renderer::NewL }
+#endif
+ };
+
+// -----------------------------------------------------------------------------
+// Returns the list of implementations provided by the plugin
+// -----------------------------------------------------------------------------
+//
+EXPORT_C const TImplementationProxy* ImplementationGroupProxy(
+ TInt& aTableCount )
+ {
+ aTableCount = sizeof( KImplementationTable ) / sizeof( TImplementationProxy );
+ return KImplementationTable;
+ }
+