1 /* |
1 /* |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
51 |
50 |
52 virtual ~Mt_vmbxEngine(); |
51 virtual ~Mt_vmbxEngine(); |
53 |
52 |
54 private slots: |
53 private slots: |
55 |
54 |
56 /** |
55 /*! |
57 * Called before the first testfunction is executed. |
56 Called before the first testfunction is executed. |
58 * Handles the SetUpMenu command. |
57 */ |
59 */ |
|
60 void initTestCase(); |
58 void initTestCase(); |
61 |
59 |
62 /** |
60 /*! |
63 * Called after the last testfunction has been executed. |
61 Called after the last testfunction has been executed. |
64 * |
62 */ |
65 */ |
|
66 void cleanupTestCase(); |
63 void cleanupTestCase(); |
|
64 |
|
65 /*! |
|
66 Create an empty vmbx entry |
|
67 */ |
|
68 void testCreateVmbxEntry(); |
67 |
69 |
68 // Called before each testfunction is executed. Currently not needed |
70 /*! |
69 //void init(); |
71 Create CVoiceMailbox Api |
|
72 */ |
|
73 void testCreateVmbxMailbox(); |
70 |
74 |
71 /** |
75 /*! |
72 * Called after every testfunction. Currently not needed |
76 Test middle case,CheckConfiguration |
73 * |
77 */ |
74 */ |
|
75 //void cleanup(); |
|
76 |
|
77 /** |
|
78 * Test first case,Create testCreateVmbxEntry |
|
79 * |
|
80 */ |
|
81 void testCreateVmbxEntry(); |
|
82 |
|
83 /** |
|
84 * Test second case,Create CVoiceMailbox |
|
85 * |
|
86 */ |
|
87 void testCreateVmbxMailbox(); |
|
88 |
|
89 /** |
|
90 * Test middle case,vmbx type |
|
91 * |
|
92 */ |
|
93 void testVmbxType(); |
|
94 |
|
95 /** |
|
96 * Test middle case,ServiceId |
|
97 * |
|
98 */ |
|
99 void testServiceId(); |
|
100 |
|
101 /** |
|
102 * Test middle case, AlsLine Type |
|
103 * |
|
104 */ |
|
105 void testAlsLineType(); |
|
106 |
|
107 /** |
|
108 * Test middle case, VmbxNumber |
|
109 * |
|
110 */ |
|
111 void testVmbxNumber(); |
|
112 |
|
113 /** |
|
114 * Test middle case, reset |
|
115 * |
|
116 */ |
|
117 void testReset(); |
|
118 |
|
119 /** |
|
120 * Test middle case,CheckConfiguration |
|
121 * |
|
122 */ |
|
123 void testCheckConfiguration(); |
78 void testCheckConfiguration(); |
124 |
79 |
125 /** |
80 /** |
126 * Test middle case,CreateWindow |
81 * Test middle case,CreateWindow |
127 * |
82 * |
128 * provide window for UI |
83 * provide window for UI |
129 */ |
84 */ |
130 void testCreateWindow(); |
85 void testCreateWindow(); |
131 |
86 |
132 /** |
|
133 * Test middle case,regsit observer for vmbx number changed |
|
134 * |
|
135 */ |
|
136 void testNotifyVmbxNumberChange(); |
|
137 |
87 |
138 /** |
88 /** |
139 * Test middle case,SaveProvisionedEntry |
89 * Test middle case,SaveProvisionedEntry |
140 * |
90 * |
141 */ |
91 */ |
159 */ |
109 */ |
160 void testDeleteWindow(); |
110 void testDeleteWindow(); |
161 |
111 |
162 /** |
112 /** |
163 * Test middle case,delete CVoiceMailbox |
113 * Test middle case,delete CVoiceMailbox |
164 * |
|
165 */ |
114 */ |
166 void testDeleteVmbxMailbox(); |
115 void testDeleteVmbxMailbox(); |
167 |
116 |
168 /** |
117 /** |
169 * Test last case,delete CVoiceMailboxEntry |
118 * Test last case,delete CVoiceMailboxEntry |
170 * |
|
171 */ |
119 */ |
172 void testDeleteVmbxEntry(); |
120 void testDeleteVmbxEntry(); |
173 |
121 |
174 private: //data |
122 private: //data |
175 |
123 |
176 /** |
124 /** |
177 * Own. |
125 * Own. |
178 */ |
126 */ |
179 CVoiceMailboxEntry* mVmbxEntry; |
127 CVoiceMailboxEntry* mVmbxEntry; |
180 |
128 |
181 /** |
129 /** |
182 * Own. |
130 * Own. |
183 */ |
131 */ |
184 CVoiceMailbox* mVmbxEngine; |
132 CVoiceMailbox* mVmbxEngine; |