⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 multiviewsview1.h

📁 演示如何使用Symbian系统的多视图(View)框架。
💻 H
字号:
/*
* ==============================================================================
*  Name        : multiviewsview1.h
*  Part of     : MultiViews
*  Interface   :
*  Description :
*  Version     :
*
Copyright (c) 2004 - 2006 Nokia Corporation.
*  This material, including documentation and any related
*  computer programs, is protected by copyright controlled by
*  Nokia Corporation.
* ==============================================================================
*/


#ifndef __MULTIVIEWS_VIEW1_H__
#define __MULTIVIEWS_VIEW1_H__

// INCLUDES
#include <aknview.h>


// FORWARD DECLARATIONS
class CMultiViewsContainer1;


// CLASS DECLARATION

/**
* CMultiViewsView1 view class.
* An instance of the Application View object for the MultiViews
* example application
*/
class CMultiViewsView1: public CAknView
    {
    public:   // Constructors and destructor

        /**
        * NewL.
        * Two-phased constructor.
        * Construct a CMultiViewsView1 for the AVKON application aApp.
        * Using two phase construction,and return a pointer to the created object
        * @return a pointer to the created instance of CMultiViewsView1
        */
        static CMultiViewsView1* NewL();

        /**
        * NewLC.
        * Two-phased constructor.
        * Construct a CMultiViewsView1 for the AVKON application aApp.
        * Using two phase construction,and return a pointer to the created object
        * @return a pointer to the created instance of CMultiViewsView1
        */
        static CMultiViewsView1* NewLC();

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

    public: // Functions from base classes from CAknView

        /**
        * Id
        * @return Id Uid value
        */
        TUid Id() const;

        /**
        * HandleCommandL
        * From CAknView, takes care of command handling.
        * @param aCommand Command to be handled
        */
        void HandleCommandL( TInt aCommand );
        
        /**
        * HandleSizeChange
        * Called by HandleResourceChangeL() from CMultiViewsAppUi when layout 
        * is changed.
        * @param aType Type of resources that have changed
        */
        void HandleSizeChange( TInt aType );

        /**
        * DoActivateL
        * From CAknExView, activate an AknView.
        * @param aPrevViewId The id of the previous view
        * @param aCustomMessageId message identifier
        * @param aCustomMessage custom message provided when the view is changed
        */
        void DoActivateL( const TVwsViewId& aPrevViewId,
                          TUid aCustomMessageId,
                          const TDesC8& aCustomMessage );

        /**
        * DoDeactivate
        * From AknView, deactivate an AknView
        * Remove the container class instance from the App UI's stack and
        * deletes the instance
        */
        void DoDeactivate();

    private:   // Constructors and destructor

        /**
        * CMultiViewsView1.
        * C++ default constructor.
        */
        CMultiViewsView1();

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

    private: // Data

        /**
        * iContainer,container for this view
        * owned by CMultiViewsView1 object.
        */
        CMultiViewsContainer1* iContainer;

        /** View Identifier **/
        TUid iIdentifier;
    };


#endif // __MULTIVIEWS_VIEW1_H__


// End of File

⌨️ 快捷键说明

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