00001
00002
00003
00004
00009 #ifndef __TICKER_H__
00010 #define __TICKER_H__
00011
00012 #include <e32std.h>
00013 #include <e32base.h>
00014 #include <w32std.h>
00015 #include <gdi.h>
00016 #include <e32math.h>
00017
00018 _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.");
00019 const TInt KFontHeight = 20;
00020
00026 class CTicker: public CBase
00027 {
00028 public:
00029 static CTicker* NewL(const TRect&, const TDesC&);
00030 ~CTicker();
00031
00032 void Start();
00033 void Stop();
00034
00035 private:
00036 CTicker(const TRect&, const TDesC&);
00037 void ConstructL();
00038 static TInt OnTick(TAny*);
00039 TBool Draw();
00040
00041 private:
00045 RWsSession iWs;
00049 RWindowGroup iGrp;
00053 RWindow iWin;
00057 CWsScreenDevice* iScr;
00061 CWindowGc* iGc;
00065 TRect iRect;
00069 CFont* iFont;
00073 TPoint iPos;
00077 TPtrC iString;
00081 TInt iLen;
00085 CPeriodic* iTimer;
00086 };
00087
00088 #endif