idlehomescreen/xmluirendering/uiengine/inc/xnviewsnodeimpl.h
changeset 0 f72a12da539e
equal deleted inserted replaced
-1:000000000000 0:f72a12da539e
       
     1 /*
       
     2 * Copyright (c) 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:  Views node implementation
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __XNVIEWSNODEIMPL_H__
       
    20 #define __XNVIEWSNODEIMPL_H__
       
    21 
       
    22 // System includes
       
    23 #include    <e32base.h>
       
    24 
       
    25 // User includes
       
    26 #include    "xnnodeimpl.h"
       
    27 
       
    28 // Forward declarations
       
    29 class CXnType;
       
    30 class CXnComponent;
       
    31 
       
    32 // Class declaration
       
    33 
       
    34 /**
       
    35  *  Implementation of views node.
       
    36  *  
       
    37  *  @ingroup group_xnlayoutengine
       
    38  *  @lib xn3layoutengine.lib
       
    39  *  @since Series 60 3.1
       
    40  */
       
    41 class CXnViewsNodeImpl : public CXnNodeImpl
       
    42     {
       
    43 public:
       
    44     // Constructors and destructor
       
    45     
       
    46     /**
       
    47      * Two-phased constructor.
       
    48      *
       
    49      * @param aType Type.
       
    50      */
       
    51     IMPORT_C static CXnViewsNodeImpl* NewL( CXnType* aType );
       
    52 
       
    53     /**
       
    54      * Destructor.
       
    55      */
       
    56     IMPORT_C virtual ~CXnViewsNodeImpl();
       
    57 
       
    58 public:
       
    59     // New functions
       
    60     
       
    61     /**
       
    62      * Gets the component associated with the node impl
       
    63      * 
       
    64      * @since Series 60 3.1
       
    65      * @return Component associated with the node impl
       
    66      */
       
    67     IMPORT_C CXnComponent* Component();
       
    68 
       
    69     /**
       
    70      * Sets the component associated with the node impl
       
    71      * 
       
    72      * @since Series 60 3.1
       
    73      * @param aComponent Component associated with the node impl
       
    74      */
       
    75     IMPORT_C void SetComponent( CXnComponent* aComponent );
       
    76 
       
    77 protected:
       
    78     
       
    79     /**
       
    80      * C++ default constructor.
       
    81      */
       
    82     IMPORT_C CXnViewsNodeImpl();
       
    83 
       
    84     /**
       
    85      * Two-phased constructor.
       
    86      *
       
    87      * @param aType Type.
       
    88      */
       
    89     IMPORT_C void ConstructL( CXnType* aType );
       
    90 
       
    91 private:
       
    92     // Data    
       
    93     
       
    94     /** Component associated with the node impl */
       
    95     CXnComponent* iComponent;
       
    96     };
       
    97 
       
    98 #endif // __XNVIEWSNODEIMPL_H__