1 /* |
|
2 * Copyright (c) 2009 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: This file contains CTestCaseOutputView class |
|
15 * declaration. |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef TESTCASEOUTPUTVIEW_H |
|
20 #define TESTCASEOUTPUTVIEW_H |
|
21 |
|
22 // INCLUDES |
|
23 #include "View.h" |
|
24 #include <aknnavide.h> |
|
25 |
|
26 |
|
27 // CONSTANTS |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class CTestCaseOutputContainer; |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * CTestCaseOutputView view class. |
|
36 * |
|
37 */ |
|
38 class CTestCaseOutputView : public CView |
|
39 { |
|
40 public: // Constructors and destructor |
|
41 |
|
42 /** |
|
43 * Symbian OS default constructor. |
|
44 */ |
|
45 void ConstructL(); |
|
46 |
|
47 /** |
|
48 * Destructor. |
|
49 */ |
|
50 ~CTestCaseOutputView(); |
|
51 |
|
52 public: // Functions from base classes |
|
53 |
|
54 /** |
|
55 * Returns view´s id. |
|
56 * @return View id. |
|
57 */ |
|
58 TUid Id() const; |
|
59 |
|
60 /** |
|
61 * Handles a command. |
|
62 * @param aCommand A command ID. |
|
63 */ |
|
64 void HandleCommandL( TInt aCommand ); |
|
65 |
|
66 /** |
|
67 * Handles client rect changes. |
|
68 */ |
|
69 void HandleClientRectChange(); |
|
70 |
|
71 public: // New functions |
|
72 |
|
73 /** |
|
74 * Receives output update notification from AppUI |
|
75 * @param aTestCase A pointer to started test case. |
|
76 */ |
|
77 void OutputUpdateL( CStartedTestCase* aTestCase ); |
|
78 |
|
79 /** |
|
80 * Prints test case state to title pane |
|
81 */ |
|
82 void PrintTestCaseStateL(); |
|
83 |
|
84 /** |
|
85 * Handles test case state changed notification |
|
86 */ |
|
87 void TestCaseStateChangedL(); |
|
88 |
|
89 private: |
|
90 |
|
91 /** |
|
92 * Initializes view when activated. |
|
93 * @param aPrevViewId Id of the previous view (not used). |
|
94 * @param aCustomMessageId Custom message id (not used). |
|
95 * @param aCustomMessage Custom message (not used). |
|
96 */ |
|
97 void DoActivateL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId, |
|
98 const TDesC8& aCustomMessage); |
|
99 |
|
100 /** |
|
101 * Deactivates view. |
|
102 */ |
|
103 void DoDeactivate(); |
|
104 |
|
105 /** From MEikMenuObserver |
|
106 * Initializes menu pane. |
|
107 * @param aResourceId Menu pane resource ID |
|
108 * @param aMenuPane Menu pane pointer |
|
109 */ |
|
110 void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane); |
|
111 |
|
112 |
|
113 private: // Data |
|
114 CAknNavigationDecorator* iNaviDecorator; |
|
115 CTestCaseOutputContainer* iContainer; |
|
116 CStartedTestCase* iCurrentTestCase; |
|
117 |
|
118 }; |
|
119 |
|
120 #endif //SHOWSTARTEDCASESVIEW_H |
|
121 |
|
122 // End of File |
|