examples/ForumNokia/Symbian_OS_Basics_Lab_Exercises_v3_1/Lab_04304.cb1/solution/inc/S60MemoryLabContainer.h

00001 // Copyright: (c) 2006 Nokia Ltd.  All rights reserved.
00002 
00003 #ifndef S60MEMORYLABCONTAINER_H
00004 #define S60MEMORYLABCONTAINER_H
00005 
00006 // INCLUDES
00007 #include <coecntrl.h>
00008    
00009 // FORWARD DECLARATIONS
00010 class CEikLabel;        // for example labels
00011 
00012 // CLASS DECLARATION
00013 
00018 class CS60MemoryLabContainer : public CCoeControl, MCoeControlObserver
00019     {
00020     public: // Constructors and destructor
00021         
00026         void ConstructL(const TRect& aRect);
00027 
00031         ~CS60MemoryLabContainer();
00032 
00033     public: // New functions
00034         void ToggleLabelsL();
00035         void CleanupStackTestL();
00036 
00037     public: // Functions from base classes
00038 
00039     private: // Functions from base classes
00040 
00044         void SizeChanged();
00045 
00049         TInt CountComponentControls() const;
00050 
00054         CCoeControl* ComponentControl(TInt aIndex) const;
00055 
00059         void Draw(const TRect& aRect) const;
00060 
00064         // event handling section
00065         // e.g Listbox events
00066         void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType);
00067         
00068     private: //data
00069         
00070         CEikLabel* iTopLabel;          // example label
00071         CEikLabel* iBottomLabel;      // example label
00072         TBool      iToggleFlag;
00073     };
00074 
00075 #endif
00076 
00077 // End of File

Generated by  doxygen 1.6.2