|
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 CTestSetInsertMenuView class |
|
15 * declaration. |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef TESTSETINSERTMENUVIEW_H |
|
20 #define TESTSETINSERTMENUVIEW_H |
|
21 |
|
22 // INCLUDES |
|
23 #include "View.h" |
|
24 #include <eiklbo.h> // MEikListBoxObserver |
|
25 #include <aknnavide.h> |
|
26 |
|
27 // CONSTANTS |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class CTestSetInsertMenuContainer; |
|
31 |
|
32 |
|
33 // CLASS DECLARATION |
|
34 |
|
35 /** |
|
36 * CTestCaseMenuView view class. |
|
37 * |
|
38 */ |
|
39 class CTestSetInsertMenuView : 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 ~CTestSetInsertMenuView(); |
|
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 * Adds selected test cases to the current test set. |
|
83 * @param aSelectedIndexes Indexes of selected test cases. |
|
84 */ |
|
85 void AddCasesToTestSet( RArray<TInt> aSelectedIndexes ); |
|
86 |
|
87 private: |
|
88 |
|
89 /** |
|
90 * Initializes view when activated. |
|
91 * @param aPrevViewId Id of the previous view (not used). |
|
92 * @param aCustomMessageId Custom message id (not used). |
|
93 * @param aCustomMessage Custom message (not used). |
|
94 */ |
|
95 void DoActivateL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId, |
|
96 const TDesC8& aCustomMessage); |
|
97 |
|
98 /** |
|
99 * Deactivates view. |
|
100 */ |
|
101 void DoDeactivate(); |
|
102 |
|
103 /** |
|
104 * Initializes menu pane. |
|
105 * @param aResourceId Menu pane resource ID. |
|
106 * @param aMenuPane Menu pane pointer. |
|
107 */ |
|
108 void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane); |
|
109 |
|
110 /** |
|
111 * Show confirmation dialog for inserting test cases. |
|
112 */ |
|
113 void ShowInsertCasesDialogL(); |
|
114 |
|
115 private: // Data |
|
116 CAknNavigationDecorator* iNaviDecorator; |
|
117 CTestSetInsertMenuContainer* iContainer; |
|
118 TInt iCurrentTestCase; |
|
119 }; |
|
120 |
|
121 #endif //TestSetInsertMenuView_H |
|
122 |
|
123 // End of File |