idlehomescreen/xmluirendering/renderingplugins/xnbitmapfactory/inc/xnbitmapfactory.h
changeset 0 f72a12da539e
equal deleted inserted replaced
-1:000000000000 0:f72a12da539e
       
     1 /*
       
     2 * Copyright (c) 2002-2006 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:  Factory for creating CXnBitmap -component
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef _XNBITMAPFACTORY_H
       
    21 #define _XNBITMAPFACTORY_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include "xncomponentfactory.h"
       
    25 #include <e32base.h>
       
    26 #include <e32std.h>
       
    27 
       
    28 #include <ecom/ecom.h>
       
    29 #include <ecom/implementationproxy.h>
       
    30 
       
    31 // FORWARD DECLARATIONS
       
    32 class CXnComponent;
       
    33 class CXnMap;
       
    34 class CXnType;
       
    35 
       
    36 // CLASS DECLARATION
       
    37 
       
    38 /**
       
    39 *  @ingroup group_xnbitmapfactory
       
    40 *  Layout Area UI factory interface for creating UI representations of the layout areas.
       
    41 *  This class is wrapper for containing CBitmap
       
    42 *
       
    43 *  @lib xn3bitmapfactory.dll
       
    44 *  @since Series 60 3.1
       
    45 */
       
    46 // inheritance order must be this, despite codescanner warnings
       
    47 class CXnBitmapFactory : public MXnComponentFactory, public CBase
       
    48     {
       
    49     public: // Data types
       
    50 
       
    51     public:  // Constructors and destructor
       
    52         
       
    53         /**
       
    54         * Two-phased constructor.
       
    55         */
       
    56         static CXnBitmapFactory* NewL();
       
    57         
       
    58         /**
       
    59         * Destructor.
       
    60         */
       
    61         virtual ~CXnBitmapFactory();
       
    62 
       
    63     public: // Functions from base classes
       
    64 
       
    65 		/**
       
    66 		* @see MXnComponentFactory.h
       
    67 		*/
       
    68         TXnComponentFactoryResponse MakeXnComponentL( 
       
    69                                                 CXnNodePluginIf& aNode,
       
    70                                                 CXnComponent*& aTargetComponent
       
    71         										);
       
    72 
       
    73 		/**
       
    74 		* @see MXnComponentFactory.h
       
    75 		*/
       
    76         CXnControlAdapter* MakeXnControlAdapterL( 
       
    77                                                 CXnNodePluginIf& aNode,
       
    78                                                 CXnControlAdapter* aParent = NULL
       
    79         										);
       
    80 
       
    81     private:
       
    82 
       
    83         /**
       
    84         * 2nd phase constructor. 
       
    85         */
       
    86         void ConstructL();
       
    87 
       
    88         /**
       
    89         * C++ default constructor. 
       
    90         */
       
    91         CXnBitmapFactory();
       
    92     };
       
    93     
       
    94 // Exported factory function required by ECOM-framework
       
    95 IMPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount);
       
    96 
       
    97 #endif      // _XNBITMAPFACTORY_H
       
    98             
       
    99 // End of File