s60uiexampleplayview.h

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

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

#ifndef __S60UIEXAMPLE_PLAYVIEW_H__
#define __S60UIEXAMPLE_PLAYVIEW_H__

#include <aknview.h>

class CS60UIExamplePlayContainer;
class CS60UIExampleModel;
class CAknIconArray;

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

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

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

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

    public:// Functions from base classes from CAknView


        /**
        * Id
        * From CAknView, return Uid.
        * @return Uid 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

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

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


    private:    // Data

        /**
        * iContainer,container for this view
        * owned by CS60UIExamplePlayView object.
        */
        CS60UIExamplePlayContainer* iContainer;

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


#endif // __S60UIEXAMPLE_PLAYVIEW_H__


// End of File

⌨️ 快捷键说明

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