examples/ForumNokia/Symbian_OS_Basics_Lab_Exercises_v3_1/Lab_04309.cb1/starter/inc/AOLabTextFlashContainer.h

00001 // Copyright (c) 2006 Nokia Corporation.
00002 
00003 #ifndef AOLABTEXTFLASHCONTAINER_H
00004 #define AOLABTEXTFLASHCONTAINER_H
00005 
00006 #include <coecntrl.h>
00007 #include "activetimernotify.h"
00008    
00009 class CEikLabel;
00010 class CActiveTimer;
00011 
00012 
00013 // Container control class
00014 class CAOLabTextFlashContainer : public CCoeControl, MActiveTimerNotify
00015                                
00016     {
00017     public: // Constructors and destructor
00018       
00019                 static CAOLabTextFlashContainer* NewL(const TRect& aRect);
00020         void ConstructL(const TRect& aRect);
00021         ~CAOLabTextFlashContainer();
00022 
00023         private: // Functions from base classes
00024 
00025         // From CoeControl
00026         void SizeChanged();
00027         TInt CountComponentControls() const;
00028         CCoeControl* ComponentControl(TInt aIndex) const;
00029         void Draw(const TRect& aRect) const;
00030 
00031         // From MActiveTimerNotify
00032         void TimerComplete(TInt aError);
00033         
00034     public: // Other functions
00035        
00036         void FlashingText();
00037         void StopFlashing();
00038         TBool IsFlashing() const {return iIsFlashing;}
00039 
00040     private: //data
00041         
00042         CEikLabel*            iTopLabel;          
00043         CEikLabel*            iBottomLabel;      
00044         CActiveTimer*         iActiveTimer;
00045         TBool                 iIsVisible;
00046         TBool                 iIsFlashing;
00047     };
00048 
00049 #endif // AOLABTEXTFLASHCONTAINER_H
00050 
00051 // End of File

Generated by  doxygen 1.6.2