|
1 /* |
|
2 * Copyright (c) Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef T_ALFDEBUGSERVER_H |
|
20 #define T_ALFDEBUGSERVER_H |
|
21 |
|
22 #include <alf/alfextensionfactory.h> |
|
23 |
|
24 class CHuiControlGroup; |
|
25 class CMonitorControl; |
|
26 |
|
27 class TAlfDebugHandler : public MAlfExtensionFactory |
|
28 { |
|
29 public: |
|
30 MAlfExtension* CreateExtensionL( |
|
31 const TInt aObjectId, |
|
32 const TDesC8& aInitialParams, |
|
33 MAlfInterfaceProvider& aResolver ); |
|
34 void Release(); |
|
35 }; |
|
36 |
|
37 class CAlfDebugServer : public CBase, public MAlfExtension |
|
38 { |
|
39 public: |
|
40 CAlfDebugServer( CHuiEnv& aEnv ); |
|
41 ~CAlfDebugServer(); |
|
42 virtual void Release(); |
|
43 virtual TAny* GetInterface( const THuiInterfaceSupport& aInterface ); |
|
44 virtual void HandleCmdL( TInt aCommandId, const TDesC8& aInputBuffer, TDes8& aResponse ); |
|
45 |
|
46 void ShowFrameRateL( TInt aInterval ); |
|
47 void ShowServerHeapL( TBool aShow ); |
|
48 |
|
49 private: |
|
50 void CreateControlIfNeededL(); |
|
51 void DeteteControlIfNeeded(); |
|
52 |
|
53 private: |
|
54 CHuiEnv& iEnv; |
|
55 |
|
56 CHuiControlGroup* iGroup; |
|
57 CMonitorControl* iControl; |
|
58 |
|
59 // For showing the framerate |
|
60 TInt iUsedFrameRateMonitorControlGroupId; |
|
61 |
|
62 public: |
|
63 // |
|
64 TInt iFpsUpdatePeriod; |
|
65 TInt iServerHeapUpdatePeriod; |
|
66 |
|
67 }; |
|
68 |
|
69 |
|
70 #endif // T_ALFDEBUGSERVER_H |