epos_cposlmdisplaydata.h

Go to the documentation of this file.
00001 /*
00002 * ==============================================================================
00003 *  Name        : EPos_CPosLmDisplayData.h
00004 *  Part of     : Mobile Location Framework/Landmarks
00005 *  Interface   : SDK/S60, Landmarks Search API
00006 *  Description : CPosLmDisplayData class
00007 *  Version     : %version: 2 % 
00008 *
00009 *  Copyright © 2005-2006 Nokia.  All rights reserved.
00010 *  This material, including documentation and any related computer
00011 *  programs, is protected by copyright controlled by Nokia.  All
00012 *  rights are reserved.  Copying, including reproducing, storing,
00013 *  adapting or translating, any or all of this material requires the
00014 *  prior written consent of Nokia.  This material also contains
00015 *  confidential information which may not be disclosed to others
00016 *  without the prior written consent of Nokia.
00017 * ============================================================================
00018 * Template version: 4.0
00019 */
00020 
00021 #ifndef CPOSLMDISPLAYDATA_H
00022 #define CPOSLMDISPLAYDATA_H
00023 
00024 #include <e32base.h>
00025 
00026 const TInt KPosLmNoNewItems = -1;
00027 
00028 class CPosLmDisplayItem;
00029 class CPosLmPartialReadParameters;
00030 
00054 class CPosLmDisplayData : public CBase
00055     {
00056     public:
00057 
00063         IMPORT_C static CPosLmDisplayData* NewL();
00064 
00068         virtual ~CPosLmDisplayData();
00069 
00070     public:
00071 
00085         IMPORT_C TInt NewItemIndex();
00086 
00092         IMPORT_C TInt Count() const;
00093 
00097         IMPORT_C void Reset();
00098 
00109         IMPORT_C CPosLmDisplayItem& DisplayItem( TInt aItemIndex ) const;
00110 
00128         IMPORT_C void SetPartialReadParametersL(
00129             const CPosLmPartialReadParameters& aPartialSettings
00130         );
00131 
00145         IMPORT_C void UnsetPartialReadParameters();
00146 
00148         /* Returns the partial read parameters set for this display data.
00149         *
00150         * @return Partial read parameters or NULL if not set.
00151         */
00152         CPosLmPartialReadParameters* PartialReadParameters() const;
00153 
00155         /* Returns a reference to all the displayable items.
00156         * This array owns its displayable items.
00157         *
00158         * @return The items array.
00159         */
00160         RPointerArray<CPosLmDisplayItem>& DisplayItems();
00161 
00163         /* Returns a reference to the new displayable items.
00164         * This array does not own its displayable items.
00165         * New displayable items are always a subset of all displayable items.
00166         *
00167         * @return The new item indexes array.
00168         */
00169         RPointerArray<CPosLmDisplayItem>& NewDisplayItems();
00170 
00171     private:
00172 
00173         // C++ constructor.
00174         CPosLmDisplayData();
00175 
00176     private:
00177 
00178         RPointerArray<CPosLmDisplayItem> iDisplayItems;
00179         RPointerArray<CPosLmDisplayItem> iNewDisplayItems;
00180         CPosLmPartialReadParameters* iPartialParameters;
00181 
00182     };
00183 
00184 // CPOSLMDISPLAYDATA_H
00185 #endif
00186 
00187 

Copyright © Nokia Corporation 2001-2008
Back to top