00001
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
00014 class CAOLabTextFlashContainer : public CCoeControl, MActiveTimerNotify
00015
00016 {
00017 public:
00018
00019 static CAOLabTextFlashContainer* NewL(const TRect& aRect);
00020 void ConstructL(const TRect& aRect);
00021 ~CAOLabTextFlashContainer();
00022
00023 private:
00024
00025
00026 void SizeChanged();
00027 TInt CountComponentControls() const;
00028 CCoeControl* ComponentControl(TInt aIndex) const;
00029 void Draw(const TRect& aRect) const;
00030
00031
00032 void TimerComplete(TInt aError);
00033
00034 public:
00035
00036 void FlashingText();
00037 void StopFlashing();
00038 TBool IsFlashing() const {return iIsFlashing;}
00039
00040 private:
00041
00042 CEikLabel* iTopLabel;
00043 CEikLabel* iBottomLabel;
00044 CActiveTimer* iActiveTimer;
00045 TBool iIsVisible;
00046 TBool iIsFlashing;
00047 };
00048
00049 #endif // AOLABTEXTFLASHCONTAINER_H
00050
00051