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

Symbian

开发平台:

C/C++

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