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

📄 s60uiexampleinitialview.h

📁 《Symbian S60第3版手机程序开发与实用教程》光盘源代码
💻 H
字号:
// Copyright (c) 2006 Nokia Corporation.

#ifndef __S60UIEXAMPLE_INITIALVIEW_H__
#define __S60UIEXAMPLE_INITIALVIEW_H__

#include <aknview.h>

class CS60UIExampleInitialContainer;
class CS60UIExampleModel;

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

        /**
        * NewL.
        * Two-phased constructor.
        * Construct a CS60UIExampleInitialView 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 CS60UIExampleInitialView
        */
        static CS60UIExampleInitialView* NewL(CS60UIExampleModel& aModel);


        /**
        * NewLC.
        * Two-phased constructor.
        * Construct a CS60UIExampleInitialView 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 CS60UIExampleInitialView
        */
        static CS60UIExampleInitialView* NewLC(CS60UIExampleModel& aModel);

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


    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);


        /**
        * 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


        /**
        * CS60UIExampleInitialView.
        * C++ default constructor.
        */
        CS60UIExampleInitialView(CS60UIExampleModel& aModel);


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

    private: // Data

        /**
        * iContainer,container for this view
        * owned by CS60UIExampleInitialView object.
        */
        CS60UIExampleInitialContainer* iContainer;

        /** View Identifier **/
        TUid iIdentifier;
        
        /** 
        * iModel, has the model data
        * Not owned by this class
        */ 
        CS60UIExampleModel& iModel;

        
    };


#endif // __S60UIEXAMPLE_INITIALVIEW_H__


// End of File

⌨️ 快捷键说明

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