landmarksui/engine/inc/CLmkCategoryUiItem.h
branchRCL_3
changeset 17 1fc85118c3ae
parent 16 8173571d354e
child 18 870918037e16
equal deleted inserted replaced
16:8173571d354e 17:1fc85118c3ae
     1 /*
       
     2 * Copyright (c) 2004 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:    LandmarksUi Content File -    Category ui item
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 #ifndef CLMKCATEGORYUIITEM_H
       
    26 #define CLMKCATEGORYUIITEM_H
       
    27 
       
    28 //  INCLUDES
       
    29 #include "CLmkUiItemBase.h"
       
    30 
       
    31 // FORWARD DECLARATIONS
       
    32 class CPosLandmarkCategory;
       
    33 
       
    34 // CLASS DECLARATION
       
    35 
       
    36 /**
       
    37 * CLmkCategoryUiItem class
       
    38 */
       
    39 class CLmkCategoryUiItem : public CLmkUiItemBase
       
    40     {
       
    41     public:  // Constructors and destructor
       
    42 
       
    43         /**
       
    44         * Create CLmkCategoryUiItem object
       
    45         * @param aCategory
       
    46         * @param aIconListIndex
       
    47         * @return newly instantiated object
       
    48         */
       
    49         static CLmkCategoryUiItem* NewL( CPosLandmarkCategory* aCategory,
       
    50                                          TInt aIconListIndex );
       
    51 
       
    52         /**
       
    53         * Destructor.
       
    54         */
       
    55         ~CLmkCategoryUiItem();
       
    56 
       
    57     public: // From CLmkUiItemBase
       
    58         TLmkItemType Type();
       
    59         TPtrC Text();
       
    60         TInt GetIconId();
       
    61 
       
    62     private:  // Constructors and destructor
       
    63         /**
       
    64         * C++ default constructor.
       
    65         * @param aCategory
       
    66         * @param aIconListIndex
       
    67         * @return newly instantiated object
       
    68         */
       
    69         CLmkCategoryUiItem( CPosLandmarkCategory* aCategory,
       
    70                             TInt aIconListIndex );
       
    71 
       
    72         /**
       
    73         * By default Symbian 2nd phase constructor is private.
       
    74         */
       
    75         void ConstructL();
       
    76 
       
    77     private:    // Data
       
    78         ///Own:
       
    79         CPosLandmarkCategory* iCategory;
       
    80 
       
    81         TInt iIconListIndex;
       
    82 
       
    83         TPtrC iText;
       
    84     };
       
    85 
       
    86 #endif      // CLMKCATEGORYUIITEM_H
       
    87 
       
    88 // End of File