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

Symbian

开发平台:

C/C++

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