|
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 CStartCasesView class declaration. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef STARTCASESVIEW_H |
|
19 #define STARTCASESVIEW_H |
|
20 |
|
21 // INCLUDES |
|
22 #include "View.h" |
|
23 #include <eiklbo.h> // MEikListBoxObserver |
|
24 #include <aknnavide.h> |
|
25 |
|
26 |
|
27 // CONSTANTS |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class CStartCasesContainer; |
|
31 |
|
32 |
|
33 // CLASS DECLARATION |
|
34 |
|
35 /** |
|
36 * CTestCaseMenuView view class. |
|
37 * |
|
38 */ |
|
39 class CStartCasesView : public CView, public MEikListBoxObserver //CAknView |
|
40 { |
|
41 public: // Constructors and destructor |
|
42 |
|
43 /** |
|
44 * Symbian OS default constructor. |
|
45 */ |
|
46 void ConstructL(); |
|
47 |
|
48 /** |
|
49 * Destructor. |
|
50 */ |
|
51 ~CStartCasesView(); |
|
52 |
|
53 public: // Functions from base classes |
|
54 |
|
55 /** |
|
56 * Returns view´s id. |
|
57 * @return View id. |
|
58 */ |
|
59 TUid Id() const; |
|
60 |
|
61 /** |
|
62 * Handles a command. |
|
63 * @param aCommand A command ID. |
|
64 */ |
|
65 void HandleCommandL( TInt aCommand ); |
|
66 |
|
67 /** |
|
68 * Handles client rect changes. |
|
69 */ |
|
70 void HandleClientRectChange(); |
|
71 |
|
72 /** |
|
73 * Handles a list box event. |
|
74 * @param aListBox A pointer to list box. |
|
75 * @param aEventType Type of list box event. |
|
76 */ |
|
77 void HandleListBoxEventL(CEikListBox* aListBox, TListBoxEvent aEventType); |
|
78 |
|
79 public: // New functions |
|
80 |
|
81 /** |
|
82 * Starts test case. |
|
83 */ |
|
84 void StartTestCaseL(); |
|
85 |
|
86 /** |
|
87 * Starts multiple test cases. |
|
88 * @param aSelectedÍndexes Indexes of selected test cases. |
|
89 */ |
|
90 void StartTestCasesL( RArray<TInt> aSelectedIndexes ); |
|
91 |
|
92 private: |
|
93 |
|
94 /** |
|
95 * Initializes view when activated. |
|
96 * @param aPrevViewId Id of the previous view (not used). |
|
97 * @param aCustomMessageId Custom message id (not used). |
|
98 * @param aCustomMessage Custom message (not used). |
|
99 */ |
|
100 void DoActivateL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId, |
|
101 const TDesC8& aCustomMessage); |
|
102 |
|
103 /** |
|
104 * Deactivates view. |
|
105 */ |
|
106 void DoDeactivate(); |
|
107 |
|
108 /** |
|
109 * Initializes menu pane. |
|
110 * @param aResourceId Menu pane resource ID. |
|
111 * @param aMenuPane Menu pane pointer. |
|
112 */ |
|
113 void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane); |
|
114 |
|
115 private: // New functions |
|
116 |
|
117 /** |
|
118 * Checks listbox selections and launches |
|
119 * query dialog to start test cases. |
|
120 * @param aListBox Pointer to listbox. |
|
121 */ |
|
122 void CheckListBoxSelectionsL(CEikListBox* aListBox); |
|
123 |
|
124 private: // Data |
|
125 CAknNavigationDecorator* iNaviDecorator; |
|
126 CStartCasesContainer* iContainer; |
|
127 TInt iCurrentTestCase; |
|
128 }; |
|
129 |
|
130 #endif //STARTCASESVIEW_H |
|
131 |
|
132 // End of File |