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

Symbian

开发平台:

C/C++

  1. // Copyright (c) 2006 Nokia Corporation.
  2. #ifndef __S60UIEXAMPLEHIGHSCOREVIEW_H__
  3. #define __S60UIEXAMPLEHIGHSCOREVIEW_H__
  4. #include <aknview.h>
  5. class CS60UIExampleModel;
  6. class CS60UIExampleHighScoreContainer;
  7. /**
  8. *  CS60UIExampleHighScoreView view class.
  9. *
  10. */
  11. class CS60UIExampleHighScoreView : public CAknView
  12.     {
  13.     public:
  14.         /**
  15.         * NewL.
  16.         * Two-phased constructor.
  17.         * Construct a CS60UIExampleHighScoreView using two phase construction,
  18.         * and return a pointer to the created object
  19.         * @return A pointer to the created instance of CS60UIExampleHighScoreView
  20.         */
  21.         static CS60UIExampleHighScoreView* NewL(CS60UIExampleModel& aModel);
  22.         /**
  23.         * ~CNoughtsAndCrossesView
  24.         * Virtual Destructor.
  25.         */
  26.         virtual ~CS60UIExampleHighScoreView();
  27.     public: // Functions from base classes
  28.         /**
  29.         * From CAknView, Id.
  30.         * Returns the ID of view.
  31.         * @return The ID of view.
  32.         */
  33.         virtual TUid Id() const;
  34.         /**
  35.         * From CAknView, HandleCommandL.
  36.         * Handles the commands.
  37.         * @param aCommand Command to be handled.
  38.         */
  39.         virtual void HandleCommandL (TInt aCommand);
  40.     private: // Functions from base classes
  41.         /**
  42.         * From CAknView, DoActivateL.
  43.         * Creates the Container class object.
  44.         * @param aPrevViewId Specified TVwsViewId.
  45.         * @param aCustomMessageId Specified TUid.
  46.         * @param aCustomMessage Specified custom message.
  47.         */
  48.         virtual void DoActivateL (const TVwsViewId& aPrevViewId,
  49.                                   TUid aCustomMessageId, 
  50.                                   const TDesC8& aCustomMessage);
  51.         /**
  52.         * From CAknView, DoDeactivate.
  53.         * Deletes the Container class object.
  54.         */
  55.         virtual void DoDeactivate();
  56.     private:
  57.         /**
  58.         * CS60UIExampleHighScoreView.
  59.         * C++ default constructor.
  60.         */
  61.         CS60UIExampleHighScoreView(CS60UIExampleModel& aModel);
  62.         /**
  63.         * ConstructL.
  64.         * 2nd phase constructor.
  65.         */
  66.         void ConstructL();
  67.     private: // Data
  68.         /**
  69.         * iContainer,container for this view
  70.         * owned by CS60UIExampleHighScoreView object.
  71.         */
  72.         CS60UIExampleHighScoreContainer* iContainer;
  73.         /** 
  74.         * iModel, has the model data
  75.         * Not owned by this class
  76.         */ 
  77.         CS60UIExampleModel& iModel;
  78.        
  79.     };
  80. #endif // __S60UIEXAMPLEHIGHSCOREVIEW_H__
  81. // End of File