|
1 /* |
|
2 * Copyright (c) 2007 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef C_CBCTESTDOMAKNNOCTRLCASE_H |
|
19 #define C_CBCTESTDOMAKNNOCTRLCASE_H |
|
20 |
|
21 #include "bctestcase.h" |
|
22 |
|
23 |
|
24 class CBCTestDomAiwAknContainer; |
|
25 class CCoeControl; |
|
26 class CEikonEnv; |
|
27 |
|
28 /** |
|
29 * test case for various classes |
|
30 * |
|
31 * |
|
32 * @code |
|
33 * |
|
34 * @endcode |
|
35 * |
|
36 * @lib |
|
37 * @since S60 v5.0 |
|
38 */ |
|
39 class CBCTestDomAknNoCtrlCase: |
|
40 public CBCTestCase |
|
41 ,public MEikMenuObserver |
|
42 { |
|
43 |
|
44 public: |
|
45 |
|
46 /** |
|
47 * Symbian 2nd static constructor |
|
48 */ |
|
49 static CBCTestDomAknNoCtrlCase* NewL( |
|
50 CBCTestDomAiwAknContainer* aContainer ); |
|
51 |
|
52 /** |
|
53 * Destructor |
|
54 */ |
|
55 virtual ~CBCTestDomAknNoCtrlCase(); |
|
56 |
|
57 public: |
|
58 |
|
59 // from base class CBCTestCase |
|
60 |
|
61 /** |
|
62 * From CBCTestCase. |
|
63 * Execute corresponding test functions for UI command. |
|
64 * |
|
65 * @since S60 v5.0 |
|
66 * @param aCmd, UI command |
|
67 */ |
|
68 void RunL( TInt aCmd ); |
|
69 |
|
70 |
|
71 // from base class MEikMenuObserver |
|
72 |
|
73 /** |
|
74 * From MEikMenuObserver. |
|
75 * Processes user commands. |
|
76 * |
|
77 * Derived classes must provide an implementation of this function which |
|
78 * responds to user commands appropriately based on a user-defined ID for |
|
79 * the command. |
|
80 * |
|
81 * @since S60 v5.0 |
|
82 * @param aCommandId ID of the command to respond to. |
|
83 */ |
|
84 virtual void ProcessCommandL(TInt aCommandId) ; |
|
85 |
|
86 /** |
|
87 * From MEikMenuObserver. |
|
88 * Called by the Uikon framework to handle the emphasising or |
|
89 * de-emphasising of a menu window. |
|
90 * |
|
91 * CEikMenuBar objects call this on their observer to emphasise |
|
92 * themselves when they are displayed, and de-emphasise themselves |
|
93 * when they stop displaying. |
|
94 * |
|
95 * @since S60 v5.0 |
|
96 * @param aMenuControl The menu control. |
|
97 * @param aEmphasis ETrue to emphasize the menu, EFalse otherwise. |
|
98 */ |
|
99 virtual void SetEmphasis(CCoeControl* aMenuControl,TBool aEmphasis); |
|
100 |
|
101 |
|
102 protected: |
|
103 |
|
104 |
|
105 /** |
|
106 * Build autotest script |
|
107 * |
|
108 * @since S60 v5.0 |
|
109 */ |
|
110 void BuildScriptL(); |
|
111 |
|
112 /** |
|
113 * Test functions |
|
114 * |
|
115 * @since S60 v5.0 |
|
116 */ |
|
117 void TestAknDateFormatUtils(); //Not Ctrl |
|
118 |
|
119 /** |
|
120 * Test functions |
|
121 * |
|
122 * @since S60 v5.0 |
|
123 */ |
|
124 void TestAknEcsDetector(); //Not Ctrl |
|
125 |
|
126 /** |
|
127 * Test functions |
|
128 * |
|
129 * @since S60 v5.0 |
|
130 */ |
|
131 void TestAknEdwinFormAccessor(); //Not Ctrl |
|
132 |
|
133 /** |
|
134 * Test functions |
|
135 * |
|
136 * @since S60 v5.0 |
|
137 */ |
|
138 void TestAknExtendedInputCapabilities(); //Not Ctrl |
|
139 |
|
140 /** |
|
141 * Test functions |
|
142 * |
|
143 * @since S60 v5.0 |
|
144 */ |
|
145 void TestAknFontIdLayoutFont(); //Not Ctrl |
|
146 |
|
147 /** |
|
148 * Test functions |
|
149 * |
|
150 * @since S60 v5.0 |
|
151 */ |
|
152 void TestAknJapaneseReading();//Not Ctrl |
|
153 |
|
154 /** |
|
155 * Test functions |
|
156 * |
|
157 * @since S60 v5.0 |
|
158 */ |
|
159 void TestAknKeyRotator(); //Not Ctrl |
|
160 |
|
161 /** |
|
162 * Test functions |
|
163 * |
|
164 * @since S60 v5.0 |
|
165 */ |
|
166 void TestAknLaunchAppService();//Not Ctrl |
|
167 |
|
168 /** |
|
169 * Test functions |
|
170 * |
|
171 * @since S60 v5.0 |
|
172 */ |
|
173 void TestAknLayoutConfig(); //Not Ctrl |
|
174 |
|
175 /** |
|
176 * Test functions |
|
177 * |
|
178 * @since S60 v5.0 |
|
179 */ |
|
180 void TestCAknLibrary(); //Not Ctrl |
|
181 |
|
182 /** |
|
183 * Test functions |
|
184 * |
|
185 * @since S60 v5.0 |
|
186 */ |
|
187 void TestTAknLineBreaker();//Not Ctrl |
|
188 |
|
189 |
|
190 private: // constructor |
|
191 |
|
192 /** |
|
193 * C++ default constructor |
|
194 */ |
|
195 CBCTestDomAknNoCtrlCase( CBCTestDomAiwAknContainer* aContainer ); |
|
196 |
|
197 /** |
|
198 * Symbian 2nd constructor |
|
199 */ |
|
200 void ConstructL(); |
|
201 |
|
202 private: // data |
|
203 |
|
204 /** |
|
205 * Pointer to container. |
|
206 * not own |
|
207 */ |
|
208 CBCTestDomAiwAknContainer* iContainer; |
|
209 |
|
210 }; |
|
211 |
|
212 #endif // C_CBCTESTDOMAKNNOCTRLCASE_H |