|
Nokia N97 SDK Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : aknexpopfieldoptionallistdialog.h 00004 * Part of : Popup-field example 00005 * Interface : 00006 * Description : 00007 * Version : 00008 * 00009 * Copyright (c) 2004 - 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 __AKNEXPOPFIELDOPTIONALLISTDIALOG_H__ 00017 #define __AKNEXPOPFIELDOPTIONALLISTDIALOG_H__ 00018 00019 00020 // INCLUDES 00021 #include "AknExPopFieldBaseDialog.h" 00022 00023 00024 00025 // CONSTANTS 00026 const TInt KAknExPopFieldMaxOLTextValueField = 13; 00027 const TInt KAknExPopFieldOLIndexInitialize = 0; 00028 const TInt KAknExPopFieldOLCountInitialize = 0; 00029 const TInt KAknExPopFieldOLControlIdInitialize = 0; 00030 const TInt KAknExPopFieldEmptyFieldIndex = 0; 00031 const TInt KAknExPopFieldInitialArrayElementCount = 4; 00032 00033 00034 00035 // FORWARD DECLARATIONS 00036 class CAknQueryValueTextArray; 00037 class CAknQueryValueText; 00038 00039 00040 00041 // CLASS DECLARATION 00042 00043 /** 00044 * CAknExPopFieldOptionalListDialog 00045 */ 00046 class CAknExPopFieldOptionalListDialog : public CAknExPopFieldBaseDialog 00047 { 00048 00049 public: // Constructors and destructor 00050 00051 /** 00052 * NewLC 00053 * Two-phase constructor. 00054 */ 00055 static CAknExPopFieldOptionalListDialog* NewLC(); 00056 00057 /** 00058 * CAknExPopFieldOptionalListDialog 00059 * Virtual Destructor. 00060 */ 00061 virtual ~CAknExPopFieldOptionalListDialog(); 00062 00063 private: // Constructors. 00064 00065 /** 00066 * CAknExPopFieldOptionalListDialog 00067 * C++ default constructor. 00068 */ 00069 CAknExPopFieldOptionalListDialog(); 00070 00071 00072 private: // New functions 00073 00074 /** 00075 * DiscardTextArray 00076 * Discard text array in popup field object. 00077 */ 00078 void DiscardTextArray(); 00079 00080 00081 private: // From CAknExPopFieldBaseDialog 00082 00083 /** 00084 * From CAknExPopFieldBaseDialog, ConfigurePopfieldTextL 00085 * Configuration values (text) into Popup Fields. 00086 */ 00087 void ConfigurePopfieldValueL(); 00088 00089 /** 00090 * From CAknForm, SaveFormDataL 00091 * Save the contents of the form. 00092 * @return TBool Save form data? 00093 */ 00094 TBool SaveFormDataL(); 00095 00096 /** 00097 * From CAknForm, DoNotSaveFormDataL 00098 * Does not save the contents of the form. 00099 */ 00100 void DoNotSaveFormDataL(); 00101 00102 00103 private: // Enumerations for Text Array 00104 00105 enum TAknExPopFieldTextArrayIndex 00106 { 00107 EAknExPopFieldTextArrayIndex0, 00108 EAknExPopFieldTextArrayIndex1, 00109 EAknExPopFieldTextArrayIndex2, 00110 EAknExPopFieldTextArrayIndex3, 00111 EAknExPopFieldTextArrayIndex4, 00112 EAknExPopFieldTextArrayIndex5, 00113 EAknExPopFieldTextArrayIndex6, 00114 EAknExPopFieldTextArrayIndex7, 00115 EAknExPopFieldTextArrayIndex8, 00116 EAknExPopFieldTextArrayIndex9, 00117 EAknExPopFieldTextArrayIndex10, 00118 EAknExPopFieldTextArrayIndex11, 00119 EAknExPopFieldTextArrayIndex12 00120 }; 00121 00122 00123 private: // Data 00124 00125 00126 /** 00127 * iTextArray 00128 * Owned by CAknExPopFieldOptionalListDialog object. 00129 */ 00130 CDesCArray* iTextArray[KAknExPopFieldMaxOLTextValueField]; 00131 00132 /** 00133 * iValueTextArray 00134 * Owned by CAknExPopFieldOptionalListDialog object. 00135 */ 00136 CAknQueryValueTextArray* iValueTextArray[KAknExPopFieldMaxOLTextValueField]; 00137 00138 /** 00139 * iTextValues 00140 * Owned by CAknExPopFieldOptionalListDialog object. 00141 */ 00142 CAknQueryValueText* iTextValues[KAknExPopFieldMaxOLTextValueField]; 00143 00144 // Integers for field values. 00145 TInt iIndexValue[KAknExPopFieldMaxOLTextValueField]; 00146 00147 }; 00148 00149 #endif //__AKNEXPOPFIELDOPTIONALLISTDIALOG_H__ 00150 00151 // End of File
|
© Nokia 2009 |