|
1 /* |
|
2 * Copyright (c) 2008 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: alfperfapp test case runner view class definition. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_ALFPERFAPPTESTCASEEXECUTIONVIEW_H |
|
20 #define C_ALFPERFAPPTESTCASEEXECUTIONVIEW_H |
|
21 |
|
22 #include <aknview.h> |
|
23 #include <apaserverapp.h> |
|
24 |
|
25 class CAlfPerfAppModel; |
|
26 class CAlfPerfAppTestCaseFactory; |
|
27 struct TAlfDebugServerMeasurements; |
|
28 class RAlfPerfAppDaemon; |
|
29 |
|
30 /** |
|
31 * CAlfPerfAppTestCaseExecutionView view class. |
|
32 */ |
|
33 class CAlfPerfAppTestCaseExecutionView : public CAknView |
|
34 { |
|
35 public: |
|
36 |
|
37 static CAlfPerfAppTestCaseExecutionView* NewLC( CAlfPerfAppModel& aModel ); |
|
38 ~CAlfPerfAppTestCaseExecutionView(); |
|
39 |
|
40 /** |
|
41 * This method is called by view container. This will notify |
|
42 * current test case about layout change. |
|
43 * @param aRect visible area rect. |
|
44 */ |
|
45 void NotifyLayoutChange( const TRect& aRect ); |
|
46 |
|
47 /** |
|
48 * This method is called when all test cases has been executed. |
|
49 */ |
|
50 void NotifyExecutionCompletedL(); |
|
51 |
|
52 /** |
|
53 * This method is called when test case should be shown to end-user. |
|
54 * @param aVisible ETrue if test case is visible, EFalse otherwise. |
|
55 */ |
|
56 void NotifyTestCaseVisible( TBool aVisible ); |
|
57 |
|
58 |
|
59 private: |
|
60 |
|
61 CAlfPerfAppTestCaseExecutionView( CAlfPerfAppModel& aModel ); |
|
62 void ConstructL(); |
|
63 |
|
64 private: |
|
65 |
|
66 // From base class CAknView |
|
67 virtual TUid Id() const; |
|
68 |
|
69 virtual void DoActivateL( |
|
70 const TVwsViewId& aPrevViewId, |
|
71 TUid aCustomMessageId, |
|
72 const TDesC8& aCustomMessage ); |
|
73 virtual void DoDeactivate(); |
|
74 |
|
75 virtual void HandleCommandL( TInt aCommand ); |
|
76 |
|
77 private: |
|
78 |
|
79 /** |
|
80 * Reference to model. |
|
81 * Not owned. |
|
82 */ |
|
83 CAlfPerfAppModel& iModel; |
|
84 |
|
85 /** |
|
86 * Test case factory. |
|
87 * Owned. |
|
88 */ |
|
89 CAlfPerfAppTestCaseFactory* iFactory; |
|
90 |
|
91 /** |
|
92 * Container control class. |
|
93 */ |
|
94 class CContainer; |
|
95 |
|
96 /** |
|
97 * Container object. |
|
98 * Owned. |
|
99 */ |
|
100 CContainer* iContainer; |
|
101 |
|
102 /** |
|
103 * Active object class that is used to execute test cases. |
|
104 */ |
|
105 class CActiveExecuter; |
|
106 |
|
107 /** |
|
108 * Active object for execution. |
|
109 * Owned. |
|
110 */ |
|
111 CActiveExecuter* iExecuter; |
|
112 |
|
113 /** |
|
114 * Daemon for performance measurements. |
|
115 * Owned. |
|
116 */ |
|
117 RAlfPerfAppDaemon* iDaemon; |
|
118 }; |
|
119 |
|
120 #endif // C_ALFPERFAPPTESTCASEEXECUTIONVIEW_H |
|
121 |