diff -r 522cd55cc3d7 -r 13ae750350c9 locationlandmarksrefappfors60/Inc/LandmarksLmCategoriesModel.h --- a/locationlandmarksrefappfors60/Inc/LandmarksLmCategoriesModel.h Tue Feb 02 00:16:03 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,113 +0,0 @@ -/* -* Copyright (c) 2004-2005 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: -* See class description below -* -*/ - - -#ifndef __LANDMARKS_LM_CATEGORIES_MODEL_H__ -#define __LANDMARKS_LM_CATEGORIES_MODEL_H__ - - -#include -#include - - -class CLandmarksApplicationEngine; -class CPosLandmarkCategory; -class CGulIcon; - - - -/** -* CLandmarksLmCategoriesModel holds the data displayed in the category -* listbox in the landmarks category edit dialog. -*/ -class CLandmarksLmCategoriesModel : public CBase - { - public: // Constructors and destructor - - /** - * Two-phased constructor. - * - * @param aEngine the landmarks application engine. - * @param aMarkedCategories an array of selected landmarks. - */ - static CLandmarksLmCategoriesModel* NewL( - CLandmarksApplicationEngine& aEngine, - RArray& aMarkedCategories); - - /** - * Destructor. - */ - ~CLandmarksLmCategoriesModel(); - - public: // New functions - - /** - * Stores ids of selected categories. - * - * @param aSelectedIndexes array of indexes of selected catgeories - */ - void SelectCategoriesL(CArrayFixFlat& aSelectedIndexes); - - /** - * Returns a descriptor array of formatted list items. - * - * @return an descriptor array suitable for a two-column listbox - */ - CDesCArray* FormattedCategoryNamesL(); - - /** - * Returns array of indices of selected categories. - * - * @return array of indexes of selected catgeories - */ - CArrayFixFlat* SelectedCategoriesL(); - - private: - - /** - * C++ constructor. - * - * @param aMarkedCategories an array of selected landmarks. - */ - CLandmarksLmCategoriesModel( - RArray& aMarkedCategories); - - /** - * By default Symbian 2nd phase constructor is private. - * - * @param aEngine the landmarks application engine. - */ - void ConstructL(CLandmarksApplicationEngine& aEngine); - - private: // Data - - //! contains all existing categories - CArrayPtr* iCategories; - - /** contains Ids for those categories that are selected for the - edited landmark. */ - RArray& iMarkedCategoryIds; - - /** An array of formatted category names suitable for a two-column - listbox. */ - CDesCArrayFlat* iListItems; - - }; - -#endif // __LANDMARKS_LM_CATEGORIES_MODEL_H__ -