idlehomescreen/xmluirendering/renderingplugins/xnviewfactory/inc/viewfactory.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 CXnView -component
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef _XNVIEWFACTORY_H
       
    21 #define _XNVIEWFACTORY_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include "xncomponentfactory.h"
       
    25 #include <e32base.h>
       
    26 #include <ecom/ecom.h>
       
    27 #include <ecom/implementationproxy.h>
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 
       
    31 /**
       
    32 *  @ingroup group_xnviewfactory
       
    33 * 
       
    34 *  Layout Area UI factory interface for creating UI representations of the layout areas.
       
    35 *  This class is wrapper for containing a box
       
    36 *
       
    37 *  @lib xn3viewfactory.dll
       
    38 *  @since S6060 3.1
       
    39 */
       
    40 // inheritance order must be this, despite codescanner warnings
       
    41 class CXnViewFactory : public MXnComponentFactory, public CBase
       
    42     {
       
    43     public: // Data types
       
    44 
       
    45     public:  // Constructors and destructor
       
    46         
       
    47         /**
       
    48         * Two-phased constructor.
       
    49         */
       
    50         static CXnViewFactory* NewL();
       
    51         
       
    52         /**
       
    53         * Destructor.
       
    54         */
       
    55         virtual ~CXnViewFactory();
       
    56 
       
    57     public: // Functions from base classes
       
    58 
       
    59         /**
       
    60         * From MXnComponentFactory Interface for creating a view component.
       
    61         * @since Series 60 3.1
       
    62         * @param aNode Component's node.
       
    63         * @param aTargetComponent Created component is set here.
       
    64         * @return EXnFactoryResponseComponentConstructed if component created.
       
    65         */
       
    66         TXnComponentFactoryResponse MakeXnComponentL(
       
    67                 CXnNodePluginIf& aNode, CXnComponent*& aTargetComponent );
       
    68 
       
    69 
       
    70         /**
       
    71         * From MXnComponentFactory Interface for creating Ui control adapter.
       
    72         * @since Series 60 3.1
       
    73         * @param aNode Component's node.
       
    74         * @param aParent Parent of the adapter, which is created here.
       
    75         * @return Created control adapter.
       
    76         */  
       
    77         CXnControlAdapter* MakeXnControlAdapterL(CXnNodePluginIf& aNode,
       
    78                                                  CXnControlAdapter* aParent = NULL);
       
    79 
       
    80     private:
       
    81 
       
    82         /**
       
    83         * 2nd phase constructor. 
       
    84         */
       
    85         void ConstructL();
       
    86 
       
    87         /**
       
    88         * C++ default constructor. 
       
    89         */
       
    90         CXnViewFactory();
       
    91 
       
    92     private:    // Data
       
    93     };
       
    94     
       
    95 // Exported factory function required by ECOM-framework
       
    96 IMPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount);
       
    97 
       
    98 #endif      // _XNVIEWFACTORY_H
       
    99             
       
   100 // End of File