landmarksui/engine/inc/CLmkLandMarkCategoriesName.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 -    CLmkLandmarkCategoriesName holds category names for perticuler Landmark
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 #ifndef CLMKLANDMARKCATNAMES_H
       
    26 #define CLMKLANDMARKCATNAMES_H
       
    27 
       
    28 //  INCLUDES
       
    29 #include <e32std.h>
       
    30 #include <e32base.h>
       
    31 #include <EPos_Landmarks.h>
       
    32 
       
    33 typedef TBuf<KPosLmMaxCategoryNameLength> TCategoryName;
       
    34 
       
    35 /**
       
    36 * CLmkLandMarkCategoriesName class.
       
    37 * This holds category name of perticuler landmark.
       
    38 */
       
    39 class CLmkLandMarkCategoriesName : public CBase
       
    40     {
       
    41     public:  // Constructors and destructor
       
    42 
       
    43         /**
       
    44         * Creates CLmkLandMarkCategoriesName
       
    45         * @return newly instantiated object
       
    46         */
       
    47         IMPORT_C static CLmkLandMarkCategoriesName* NewL();
       
    48         /**
       
    49         * Creates CLmkLandMarkCategoriesName fromn Existing one...
       
    50         * @return newly instantiated object
       
    51         */
       
    52 		IMPORT_C static CLmkLandMarkCategoriesName* NewL(CLmkLandMarkCategoriesName& aLmkLandMarkCategoriesName);
       
    53         /**
       
    54         * Destructor.
       
    55         */
       
    56         virtual ~CLmkLandMarkCategoriesName();
       
    57 
       
    58     protected:  // Constructors and destructor
       
    59         /**
       
    60         * C++ constructor.
       
    61         * @return newly instantiated object
       
    62         */
       
    63         CLmkLandMarkCategoriesName();
       
    64 
       
    65         /**
       
    66         * By default Symbian 2nd phase constructor is private.
       
    67         */
       
    68         void ConstructL();
       
    69 
       
    70     public :
       
    71         /**
       
    72         * Gets All Category Names.
       
    73         * @param aCategoryNameArray
       
    74         */
       
    75          IMPORT_C void GetCategoryNames(
       
    76         /* OUT */       RArray<TCategoryName>&  aCategoryNameArray
       
    77         ) const;
       
    78 
       
    79         /**
       
    80         * Sets Category Names.
       
    81         * @param aCategoryNameArray
       
    82         */
       
    83 		IMPORT_C  void SetCategoryNames(
       
    84 		/* IN */ 		RArray<TCategoryName> &  aCategoryNameArray
       
    85 		);
       
    86 
       
    87         /**
       
    88         * Add Category name to array.
       
    89         * @param aCategoryNameArray
       
    90         */
       
    91          IMPORT_C void AddCategoryName(const TDesC &aCategoryName) ;
       
    92 
       
    93     private:    // Data
       
    94 
       
    95         // Holds Category names
       
    96         RArray< TCategoryName >  iCategoriesName;
       
    97     };
       
    98 
       
    99 #endif      // CLMKLANDMARKCATNAMES_H
       
   100 
       
   101 // End of File