00001 /* 00002 * ============================================================================ 00003 * Name : AknPopupFieldText.h 00004 * Part of : Avkon 00005 * 00006 * Description: 00007 * Represents a text combo box type control, used to implement the 00008 * Series 60 text pop-up field. 00009 * This control can be constructed directly from resource. 00010 * 00011 * Version: 00012 * 00013 * Copyright © 2002 Nokia Corporation. 00014 * This material, including documentation and any related 00015 * computer programs, is protected by copyright controlled by 00016 * Nokia Corporation. All rights are reserved. Copying, 00017 * including reproducing, storing, adapting or translating, any 00018 * or all of this material requires the prior written consent of 00019 * Nokia Corporation. This material also contains confidential 00020 * information which may not be disclosed to others without the 00021 * prior written consent of Nokia Corporation. 00022 * ============================================================================ 00023 */ 00024 00025 #if !defined(__AKNPOPUPFIELDTEXT_H__) 00026 #define __AKNPOPUPFIELDTEXT_H__ 00027 00028 #include "AknPopupField.h" 00029 #include "AknQueryValueText.h" 00030 00036 class CAknPopupFieldText : public CAknPopupField 00037 { 00038 public: 00039 00043 IMPORT_C CAknPopupFieldText(); 00044 00048 IMPORT_C ~CAknPopupFieldText(); 00049 00055 IMPORT_C HBufC* CurrentValueTextLC(); 00056 00062 IMPORT_C TInt CurrentValueIndex() const; 00063 00069 IMPORT_C void SetCurrentValueIndex(const TInt aIndex); 00070 00077 IMPORT_C const MDesCArray* MdcArray() const; 00078 00084 IMPORT_C void SetAutoAppend(TBool aAppend); 00085 00086 public: // from CCoeControl 00087 00095 IMPORT_C void ConstructFromResourceL(TResourceReader& aReader); 00096 00104 IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent); 00105 00106 private: // Methods from CAknPopupField that were public 00107 00111 void ConstructL(); 00112 00117 void SetQueryValueL(MAknQueryValue* aValue); 00118 00119 private: // from CCoeControl 00120 IMPORT_C void Reserved_1(); 00121 IMPORT_C void Reserved_2(); 00122 00123 private: 00127 IMPORT_C void* ExtensionInterface( TUid aInterface ); 00128 00129 private: // personal 00130 void CommonConstructL(TInt aTextArrayResourceId, TInt aInitialIndex); 00131 00132 private: 00133 // the following members are owned 00134 CDesCArray* iArray; // the array of text items 00135 CAknQueryValueTextArray* iTextArray; 00136 CAknQueryValueText* iTextValue; 00137 TInt iSpare[2]; 00138 }; 00139 00140 // __AKNPOPUPFIELDTEXT_H__ 00141 #endif