|
Nokia N97 SDK Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : aknexpopfieldtextvaluedialog.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 __AKNEXPOPFIELDTEXTVALUEDIALOG_H__ 00017 #define __AKNEXPOPFIELDTEXTVALUEDIALOG_H__ 00018 00019 // INCLUDES 00020 #include "AknExPopFieldBaseDialog.h" 00021 00022 // CONSTANTS 00023 const TInt KAknExPopFieldMaxTextValueField = 12; 00024 const TInt KAknExPopupFieldTextMaxValues = 2; 00025 const TInt KAknExPopFieldIndexInitialize = 0; 00026 const TInt KAknExPopFieldCountInitialize = 0; 00027 const TInt KAknExPopFieldControlIdInitialize = 0; 00028 00029 00030 00031 // FORWARD DECLARATIONS 00032 class CAknQueryValueTextArray; 00033 class CAknQueryValueText; 00034 00035 // CLASS DECLARATION 00036 00037 /** 00038 * CAknExPopFieldTextValueDialog 00039 */ 00040 class CAknExPopFieldTextValueDialog : public CAknExPopFieldBaseDialog 00041 { 00042 public: // Constructors and destructor 00043 00044 /** 00045 * NewLC 00046 * Two-phase constructor. 00047 */ 00048 static CAknExPopFieldTextValueDialog* NewLC(); 00049 00050 /** 00051 * CAknExPopFieldTextValueDialog 00052 * Virtual Destructor. 00053 */ 00054 virtual ~CAknExPopFieldTextValueDialog(); 00055 00056 private: // Constructors. 00057 00058 /** 00059 * CAknExPopFieldTextValueDialog 00060 * C++ default constructor. 00061 */ 00062 CAknExPopFieldTextValueDialog(); 00063 00064 private: // New functions 00065 00066 /** 00067 * DiscardTextArray 00068 * Discard text array in popup field object. 00069 */ 00070 void DiscardTextArray(); 00071 00072 00073 protected: // From CAknExPopFieldBaseDialog 00074 00075 /** 00076 * From CAknExPopFieldBaseDialog, OkToExitL. 00077 * @param aButtonId 00078 * @return TBool ok to exit? 00079 */ 00080 TBool OkToExitL( TInt aButtonId ); 00081 00082 00083 private: // From CAknExPopFieldBaseDialog 00084 00085 /** 00086 * From CAknExPopFieldBaseDialog, ConfigurePopfieldTextL 00087 * Configuration values (text) into Popup Fields. 00088 */ 00089 void ConfigurePopfieldValueL(); 00090 00091 /** 00092 * From CAknForm, SaveFormDataL 00093 * Save the contents of the form. 00094 * @return TBool save form data? 00095 */ 00096 TBool SaveFormDataL(); 00097 00098 00099 /** 00100 * From CAknForm. DoNotSaveFormDataL 00101 * Does not save the contents of the form. 00102 */ 00103 void DoNotSaveFormDataL(); 00104 00105 00106 private: // Data 00107 00108 /** 00109 * iTextArray 00110 * Owned by CAknExPopFieldTextValueDialog object. 00111 */ 00112 CDesCArray* iTextArray; 00113 00114 /** 00115 * iValueTextArray 00116 * Owned by CAknExPopFieldTextValueDialog object. 00117 */ 00118 CAknQueryValueTextArray* iValueTextArray; 00119 00120 /** 00121 * iTextValues 00122 * Owned by CAknExPopFieldTextValueDialog object. 00123 */ 00124 CAknQueryValueText* iTextValues[KAknExPopFieldMaxTextValueField]; 00125 00126 // Integers for field values. 00127 TInt iIndexValue[KAknExPopFieldMaxTextValueField]; 00128 00129 }; 00130 00131 #endif //__AKNEXPOPFIELDTEXTVALUEDIALOG_H__ 00132 00133 // End of File
|
© Nokia 2009 |