S60UIExamplePlayView.h
上传用户:laixiong
上传日期:2007-03-11
资源大小:2994k
文件大小:3k
源码类别:

Symbian

开发平台:

C/C++

  1. // Copyright (c) 2006 Nokia Corporation.
  2. #ifndef __S60UIEXAMPLE_PLAYVIEW_H__
  3. #define __S60UIEXAMPLE_PLAYVIEW_H__
  4. #include <aknview.h>
  5. class CS60UIExamplePlayContainer;
  6. class CS60UIExampleModel;
  7. class CAknIconArray;
  8. /**
  9. * CS60UIExamplePlayView view class.
  10. * An instance of the Application View object for the S60UIExample
  11. * example application
  12. */
  13. class CS60UIExamplePlayView: public CAknView
  14.     {
  15.     public:    // Constructors and destructor
  16.         /**
  17.         * NewL.
  18.         * Two-phased constructor.
  19.         * Construct a CS60UIExamplePlayView for the AVKON application aApp.
  20.         * Using two phase construction,and return a pointer to the created object.
  21.         * @return a pointer to the created instance of CS60UIExamplePlayView
  22.         */
  23.         static CS60UIExamplePlayView* NewL(CS60UIExampleModel& aModel);
  24.         /**
  25.         * NewLC.
  26.         * Two-phased constructor.
  27.         * Construct a CS60UIExamplePlayView for the AVKON application aApp.
  28.         * Using two phase construction,and return a pointer to the created object.
  29.         * @return a pointer to the created instance of CS60UIExamplePlayView
  30.         */
  31.         static CS60UIExamplePlayView* NewLC(CS60UIExampleModel& aModel);
  32.         /**
  33.         * ~CS60UIExamplePlayView.
  34.         * Virtual Destructor.
  35.         */
  36.         virtual ~CS60UIExamplePlayView();
  37.         
  38.     public:// Functions from base classes from CAknView
  39.         /**
  40.         * Id
  41.         * From CAknView, return Uid.
  42.         * @return Uid Uid value
  43.         */
  44.         TUid Id() const;
  45.         /**
  46.         * HandleCommandL
  47.         * From CAknView, takes care of command handling.
  48.         * @param aCommand Command to be handled
  49.         */
  50.         void HandleCommandL(TInt aCommand);
  51.         /**
  52.         * DoActivateL
  53.         * From CAknExView, activate an AknView.
  54.         * @param aPrevViewId The id of the previous view
  55.         * @param aCustomMessageId message identifier
  56.         * @param aCustomMessage custom message provided when the view is changed
  57.         */
  58.         void DoActivateL(const TVwsViewId& aPrevViewId,
  59.                          TUid aCustomMessageId,
  60.                          const TDesC8& aCustomMessage);
  61.         /**
  62.         * DoDeactivate
  63.         * From AknView, deactivate an AknView
  64.         * Remove the container class instance from the App UI's stack and
  65.         * deletes the instance
  66.         */
  67.         void DoDeactivate();
  68.         
  69.         
  70.     private:    // Constructors and destructor
  71.         /**
  72.         * CS60UIExamplePlayView.
  73.         * C++ default constructor.
  74.         */
  75.         CS60UIExamplePlayView(CS60UIExampleModel& aModel);
  76.         /**
  77.         * ConstructL.
  78.         * 2nd phase constructor.
  79.         */
  80.         void ConstructL();
  81.     private:    // Data
  82.         /**
  83.         * iContainer,container for this view
  84.         * owned by CS60UIExamplePlayView object.
  85.         */
  86.         CS60UIExamplePlayContainer* iContainer;
  87.         /** View Identifier **/
  88.         TUid       iIdentifier;
  89.         
  90.         /** 
  91.         * iModel, has the model data
  92.         * Not owned by this class
  93.         */ 
  94.         CS60UIExampleModel& iModel;
  95.        };
  96. #endif // __S60UIEXAMPLE_PLAYVIEW_H__
  97. // End of File