windowing/windowserver/nonnga/SERVER/debugbar.h
changeset 0 5d03bc08d59c
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __DEBUGBAR_H__
       
    17 #define __DEBUGBAR_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 #include <fbs.h>
       
    21 
       
    22 class CScreen;
       
    23 
       
    24 class CDebugBar : public CBase
       
    25 	{
       
    26 	public:
       
    27 		static CDebugBar* NewL(CScreen * aScreen,const TRect& aScreenRect,TTimeIntervalMicroSeconds32 aRefreshInterval);
       
    28 		const TRect& Rect() const;
       
    29 		~CDebugBar();
       
    30 		void OnKeyEvent();
       
    31 		void RedrawDebugBar() const;
       
    32 	private:
       
    33 		CDebugBar(CScreen * aScreen,const TRect& aScreenRect);
       
    34 		void ConstructL(TTimeIntervalMicroSeconds32 aRefreshInterval);
       
    35 		static TBool RedrawDebugBarCallback(TAny* aAny);
       
    36 	private:
       
    37 		CPeriodic* iTimer;
       
    38 		CScreen* iScreen;
       
    39 		CFbsFont* iFont;
       
    40 		TRect iScreenRect;
       
    41 		TInt iBaseline;
       
    42 		mutable TBuf<128> iBuf;
       
    43 		TInt iKeyEvents;
       
    44 		TInt iPolls;
       
    45 		mutable TInt64 iLastTotal;
       
    46 		mutable TInt64 iLastIdle;
       
    47 		mutable TInt64 iLastDrawing;
       
    48 		mutable TInt64 iLastReclaimedIdleTime;
       
    49 	};
       
    50 
       
    51 #endif