S60UIExamplePlayView.h
上传用户:laixiong
上传日期:2007-03-11
资源大小:2994k
文件大小:3k
- // 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