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

Symbian

开发平台:

C/C++

  1. // Copyright: (c) 2006 Nokia Ltd.  All rights reserved.
  2. #ifndef S60MEMORYLABCONTAINER_H
  3. #define S60MEMORYLABCONTAINER_H
  4. // INCLUDES
  5. #include <coecntrl.h>
  6.    
  7. // FORWARD DECLARATIONS
  8. class CEikLabel;        // for example labels
  9. // CLASS DECLARATION
  10. /**
  11. *  CS60MemoryLabContainer  container control class.
  12. *  
  13. */
  14. class CS60MemoryLabContainer : public CCoeControl, MCoeControlObserver
  15.     {
  16.     public: // Constructors and destructor
  17.         
  18.         /**
  19.         * EPOC default constructor.
  20.         * @param aRect Frame rectangle for container.
  21.         */
  22.         void ConstructL(const TRect& aRect);
  23.         /**
  24.         * Destructor.
  25.         */
  26.         ~CS60MemoryLabContainer();
  27.     public: // New functions
  28.         void ToggleLabelsL();
  29.         void CleanupStackTestL();
  30.     public: // Functions from base classes
  31.     private: // Functions from base classes
  32.        /**
  33.         * From CoeControl,SizeChanged.
  34.         */
  35.         void SizeChanged();
  36.        /**
  37.         * From CoeControl,CountComponentControls.
  38.         */
  39.         TInt CountComponentControls() const;
  40.        /**
  41.         * From CCoeControl,ComponentControl.
  42.         */
  43.         CCoeControl* ComponentControl(TInt aIndex) const;
  44.        /**
  45.         * From CCoeControl,Draw.
  46.         */
  47.         void Draw(const TRect& aRect) const;
  48.    /**
  49.         * From ?base_class ?member_description
  50.         */
  51.         // event handling section
  52.         // e.g Listbox events
  53.         void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType);
  54.         
  55.     private: //data
  56.         
  57.         CEikLabel* iTopLabel;          // example label
  58.         CEikLabel* iBottomLabel;      // example label
  59.         TBool      iToggleFlag;
  60.     };
  61. #endif
  62. // End of File