00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef __AKNFORM_H__
00026 #define __AKNFORM_H__
00027
00028
00029 #include <aknDialog.h>
00030
00031
00032 class CEikMenuBar ;
00033
00042 class CAknForm : public CAknDialog
00043 {
00044 public:
00045
00049 IMPORT_C CAknForm();
00050
00056 IMPORT_C void ConstructL( TInt aMenuBarId=0 );
00057
00061 IMPORT_C ~CAknForm();
00062
00070 IMPORT_C virtual void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane );
00071
00077 IMPORT_C virtual void ProcessCommandL( TInt aCommandId );
00078
00079 protected:
00090 IMPORT_C virtual TBool OkToExitL( TInt aButtonId );
00091
00099 IMPORT_C virtual void PrepareForFocusTransitionL();
00100
00101 public:
00102
00110 IMPORT_C void HandleResourceChange(TInt aType);
00111
00117 IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent);
00118
00119 protected:
00120
00129 IMPORT_C virtual TBool SaveFormDataL();
00130
00138 IMPORT_C virtual void DoNotSaveFormDataL();
00139
00151 IMPORT_C virtual TBool QuerySaveChangesL();
00152
00158 IMPORT_C virtual void EditCurrentLabelL();
00159
00165 IMPORT_C virtual void DeleteCurrentItemL();
00166
00170 IMPORT_C virtual void AddItemL();
00171
00176 IMPORT_C void SetChangesPending(TBool aChangesPending);
00177
00184 IMPORT_C void PostLayoutDynInitL();
00185
00192 IMPORT_C void HandleControlStateChangeL(TInt aControlId);
00193
00198 IMPORT_C void SetInitialCurrentLine();
00199
00205 IMPORT_C TBool UnsavedEdit() const;
00206
00212 IMPORT_C TBool Deleting() const;
00213
00214 enum TFlags
00215 {
00217 EDeleting = 0x1,
00218
00220 EUnsavedEdit = 0x2
00221 };
00222
00229 IMPORT_C void SetFormFlag( TFlags aFlagPattern, TBool aSetTheFlag );
00230
00231 private:
00235 IMPORT_C void* ExtensionInterface( TUid aInterface );
00236
00237 private:
00238 IMPORT_C virtual void CEikDialog_Reserved_1();
00239 IMPORT_C virtual void CEikDialog_Reserved_2();
00240 private:
00241 IMPORT_C virtual void CAknDialog_Reserved();
00242 private:
00243 IMPORT_C virtual void CAknForm_Reserved();
00244 private:
00245 void DoLayout();
00246 private :
00247 TInt iMenuBarId ;
00248 TInt iFlags ;
00249 TInt iWsBufferRequestID;
00250 } ;
00251
00252 #endif // __AKNFORM_H__