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.         * DynInitMenuPaneL()
  71.         * Used to remove unwanted default options from edit mode menu
  72.         * from MEikMenuObserver
  73.         */
  74.         void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane);
  75.         
  76.     private:    // Constructors and destructor
  77.         /**
  78.         * CS60UIExamplePlayView.
  79.         * C++ default constructor.
  80.         */
  81.         CS60UIExamplePlayView(CS60UIExampleModel& aModel);
  82.         /**
  83.         * ConstructL.
  84.         * 2nd phase constructor.
  85.         */
  86.         void ConstructL();
  87.     private:    // Data
  88.         /**
  89.         * iContainer,container for this view
  90.         * owned by CS60UIExamplePlayView object.
  91.         */
  92.         CS60UIExamplePlayContainer* iContainer;
  93.         /** View Identifier **/
  94.         TUid       iIdentifier;
  95.         
  96.         /** 
  97.         * iModel, has the model data
  98.         * Not owned by this class
  99.         */ 
  100.         CS60UIExampleModel& iModel;
  101.        };
  102. #endif // __S60UIEXAMPLE_PLAYVIEW_H__
  103. // End of File