|
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 CTestSetStartedCasesView class |
|
15 * declaration. |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef TESTSETSTARTEDCASESVIEW_H |
|
20 #define TESTSETSTARTEDCASESVIEW_H |
|
21 |
|
22 // INCLUDES |
|
23 #include "View.h" |
|
24 #include <eiklbo.h> // MEikListBoxObserver |
|
25 #include <aknnavide.h> //CAknNavigationDecorator |
|
26 |
|
27 // CONSTANTS |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class CTestSetStartedCasesContainer; |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * CTestSetStartedCasesView view class. |
|
36 * |
|
37 */ |
|
38 class CTestSetStartedCasesView : public CView, public MEikListBoxObserver |
|
39 { |
|
40 public: // Constructors and destructor |
|
41 |
|
42 /** |
|
43 * Symbian OS default constructor. |
|
44 */ |
|
45 void ConstructL(); |
|
46 |
|
47 /** |
|
48 * Destructor. |
|
49 */ |
|
50 ~CTestSetStartedCasesView(); |
|
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 /** |
|
72 * Handles a list box event. |
|
73 * @param aListBox A pointer to list box (not used). |
|
74 * @param aEventType Type of list box event. |
|
75 */ |
|
76 void HandleListBoxEventL(CEikListBox* /*aListBox*/, TListBoxEvent aEventType); |
|
77 |
|
78 public: // New functions |
|
79 |
|
80 /** |
|
81 * Handles status changes of test cases in view. |
|
82 */ |
|
83 void TestCaseStateChangedL(); |
|
84 |
|
85 /** |
|
86 * Handles call to view test case´s output data. |
|
87 */ |
|
88 void ViewTestCaseOutputL(); |
|
89 |
|
90 private: |
|
91 |
|
92 /** |
|
93 * Initializes view when activated. |
|
94 * @param aPrevViewId Id of the previous view (not used). |
|
95 * @param aCustomMessageId Custom message id (not used). |
|
96 * @param aCustomMessage Custom message (not used). |
|
97 */ |
|
98 void DoActivateL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId, |
|
99 const TDesC8& aCustomMessage); |
|
100 |
|
101 /** |
|
102 * Deactivates view. |
|
103 */ |
|
104 void DoDeactivate(); |
|
105 |
|
106 /** |
|
107 * Initializes menu pane. |
|
108 * @param aResourceId Menu pane resource ID. |
|
109 * @param aMenuPane Menu pane pointer. |
|
110 */ |
|
111 void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane); |
|
112 |
|
113 /** |
|
114 * Refreshes view name shown in the navi pane. |
|
115 */ |
|
116 void RefreshNaviTitleL(); |
|
117 |
|
118 private: // Data |
|
119 CAknNavigationDecorator* iNaviDecorator; |
|
120 CTestSetStartedCasesContainer* iContainer; |
|
121 TName iFilterModule; |
|
122 TFileName iFilterTestCaseFile; |
|
123 TInt iSelectedTestCase; // Which testcase was |
|
124 // selected when view |
|
125 // was active earlier. |
|
126 }; |
|
127 |
|
128 #endif //TestSetStartedCasesVIEW_H |
|
129 |
|
130 // End of File |