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