idlehomescreen/xmluirendering/renderingplugins/xnnewstickerfactory/inc/xnnewstickerfactory.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 CXnNewsticker -component
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef _XNNEWSTICKERFACTORY_H
       
    20 #define _XNNEWSTICKERFACTORY_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include "xncomponentfactory.h"
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class CXnComponent;
       
    27 
       
    28 // CLASS DECLARATION
       
    29 
       
    30 /**
       
    31 * @ingroup group_xnnewstickerfactory
       
    32 * 
       
    33 *  Component factory interface for creating UI representations of the newsticker element.
       
    34 *
       
    35 *  @lib xn3newstickerfactory.dll
       
    36 *  @since Series 60 3.2
       
    37 */
       
    38 // inheritance order must be this, despite codescanner warnings
       
    39 class CXnNewstickerFactory : public MXnComponentFactory, public CBase
       
    40     {
       
    41     public:  // Constructors and destructor
       
    42         
       
    43         /**
       
    44         * Two-phased constructor.
       
    45         */
       
    46         static CXnNewstickerFactory* NewL();
       
    47         
       
    48         /**
       
    49         * Destructor.
       
    50         */
       
    51         virtual ~CXnNewstickerFactory();
       
    52         
       
    53     public: // Functions from base classes
       
    54 
       
    55         /**
       
    56         * Creates the Xuikon component for newsticker component.
       
    57         * @param aNode Corresponding DOM-node
       
    58         * @param aTargetComponent Pointer reference to the component to be created.
       
    59         * @return EXnFactoryResponseComponentConstructed if component created. 
       
    60         */
       
    61         virtual TXnComponentFactoryResponse MakeXnComponentL(CXnNodePluginIf& aNode,
       
    62             CXnComponent*& aTargetComponent);
       
    63 
       
    64         /**
       
    65         * From MXnComponentFactory Interface for creating UI control adapter.
       
    66         * @param aNode Component's node.
       
    67         * @param aParent Parent of the adapter, which is created here.
       
    68         * @return Created control adapter.
       
    69         */        
       
    70         virtual CXnControlAdapter* MakeXnControlAdapterL(CXnNodePluginIf& aNode,
       
    71             CXnControlAdapter* aParent);
       
    72         
       
    73     private:
       
    74 
       
    75         void ConstructL();
       
    76 
       
    77         CXnNewstickerFactory();
       
    78     };
       
    79     
       
    80 // Exported factory function required by ECOM-framework
       
    81 IMPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount);
       
    82 
       
    83 #endif      // _XNNEWSTICKERFACTORY_H
       
    84             
       
    85 // End of File