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

Symbian

开发平台:

C/C++

  1. // Copyright (c) 2006 Nokia Corporation.
  2. #ifndef S60RESOURCELABCONTAINER_H
  3. #define S60RESOURCELABCONTAINER_H
  4. // INCLUDES
  5. #include <coecntrl.h>
  6.    
  7. // FORWARD DECLARATIONS
  8. class CEikLabel;        // for example labels
  9. // CLASS DECLARATION
  10. /**
  11. *  CS60ResourceLabContainer  container control class.
  12. *  
  13. */
  14. class CS60ResourceLabContainer : 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.         ~CS60ResourceLabContainer();
  27.     public: // New functions
  28.         void GoodbyeL();
  29.     public: // Functions from base classes
  30.     private: // Functions from base classes
  31.        /**
  32.         * From CoeControl,SizeChanged.
  33.         */
  34.         void SizeChanged();
  35.        /**
  36.         * From CoeControl,CountComponentControls.
  37.         */
  38.         TInt CountComponentControls() const;
  39.        /**
  40.         * From CCoeControl,ComponentControl.
  41.         */
  42.         CCoeControl* ComponentControl(TInt aIndex) const;
  43.        /**
  44.         * From CCoeControl,Draw.
  45.         */
  46.         void Draw(const TRect& aRect) const;
  47.        /**
  48.         * From ?base_class ?member_description
  49.         */
  50.         // event handling section
  51.         // e.g Listbox events
  52.         void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType);
  53.         
  54.     private: //data
  55.         
  56.         CEikLabel* iLabel;          // example label
  57.         CEikLabel* iToDoLabel;      // example label
  58.     };
  59. #endif
  60. // End of File