menufw/hierarchynavigator/hnmetadatamodel/inc/hnmdvaluebase.h
changeset 0 f72a12da539e
equal deleted inserted replaced
-1:000000000000 0:f72a12da539e
       
     1 /*
       
     2 * Copyright (c) 2007-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:   
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_HNMDVALUEBASE_H
       
    20 #define C_HNMDVALUEBASE_H
       
    21  
       
    22 #include <e32base.h>
       
    23 
       
    24 class CLiwGenericParamList;
       
    25 struct THnMdCommonPointers;
       
    26 class TXmlEngElement;
       
    27 class CHnAttributeBase;
       
    28 
       
    29 enum THnMdValueType
       
    30     {
       
    31     EHnTextType, 
       
    32     EHnImageType
       
    33     };
       
    34 
       
    35 /**
       
    36  * Value Base
       
    37  * 
       
    38  * Based class used for output transformation.
       
    39  * Specific classes based on information from XML make correct transformation
       
    40  * 
       
    41  * @lib hnmetadatamodel
       
    42  * @since S60 5.0
       
    43  * @ingroup group_hnmetadatamodel
       
    44  */
       
    45 NONSHARABLE_CLASS(CHnMdValueBase) : public CBase
       
    46     {
       
    47 public:
       
    48     /**
       
    49      * Create specific class based on parameter
       
    50      * 
       
    51      * @param aElement XML element.
       
    52      * @param aCmnPtrs Pointer to common pointer structure.
       
    53      */
       
    54     static CHnMdValueBase* CreateL( const TXmlEngElement& aElement, 
       
    55                                 THnMdCommonPointers* aCmnPtrs );
       
    56 
       
    57     /**
       
    58      * Get value from spefic class
       
    59      * 
       
    60      * @param aQueriesResultsList query results use for dynnamic data
       
    61      * @param aPos position if data are in list format.
       
    62      * @return A pointer to the CHnAttributeBase object.
       
    63      */
       
    64     
       
    65     virtual CHnAttributeBase* CreateAttributeL( 
       
    66             const CLiwGenericParamList* aQueriesResultsList, TInt aPos ) = 0;
       
    67             
       
    68     };
       
    69 
       
    70 #endif /*C_HNMDVALUEBASE_H*/