s60uiexampleform.h

来自「symbianOS第三版开发与实用教程部分源码和部分试验」· C头文件 代码 · 共 73 行

H
73
字号
// Copyright (c) 2006 Nokia Corporation.

#ifndef CS60UIEXAMPLEFORM_H
#define CS60UIEXAMPLEFORM_H

#include "aknform.h"

class CS60UIExampleForm : public CAknForm
	{
	public:
	
	    /**
	    * RunDlgLD()
	    * Creates, initialises, displays and then deletes the form
	    */
	    static TInt CS60UIExampleForm::RunDlgLD(TDes& aName, 
	                                            TTime& aBirthDate,  
	                                            TDes& aMobile);
	
	    /**
	    * ~CS60UIExampleForm()
	    * Destructor
	    */
		virtual ~CS60UIExampleForm();
		
	
	private:
	    /**
	    * NewL()
	    * Static two stage constructor
	    */
	    static CS60UIExampleForm* NewL(TDes& aName, 
	                                   TTime& aBirthDate, 
	                                   TDes& aMobile);
	    /**
	    * CS60UIExampleForm()
	    * First stage constructor
	    */
		CS60UIExampleForm(TDes& aName, 
		                  TTime& aBirthDate,  
		                  TDes& aMobile);
	    /**
	    * DynInitMenuPaneL()
	    * Used to remove unwanted default options from edit mode menu
	    * from MEikMenuObserver
	    */
		void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane) ;
		
	    /**
	    * SaveFormDataL()
	    * extracts information from editors
	    */
		TBool SaveFormDataL();
		
	    /**
	    * DoNotSaveFormDataL()
	    * loads editors with previous text
	    */
		void DoNotSaveFormDataL();
		
		
	private:
	    /**
	    * References to data held elsewhere
	    */
	    TDes&    iName;
	    TTime&   iBirthDate;
	    TDes&    iMobile;
	};

#endif	// CS60UIEXAMPLEFORM_H

// End of file

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?