diff -r 000000000000 -r b856a9924bbc data/renderingplugin/inc/renderer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/data/renderingplugin/inc/renderer.h Wed Jun 02 13:22:05 2010 +0300 @@ -0,0 +1,138 @@ +/* +* 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}} +* +*/ + +#ifndef MYRENDERINGPLUGIN_H +#define MYRENDERINGPLUGIN_H + +#include + +// FORWARD DECLARATIONS + +class #replace#Renderer : public CXnExtRenderingPluginAdapter + { +public: + + /** + * Two-phased constructor. + * @return Pointer to created object. + */ + static #replace#Renderer* NewL(); + + /** + * Two-phased constructor. + * @return Pointer to created object. + */ + static #replace#Renderer* NewLC(); + + /** + * Destructor. + */ + virtual ~#replace#Renderer(); + +public: // from base classes + + /** + * From CCoeControl Handles key events. + * @since Series 60 3.1 + * @param aKeyEvent Key event. + * @param aType Event type. + * @return Key response + */ + TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, + TEventCode aType ); + + /** + * From CCoeControl + */ + void SetContainerWindowL( const CCoeControl &aContainer ); + + /** + * See CCoeControl documentation + */ + void HandlePointerEventL( const TPointerEvent& aPointerEvent ); + + /** + * From CCoeControl, CountComponentControls + * @return Number of component controls + */ + TInt CountComponentControls() const; + + /** + * From CCoeControl, ComponentControl + * @param aIndex index of component control + * @return pointer to the specified control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + + /** + * Skin change notification. + * See CXnControlAdapter documentation + * @since Series 60 3.1 + */ + void SkinChanged(); + + /** + * See CXnControlAdapter documentation + */ + void EnterPowerSaveModeL(); + + /** + * See CXnControlAdapter documentation + */ + void ExitPowerSaveModeL(); + + protected: // from base classes + + /** + * From CCoeControl + * Called if focus changes + */ + void FocusChanged( TDrawNow aDrawNow ); + + /** + * From CCoeControl + * Called if position or size changes + */ + void SizeChanged(); + +private: // from base classes + + /** + * From CCoeControl, Draw + * See CCoeControl documentation + */ + void Draw( const TRect& aRect ) const; + + private: + + /** + * C++ default constructor. + */ + #replace#Renderer(); + + /** + * By default Symbian 2nd phase constructor is private. + */ + void ConstructL(); + +private: // Member data + + }; + +#endif // MYRENDERINGPLUGIN_H