data/renderingplugin/inc/renderer.h
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 #ifndef MYRENDERINGPLUGIN_H
       
    21 #define MYRENDERINGPLUGIN_H
       
    22 
       
    23 #include <xnextrenderingpluginadapter.h>
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 
       
    27 class #replace#Renderer : public CXnExtRenderingPluginAdapter
       
    28     {
       
    29 public:
       
    30 
       
    31     /**
       
    32     * Two-phased constructor.
       
    33     * @return Pointer to created object.
       
    34     */
       
    35     static #replace#Renderer* NewL();
       
    36 
       
    37     /**
       
    38     * Two-phased constructor.
       
    39     * @return Pointer to created object.
       
    40     */
       
    41     static #replace#Renderer* NewLC();
       
    42     
       
    43     /**
       
    44     * Destructor.
       
    45     */
       
    46     virtual ~#replace#Renderer();
       
    47 
       
    48 public: // from base classes
       
    49 
       
    50     /**
       
    51     * From CCoeControl Handles key events.
       
    52     * @since Series 60 3.1
       
    53     * @param aKeyEvent Key event.
       
    54     * @param aType Event type.
       
    55     * @return Key response
       
    56     */
       
    57     TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent,
       
    58     TEventCode aType );
       
    59     
       
    60     /**
       
    61     * From CCoeControl
       
    62     */
       
    63     void SetContainerWindowL( const CCoeControl &aContainer );
       
    64     
       
    65     /**
       
    66     * See CCoeControl documentation
       
    67     */
       
    68     void HandlePointerEventL( const TPointerEvent& aPointerEvent );
       
    69 
       
    70     /**
       
    71     * From CCoeControl, CountComponentControls
       
    72     * @return Number of component controls
       
    73     */
       
    74     TInt CountComponentControls() const;
       
    75     
       
    76     /**
       
    77     * From CCoeControl, ComponentControl
       
    78     * @param aIndex index of component control
       
    79     * @return pointer to the specified control
       
    80     */
       
    81     CCoeControl* ComponentControl( TInt aIndex ) const;
       
    82     
       
    83     /**
       
    84     * Skin change notification.
       
    85     * See CXnControlAdapter documentation
       
    86     * @since Series 60 3.1
       
    87     */
       
    88     void SkinChanged();
       
    89     
       
    90     /**
       
    91     * See CXnControlAdapter documentation
       
    92     */
       
    93     void EnterPowerSaveModeL();
       
    94 
       
    95     /**
       
    96     * See CXnControlAdapter documentation
       
    97     */
       
    98     void ExitPowerSaveModeL();
       
    99     
       
   100     protected: // from base classes
       
   101     
       
   102     /**
       
   103     * From CCoeControl
       
   104     * Called if focus changes
       
   105     */
       
   106     void FocusChanged( TDrawNow aDrawNow );
       
   107     
       
   108     /**
       
   109     * From CCoeControl
       
   110     * Called if position or size changes
       
   111     */
       
   112     void SizeChanged();
       
   113 
       
   114 private: // from base classes
       
   115 
       
   116     /**
       
   117     * From CCoeControl, Draw
       
   118     * See CCoeControl documentation
       
   119     */
       
   120     void Draw( const TRect& aRect ) const;
       
   121     
       
   122     private:
       
   123     
       
   124     /**
       
   125     * C++ default constructor.
       
   126     */
       
   127     #replace#Renderer();
       
   128     
       
   129     /**
       
   130     * By default Symbian 2nd phase constructor is private.
       
   131     */
       
   132     void ConstructL();
       
   133 
       
   134 private: // Member data
       
   135 
       
   136     };
       
   137 
       
   138 #endif // MYRENDERINGPLUGIN_H