helloviewappui.h

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

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

#ifndef __HELLOVIEWAPPUI_h__
#define __HELLOVIEWAPPUI_h__

// INCLUDES
//#include <aknappui.h>
#include <aknviewappui.h> 
#include <aknnavi.h> 
#include <akntabgrp.h> 
#include <aknnavide.h> 

// FORWARD DECLARATIONS
class CHelloViewAppView1;
class CHelloViewAppView2;

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

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

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

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

    private:  // Functions from base classes

        /**
        * From CEikAppUi, HandleCommandL.
        * Takes care of command handling.
        * @param aCommand Command to be handled.
        */
        void HandleCommandL( TInt aCommand );
		TKeyResponse HandleKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);
        /**
        *  HandleStatusPaneSizeChange.
        *  Called by the framework when the application status pane
 		*  size is changed.
        */


        
    private: // Data

        /**
        * The application view
        * Owned by CHelloViewAppUi
        */
      
        CAknNavigationControlContainer* iNaviPane;
        CAknTabGroup* iTabGroup;
        CAknNavigationDecorator* iDecoratedTabGroup;
        CHelloViewAppView1* view1;
        CHelloViewAppView2* view2;
        
    };

#endif // __HELLOVIEWAPPUI_h__

// End of File

⌨️ 快捷键说明

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