|
S60 3rd Edition SDK for Symbian OS Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : IMOpenAPIExampleGrid.h 00004 * Part of : IMOpenAPIExample 00005 * Interface : 00006 * Description : 00007 * Version : 00008 * 00009 * Copyright (c) 2005-2006 Nokia Corporation. 00010 * This material, including documentation and any related 00011 * computer programs, is protected by copyright controlled by 00012 * Nokia Corporation. 00013 * ============================================================================== 00014 */ 00015 00016 #ifndef IMOPENAPIEXAMPLEGRID_H 00017 #define IMOPENAPIEXAMPLEGRID_H 00018 00019 // INCLUDES 00020 # include <akngrid.h> 00021 # include "IMOpenAPIExamplemsg.h" 00022 00023 // CLASS DECLARATION 00024 /** 00025 * 00026 * @class CIMOpenAPIExampleGrid IMOpenAPIExamplegrid.h 00027 * @brief This is the graphical grid class for a IM Example application 00028 * 00029 */ 00030 class CIMOpenAPIExampleGrid : public CAknGrid 00031 { 00032 public: // Constructors and destructor 00033 00034 /** 00035 * ConstructL. 00036 * 2nd phase constructor. 00037 * @param aGridResource resource of the grip in resource file 00038 * aImageFile The file name where application images are stored 00039 */ 00040 void ConstructL(TInt aGridResource, const TDesC& aImageFile); 00041 00042 /** 00043 * Destructor. 00044 */ 00045 ~CIMOpenAPIExampleGrid(); 00046 00047 public: // own functions 00048 00049 /** 00050 * SetCellSign. 00051 * Put the specified graphical cell sign to the specified index in grid 00052 * @param aCellValue value to put in the cell 00053 * aCellIndex Index in grid where value need to put 0 to 8 00054 */ 00055 void SetCellSign(TGameSign aCellValue, TInt aCellIndex); 00056 00057 /** 00058 * ResetGrid. 00059 * Reset the whole grid and put empty signs 00060 */ 00061 void ResetGrid(); 00062 00063 private: // from base classes 00064 /** 00065 * SizeChanged. 00066 * From CoeControl 00067 */ 00068 void SizeChanged(); 00069 00070 private: // own functions 00071 00072 /** 00073 * SetupGrid. 00074 * Initialized the grid 00075 */ 00076 void SetupGrid(); 00077 00078 /** 00079 * SetupGridIconsL. 00080 * Initialized the grid icons with the images in given file name 00081 */ 00082 void SetupGridIconsL(const TDesC& aImageFile); 00083 00084 private: // data 00085 00086 /** 00087 * iArray. 00088 * array of icons and text 00089 */ 00090 CDesCArray* iArray; 00091 00092 }; 00093 00094 #endif //IMOPENAPIEXAMPLEGRID_H 00095 00096 // End of File 00097
|
© Nokia 2006 |