akngridm.h

Go to the documentation of this file.
00001 /*
00002 * ============================================================================
00003 *  Name     : AknGridM.h
00004 *  Part of  : Avkon
00005 *
00006 *  Description:
00007 *     This class is an extension of the text list
00008 *     model class. It is designed specifically to be used with
00009 *     the grid class and the grid view class.
00010 *  Version:
00011 *
00012 *  Copyright © 2002 Nokia Corporation.
00013 *  This material, including documentation and any related 
00014 *  computer programs, is protected by copyright controlled by 
00015 *  Nokia Corporation. All rights are reserved. Copying, 
00016 *  including reproducing, storing,  adapting or translating, any 
00017 *  or all of this material requires the prior written consent of 
00018 *  Nokia Corporation. This material also contains confidential 
00019 *  information which may not be disclosed to others without the 
00020 *  prior written consent of Nokia Corporation.
00021 * ============================================================================
00022 */
00023 
00024 
00025 // INCLUDES
00026 #if !defined(__AKNGRIDM_H__)
00027 #define __AKNGRIDM_H__  
00028 
00029 #include <eiktxlbm.h>
00030 #include <aknutils.h>
00031 // CLASS DECLARATION
00043 class CAknGridM : public CTextListBoxModel
00044         {
00045 public:
00046 
00050         IMPORT_C CAknGridM();
00051         
00055         IMPORT_C virtual ~CAknGridM();
00056         
00061         IMPORT_C virtual TInt NumberOfItems() const;
00062         
00069         IMPORT_C virtual TBool IndexContainsData(TInt aDataIndex) const;
00070         
00075         IMPORT_C virtual TInt NumberOfData() const;
00076         
00082         IMPORT_C void SetStartCells(TInt aNumEmpty);
00083         
00089         IMPORT_C TInt IndexOfFirstDataItem() const;
00090         
00096         IMPORT_C TInt IndexOfLastDataItem() const;
00097         
00106         IMPORT_C virtual TPtrC ItemText(TInt aItemIndex) const;
00107 private:
00108         TInt iEmptyCellsAtStart;
00109         TInt iEmptyCellsAtEnd;
00110 
00111     TInt iSpare[2];
00112         }; 
00113 
00114 
00115 #endif

Copyright © Nokia Corporation 2001-2008
Back to top