|
1 /* |
|
2 * ============================================================================ |
|
3 * Name : bctestdomaknctrlcase.h |
|
4 * Part of : BCTest / bctestdomaiwakn |
|
5 * Description : declaration of test case |
|
6 * Version : %version: 1 % << Don't touch! Updated by Synergy at check-out. |
|
7 * |
|
8 * Copyright © 2007. All rights reserved. |
|
9 * This material, including documentation and any related computer |
|
10 * programs, is protected by copyright controlled by Nokia. All |
|
11 * rights are reserved. Copying, including reproducing, storing, |
|
12 * adapting or translating, any or all of this material requires the |
|
13 * prior written consent of Nokia. This material also contains |
|
14 * confidential information which may not be disclosed to others |
|
15 * without the prior written consent of Nokia. |
|
16 * ============================================================================ |
|
17 * Template version: 4.2 |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef C_CBCTESTDOMAKNCTRLCASE_H |
|
22 #define C_CBCTESTDOMAKNCTRLCASE_H |
|
23 |
|
24 #include "bctestcase.h" |
|
25 |
|
26 |
|
27 class CBCTestDomAiwAknContainer; |
|
28 class CCoeControl; |
|
29 class CEikonEnv; |
|
30 |
|
31 /** |
|
32 * test case for various classes |
|
33 * |
|
34 * |
|
35 * @code |
|
36 * |
|
37 * @endcode |
|
38 * |
|
39 * @lib |
|
40 * @since S60 v5.0 |
|
41 */ |
|
42 class CBCTestDomAknCtrlCase: |
|
43 public CBCTestCase |
|
44 ,public MEikMenuObserver |
|
45 { |
|
46 public: |
|
47 |
|
48 /** |
|
49 * Symbian 2nd static constructor |
|
50 */ |
|
51 static CBCTestDomAknCtrlCase* NewL( CBCTestDomAiwAknContainer* aContainer ); |
|
52 |
|
53 /** |
|
54 * Destructor |
|
55 */ |
|
56 virtual ~CBCTestDomAknCtrlCase(); |
|
57 |
|
58 public: |
|
59 |
|
60 // from base class CBCTestCase |
|
61 |
|
62 /** |
|
63 * From CBCTestCase. |
|
64 * Execute corresponding test functions for UI command. |
|
65 * |
|
66 * @since S60 v5.0 |
|
67 * @param aCmd, UI command |
|
68 */ |
|
69 void RunL( TInt aCmd ); |
|
70 |
|
71 |
|
72 // from base class MEikMenuObserver |
|
73 |
|
74 /** |
|
75 * From MEikMenuObserver. |
|
76 * Processes user commands. |
|
77 * |
|
78 * Derived classes must provide an implementation of this function which |
|
79 * responds to user commands appropriately based on a user-defined ID for |
|
80 * the command. |
|
81 * |
|
82 * @since S60 v5.0 |
|
83 * @param aCommandId ID of the command to respond to. |
|
84 */ |
|
85 virtual void ProcessCommandL(TInt aCommandId) ; |
|
86 |
|
87 /** |
|
88 * From MEikMenuObserver. |
|
89 * Called by the Uikon framework to handle the emphasising or |
|
90 * de-emphasising of a menu window. |
|
91 * |
|
92 * CEikMenuBar objects call this on their observer to emphasise |
|
93 * themselves when they are displayed, and de-emphasise themselves when they |
|
94 * stop displaying. |
|
95 * |
|
96 * @since S60 v5.0 |
|
97 * @param aMenuControl The menu control. |
|
98 * @param aEmphasis ETrue to emphasize the menu, EFalse otherwise. |
|
99 */ |
|
100 virtual void SetEmphasis(CCoeControl* aMenuControl,TBool aEmphasis); |
|
101 |
|
102 protected: |
|
103 |
|
104 /** |
|
105 * Build autotest script |
|
106 * |
|
107 * @since S60 v5.0 |
|
108 */ |
|
109 void BuildScriptL(); |
|
110 |
|
111 /** |
|
112 * for testing APIs in AknAsyncDemoNotify.h . |
|
113 * Callback function for the CPeriodic. Calculates the current frame, |
|
114 * keeps the background light from turning off and orders the CBillboard |
|
115 * to do the rendering for each frame. |
|
116 * |
|
117 * @since S60 v5.0 |
|
118 * @param aInstance Pointer to this instance of CBillboardContainer. |
|
119 */ |
|
120 static TInt AknAsyncDemoNotifyCallBack( TAny* aInstance ); |
|
121 |
|
122 /** |
|
123 * Test functions |
|
124 * |
|
125 * @since S60 v5.0 |
|
126 */ |
|
127 void TestAknBattery();//Ctrl |
|
128 |
|
129 /** |
|
130 * Test functions |
|
131 * |
|
132 * @since S60 v5.0 |
|
133 */ |
|
134 void TestAknCharMap(); //Ctrl |
|
135 |
|
136 /** |
|
137 * Test functions |
|
138 * |
|
139 * @since S60 v5.0 |
|
140 */ |
|
141 void TestAknFileFilterFactory(); //Not Ctrl |
|
142 |
|
143 /** |
|
144 * Test functions |
|
145 * |
|
146 * @since S60 v5.0 |
|
147 */ |
|
148 void TestAknGlobalPopupPriorityController(); // Not Ctrl |
|
149 |
|
150 /** |
|
151 * Test functions |
|
152 * |
|
153 * @since S60 v5.0 |
|
154 */ |
|
155 void TestAknIncallBubbleNotify();//Not Ctrl |
|
156 |
|
157 /** |
|
158 * Test functions |
|
159 * |
|
160 * @since S60 v5.0 |
|
161 */ |
|
162 void TestAknIndicator(); //Ctrl |
|
163 |
|
164 /** |
|
165 * Test functions |
|
166 * |
|
167 * @since S60 v5.0 |
|
168 */ |
|
169 void TestAknInputBlock(); //Ctrl |
|
170 |
|
171 /** |
|
172 * Test functions |
|
173 * |
|
174 * @since S60 v5.0 |
|
175 */ |
|
176 void TestListBox(); ////Ctrl ,skip 1 API |
|
177 |
|
178 |
|
179 private: // constructor |
|
180 |
|
181 /** |
|
182 * C++ default constructor |
|
183 */ |
|
184 CBCTestDomAknCtrlCase( CBCTestDomAiwAknContainer* aContainer ); |
|
185 |
|
186 /** |
|
187 * Symbian 2nd constructor |
|
188 */ |
|
189 void ConstructL(); |
|
190 |
|
191 private: // data |
|
192 |
|
193 /** |
|
194 * Pointer to container. |
|
195 * not own |
|
196 */ |
|
197 CBCTestDomAiwAknContainer* iContainer; |
|
198 |
|
199 }; |
|
200 |
|
201 #endif // C_CBCTESTDOMAKNCTRLCASE_H |