uiacceltk/hitchcock/coretoolkit/inc/HuiRenderPluginBase.h
changeset 0 15bf7259bb7c
equal deleted inserted replaced
-1:000000000000 0:15bf7259bb7c
       
     1 /*
       
     2 * Copyright (c) 2008-2008 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:   Abstract base class for renderer plugins
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef HUIRENDERERPLUGINBASE_H
       
    21 #define HUIRENDERERPLUGINBASE_H
       
    22 
       
    23 #include <e32base.h>
       
    24 
       
    25 const TUid KUidHuiRenderPluginBase = { 0x200113D4 };
       
    26 
       
    27 /**
       
    28  *  Abstract base class for renderer plugins
       
    29  *  Renderer plugins are implemented as ECom plug-ins derived from this interface.
       
    30  *  Each plugin specifies in its ECom IMPLEMENTATION_INFO default_data field the
       
    31  *  API type it handles. For Excample OpenGLES11
       
    32  *
       
    33  *  @lib //?library
       
    34  *  @since S60 v5.0
       
    35  */
       
    36 NONSHARABLE_CLASS( CHuiRenderPluginBase ) : public CBase
       
    37     {
       
    38 
       
    39 public:
       
    40 
       
    41     /**
       
    42      * Two-phased constructor.
       
    43      * @param aMatchData The type of the renderer plugin for example OpenGLES11
       
    44      */
       
    45     inline static CHuiRenderPluginBase* NewL( const TDesC& aMatchData );
       
    46     
       
    47     /**
       
    48     * Destructor.
       
    49     */
       
    50     inline virtual ~CHuiRenderPluginBase();
       
    51 
       
    52 protected:
       
    53 
       
    54     CHuiRenderPluginBase();
       
    55 
       
    56 private: // data
       
    57 
       
    58     /**
       
    59      * A unique UID used in interface destruction
       
    60      */
       
    61 	TUid	iDtor_ID_Key;
       
    62 
       
    63     };
       
    64 
       
    65 #include "HuiRenderPluginBase.inl"
       
    66 
       
    67 #endif // HUIRENDERERPLUGINBASE_H