testmenuappui.h

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

H
86
字号
/*
============================================================================
 Name        : TestMenuAppUi.h
 Author      : Lion
 Copyright   : Your copyright notice
 Description : Declares UI class for application.
============================================================================
*/

#ifndef __TESTMENUAPPUI_h__
#define __TESTMENUAPPUI_h__

// INCLUDES
#include <aknappui.h>


// FORWARD DECLARATIONS
class CTestMenuAppView;
enum TState
	{
	EMain = 0x7001,
	EAdd	
	};

// CLASS DECLARATION
/**
* CTestMenuAppUi application UI class.
* Interacts with the user through the UI and request message processing
* from the handler class
*/
class CTestMenuAppUi : public CAknAppUi
    {
    public: // Constructors and destructor

        /**
        * ConstructL.
        * 2nd phase constructor.
        */
        void ConstructL();

        /**
        * CTestMenuAppUi.
        * C++ default constructor. This needs to be public due to
        * the way the framework constructs the AppUi
        */
        CTestMenuAppUi();

        /**
        * ~CTestMenuAppUi.
        * Virtual Destructor.
        */
        virtual ~CTestMenuAppUi();

    private:  // Functions from base classes

        /**
        * From CEikAppUi, HandleCommandL.
        * Takes care of command handling.
        * @param aCommand Command to be handled.
        */
        void HandleCommandL( TInt aCommand );

        /**
        *  HandleStatusPaneSizeChange.
        *  Called by the framework when the application status pane
 		*  size is changed.
        */

		void HandleStatusPaneSizeChange();
        
        void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane);
    private: // Data

        /**
        * The application view
        * Owned by CTestMenuAppUi
        */
        CTestMenuAppView* iAppView;
        TState iState;
        
    };

#endif // __TESTMENUAPPUI_h__

// End of File

⌨️ 快捷键说明

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