S60UIExampleForm.h
上传用户:laixiong
上传日期:2007-03-11
资源大小:2994k
文件大小:2k
源码类别:

Symbian

开发平台:

C/C++

  1. // Copyright (c) 2006 Nokia Corporation.
  2. #ifndef CS60UIEXAMPLEFORM_H
  3. #define CS60UIEXAMPLEFORM_H
  4. #include "aknform.h"
  5. class CS60UIExampleForm : public CAknForm
  6. {
  7. public:
  8.     /**
  9.     * RunDlgLD()
  10.     * Creates, initialises, displays and then deletes the form
  11.     */
  12.     static TInt CS60UIExampleForm::RunDlgLD(TDes& aName, 
  13.                                             TTime& aBirthDate,  
  14.                                             TDes& aMobile);
  15.     /**
  16.     * ~CS60UIExampleForm()
  17.     * Destructor
  18.     */
  19. virtual ~CS60UIExampleForm();
  20. private:
  21.     /**
  22.     * NewL()
  23.     * Static two stage constructor
  24.     */
  25.     static CS60UIExampleForm* NewL(TDes& aName, 
  26.                                    TTime& aBirthDate, 
  27.                                    TDes& aMobile);
  28.     /**
  29.     * CS60UIExampleForm()
  30.     * First stage constructor
  31.     */
  32. CS60UIExampleForm(TDes& aName, 
  33.                   TTime& aBirthDate,  
  34.                   TDes& aMobile);
  35.     /**
  36.     * DynInitMenuPaneL()
  37.     * Used to remove unwanted default options from edit mode menu
  38.     * from MEikMenuObserver
  39.     */
  40. void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane) ;
  41.     /**
  42.     * SaveFormDataL()
  43.     * extracts information from editors
  44.     */
  45. TBool SaveFormDataL();
  46.     /**
  47.     * DoNotSaveFormDataL()
  48.     * loads editors with previous text
  49.     */
  50. void DoNotSaveFormDataL();
  51. private:
  52.     /**
  53.     * References to data held elsewhere
  54.     */
  55.     TDes&    iName;
  56.     TTime&   iBirthDate;
  57.     TDes&    iMobile;
  58. };
  59. #endif // CS60UIEXAMPLEFORM_H
  60. // End of file