/* Machine-made version of this file copyright (c) 2005 Somusar */ /* Derived from samples that are Copyright (c) 2004, Nokia. All rights reserved */ #ifndef __TWOFORMSSAVETESTFORM_H__ #define __TWOFORMSSAVETESTFORM_H__ // INCLUDES #include #include "TwoForms.hrh" // CLASS DECLARATION /** * CTwoFormsApplication application class. * Provides factory to create concrete document object. */ class CTwoFormsSaveForm : public CAknForm { public: // Constructor and destructor /** * NewL * Two-phased constructor. */ static CTwoFormsSaveForm* NewL(); /** * ~CTwoFormsSaveForm * Destructor. */ virtual ~CTwoFormsSaveForm(); public: /** * From CAknForm, ExecuteLD * @return CAknForm::ExecuteLD return value * @param aResourceId resource ID */ TInt ExecuteLD( TInt aResourceId ); /** * From CAknForm, PrepareLC * @param aResourceId resource ID */ void PrepareLC( TInt aResourceId ); private: // Constructor /** * CTwoFormsSaveForm * Default constructor. */ CTwoFormsSaveForm(); /** * ConstructL * Second-phase constructor. */ void ConstructL(); private: // Functions from base class /** * From CEikDialog, PostLayoutDynInitL * Set default field value to member data. */ void PostLayoutDynInitL(); /** * From CAknForm , QuerySaveChangesL * Show save query. If user answers "No" to this query. * return field value to the value which is before editing. */ TBool QuerySaveChangesL(); /** * From CAknForm , SaveFormDataL * Save the contents of the form. */ TBool SaveFormDataL(); /** * From CAknForm, DoNotSaveFormDataL * Does not save the contents of the form. */ void DoNotSaveFormDataL(); private: /** * iFirstFormNumberData */ TInt iFirstFormNumberData; /** * iFirstFormDateData */ TTime iFirstFormDateData; /** * iFirstFormTimeData */ TTime iFirstFormTimeData; /** * iFirstFormDurationData */ TTimeIntervalSeconds iFirstFormDurationData; /** * iFirstFormPasswordData */ TBuf iFirstFormPasswordData; /** * iFirstFormFirstNameData */ TBuf iFirstFormFirstNameData; /** * iFirstFormLastNameData */ TBuf iFirstFormLastNameData; /** * iFirstFormCompanyData */ TBuf iFirstFormCompanyData; /** * iFirstFormAddressData */ TBuf iFirstFormAddressData; /** * iFirstFormCityData */ TBuf iFirstFormCityData; /** * iSecondFormCityData */ TBuf iSecondFormCityData; /** * iSecondFormAddressData */ TBuf iSecondFormAddressData; /** * iSecondFormCompanyData */ TBuf iSecondFormCompanyData; /** * iSecondFormLastNameData */ TBuf iSecondFormLastNameData; /** * iSecondFormFirstNameData */ TBuf iSecondFormFirstNameData; /** * iFirstFormNumberLabel */ TBuf iFirstFormNumberLabel; /** * iFirstFormDateLabel */ TBuf iFirstFormDateLabel; /** * iFirstFormTimeLabel */ TBuf iFirstFormTimeLabel; /** * iFirstFormDurationLabel */ TBuf iFirstFormDurationLabel; /** * iFirstFormPasswordLabel */ TBuf iFirstFormPasswordLabel; /** * iFirstFormFirstNameLabel */ TBuf iFirstFormFirstNameLabel; /** * iFirstFormLastNameLabel */ TBuf iFirstFormLastNameLabel; /** * iFirstFormCompanyLabel */ TBuf iFirstFormCompanyLabel; /** * iFirstFormAddressLabel */ TBuf iFirstFormAddressLabel; /** * iFirstFormCityLabel */ TBuf iFirstFormCityLabel; /** * iSecondFormCityLabel */ TBuf iSecondFormCityLabel; /** * iSecondFormAddressLabel */ TBuf iSecondFormAddressLabel; /** * iSecondFormCompanyLabel */ TBuf iSecondFormCompanyLabel; /** * iSecondFormLastNameLabel */ TBuf iSecondFormLastNameLabel; /** * iSecondFormFirstNameLabel */ TBuf iSecondFormFirstNameLabel; /** * iCurrentId */ TInt iCurrentId; }; #endif // __TWOFORMSSAVETESTFORM_H__ // End of File