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