landmarksui/engine/inc/CLmkUiItemBase.h
branchRCL_3
changeset 18 870918037e16
parent 0 522cd55cc3d7
equal deleted inserted replaced
17:1fc85118c3ae 18:870918037e16
       
     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 -    Base class for landmark ui item
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 #ifndef CLMKUIITEMBASE_H
       
    26 #define CLMKUIITEMBASE_H
       
    27 
       
    28 //  INCLUDES
       
    29 #include "landmarks.hrh"    // TLmkItemType
       
    30 #include <e32base.h>        // CBase
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 /**
       
    35 * CLmkUiItemBase class
       
    36 */
       
    37 class CLmkUiItemBase : public CBase
       
    38     {
       
    39     public:  // Constructors and destructor
       
    40         virtual ~CLmkUiItemBase();
       
    41 
       
    42     public: // New functions
       
    43         /**
       
    44         * Get Landmark's item type
       
    45         * @return TLmkItemType
       
    46         */
       
    47         virtual TLmkItemType Type() = 0;
       
    48 
       
    49         /**
       
    50         * Get text
       
    51         * @return TPtrC
       
    52         */
       
    53         virtual TPtrC Text() = 0;
       
    54 
       
    55         /**
       
    56         * Get icon id
       
    57         * @return TInt
       
    58         */
       
    59         virtual TInt GetIconId() = 0;
       
    60 
       
    61         /**
       
    62         * Check if extension int exists
       
    63         * @return TBool
       
    64         */
       
    65         IMPORT_C TBool ExtensionIntExists();
       
    66 
       
    67         /**
       
    68         * Set Extension index
       
    69         * @param aInt
       
    70         */
       
    71         IMPORT_C void SetExtensionInt( TInt aInt );
       
    72 
       
    73         /**
       
    74         * Get extension int
       
    75         * @return TInt
       
    76         */
       
    77         IMPORT_C TInt ExtensionInt();
       
    78 
       
    79     protected:  // Constructors and destructor
       
    80         /**
       
    81         * Default constructor
       
    82         * @return newly instantiated object
       
    83         */
       
    84         CLmkUiItemBase();
       
    85 
       
    86     protected: // Data
       
    87         TBool iExtExists;
       
    88         TInt iExtInt;
       
    89 
       
    90     };
       
    91 
       
    92 #endif      // CLMKUIITEMBASE_H
       
    93 
       
    94 // End of File