00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00015 #ifndef __TICKER_H__
00016 #define __TICKER_H__
00017
00018 #include <e32std.h>
00019 #include <e32base.h>
00020 #include <w32std.h>
00021 #include <gdi.h>
00022 #include <e32math.h>
00023
00024 _LIT(KNews, "Nokia launches US Edition of Nokia N95. The new Nokia N95, optimized for use with North American HSDPA/3G networks with additional features including: A-GPS, 124MB RAM and a higher capacity battery.");
00025 const TInt KFontHeight = 20;
00026
00032 class CTicker: public CBase
00033 {
00034 public:
00035 static CTicker* NewL(const TRect&, const TDesC&);
00036 ~CTicker();
00037
00038 void Start();
00039 void Stop();
00040
00041 private:
00042 CTicker(const TRect&, const TDesC&);
00043 void ConstructL();
00044 static TInt OnTick(TAny*);
00045 TBool Draw();
00046
00047 private:
00051 RWsSession iWs;
00055 RWindowGroup iGrp;
00059 RWindow iWin;
00063 CWsScreenDevice* iScr;
00067 CWindowGc* iGc;
00071 TRect iRect;
00075 CFont* iFont;
00079 TPoint iPos;
00083 TPtrC iString;
00087 TInt iLen;
00091 CPeriodic* iTimer;
00092 };
00093
00094 #endif