Nokia N97 SDK
Example Applications Guide

aknexpopfieldmanylinedialog.h

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

© Nokia 2009

Back to top