examples/Graphics/coverflow/inc/ticker.h

Go to the documentation of this file.
00001 // ticker.h
00002 /*
00003  * Copyright (c) 2005-2006 Nokia Corporation and/or its subsidiary(-ies).
00004  * All rights reserved.
00005  * This component and the accompanying materials are made available
00006  * under the terms of "Eclipse Public License v1.0"
00007  * which accompanies this distribution, and is available
00008  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
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

Generated by  doxygen 1.6.2