diff -r 1fc85118c3ae -r 870918037e16 landmarksui/engine/inc/CLmkLandMarkCategoriesName.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/landmarksui/engine/inc/CLmkLandMarkCategoriesName.h Wed Sep 01 12:31:27 2010 +0100 @@ -0,0 +1,101 @@ +/* +* Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: LandmarksUi Content File - CLmkLandmarkCategoriesName holds category names for perticuler Landmark +* +*/ + + + + + + + + +#ifndef CLMKLANDMARKCATNAMES_H +#define CLMKLANDMARKCATNAMES_H + +// INCLUDES +#include +#include +#include + +typedef TBuf TCategoryName; + +/** +* CLmkLandMarkCategoriesName class. +* This holds category name of perticuler landmark. +*/ +class CLmkLandMarkCategoriesName : public CBase + { + public: // Constructors and destructor + + /** + * Creates CLmkLandMarkCategoriesName + * @return newly instantiated object + */ + IMPORT_C static CLmkLandMarkCategoriesName* NewL(); + /** + * Creates CLmkLandMarkCategoriesName fromn Existing one... + * @return newly instantiated object + */ + IMPORT_C static CLmkLandMarkCategoriesName* NewL(CLmkLandMarkCategoriesName& aLmkLandMarkCategoriesName); + /** + * Destructor. + */ + virtual ~CLmkLandMarkCategoriesName(); + + protected: // Constructors and destructor + /** + * C++ constructor. + * @return newly instantiated object + */ + CLmkLandMarkCategoriesName(); + + /** + * By default Symbian 2nd phase constructor is private. + */ + void ConstructL(); + + public : + /** + * Gets All Category Names. + * @param aCategoryNameArray + */ + IMPORT_C void GetCategoryNames( + /* OUT */ RArray& aCategoryNameArray + ) const; + + /** + * Sets Category Names. + * @param aCategoryNameArray + */ + IMPORT_C void SetCategoryNames( + /* IN */ RArray & aCategoryNameArray + ); + + /** + * Add Category name to array. + * @param aCategoryNameArray + */ + IMPORT_C void AddCategoryName(const TDesC &aCategoryName) ; + + private: // Data + + // Holds Category names + RArray< TCategoryName > iCategoriesName; + }; + +#endif // CLMKLANDMARKCATNAMES_H + +// End of File