phonesettings/cpphonesettingsplugins/cptelephonyutils/tsrc/ut_cpphonenotes/ut_cpphonenotes.cpp
equal
deleted
inserted
replaced
18 #include "ut_cpphonenotes.h" |
18 #include "ut_cpphonenotes.h" |
19 #include "qtestmains60ui.h" |
19 #include "qtestmains60ui.h" |
20 #include <hbmainwindow.h> |
20 #include <hbmainwindow.h> |
21 #include <HbDeviceMessageBox.h> |
21 #include <HbDeviceMessageBox.h> |
22 #include <HbMessageBox.h> |
22 #include <HbMessageBox.h> |
|
23 #include <hbnotificationdialog.h> |
23 #define private public |
24 #define private public |
24 #include "cpphonenotes.h" |
25 #include "cpphonenotes.h" |
25 |
26 |
26 /*! |
27 /*! |
27 UT_CpPhoneNotes::UT_CpPhoneNotes |
28 UT_CpPhoneNotes::UT_CpPhoneNotes |
136 { |
137 { |
137 |
138 |
138 } |
139 } |
139 |
140 |
140 /*! |
141 /*! |
|
142 UT_CpPhoneNotes::t_showNotificationDialog |
|
143 */ |
|
144 void UT_CpPhoneNotes::t_showNotificationDialog() |
|
145 { |
|
146 CpPhoneNotes::instance()->showNotificationDialog("NotificationDialog"); |
|
147 } |
|
148 |
|
149 /*! |
141 UT_CpPhoneNotes::t_showProgressNote |
150 UT_CpPhoneNotes::t_showProgressNote |
142 */ |
151 */ |
143 void UT_CpPhoneNotes::t_showProgressNote() |
152 void UT_CpPhoneNotes::t_showProgressNote() |
144 { |
153 { |
145 CpPhoneNotes::instance()->showGlobalProgressNote(m_noteid1, "test"); |
154 CpPhoneNotes::instance()->showGlobalProgressNote(m_noteid1, "testshowProgressNote1"); |
146 CpPhoneNotes::instance()->showGlobalProgressNote(m_noteid2, "test"); |
155 QTest::qWait(5000); |
|
156 CpPhoneNotes::instance()->showGlobalProgressNote(m_noteid2, "testshowProgressNote2"); |
147 QTest::qWait(5000); |
157 QTest::qWait(5000); |
148 } |
158 } |
149 |
159 |
150 /*! |
160 /*! |
151 UT_CpPhoneNotes::t_showGlobalProgressNote |
161 UT_CpPhoneNotes::t_showGlobalProgressNote |
152 */ |
162 */ |
153 void UT_CpPhoneNotes::t_showGlobalProgressNote() |
163 void UT_CpPhoneNotes::t_showGlobalProgressNote() |
154 { |
164 { |
155 CpPhoneNotes::instance()->showGlobalProgressNote(m_noteid1, "test"); |
165 CpPhoneNotes::instance()->showGlobalProgressNote(m_noteid1, "testshowGPN"); |
|
166 QTest::qWait(5000); |
|
167 CpPhoneNotes::instance()->showGlobalProgressNote(m_noteid2, |
|
168 hbTrId("txt_common_info_requesting")); |
156 QTest::qWait(5000); |
169 QTest::qWait(5000); |
157 } |
170 } |
158 |
171 |
159 /*! |
172 /*! |
160 UT_CpPhoneNotes::t_showGlobalNote |
173 UT_CpPhoneNotes::t_showGlobalNote |
178 CpPhoneNotes::instance()->showGlobalErrorNote(m_noteid1, errorcode ); |
191 CpPhoneNotes::instance()->showGlobalErrorNote(m_noteid1, errorcode ); |
179 QVERIFY( verify() ); |
192 QVERIFY( verify() ); |
180 |
193 |
181 } |
194 } |
182 |
195 |
183 /*! |
|
184 UT_CpPhoneNotes::t_showBasicServiceList |
|
185 */ |
|
186 void UT_CpPhoneNotes::t_showBasicServiceList() |
|
187 { |
|
188 QList<unsigned char> basicServiceGroupIds; |
|
189 basicServiceGroupIds << Telephony; |
|
190 basicServiceGroupIds << AllDataTele; |
|
191 CpPhoneNotes::instance()-> |
|
192 showBasicServiceList("Basic Service List", basicServiceGroupIds ); |
|
193 } |
|
194 |
196 |
195 /*! |
197 /*! |
196 UT_CpPhoneNotes::t_showCallDivertDetails |
198 UT_CpPhoneNotes::t_showCallDivertDetails |
197 */ |
199 */ |
198 void UT_CpPhoneNotes::t_showCallDivertDetails() |
200 void UT_CpPhoneNotes::t_showCallDivertDetails() |
228 UT_CpPhoneNotes::t_cancelNote |
230 UT_CpPhoneNotes::t_cancelNote |
229 */ |
231 */ |
230 void UT_CpPhoneNotes::t_cancelNote() |
232 void UT_CpPhoneNotes::t_cancelNote() |
231 { |
233 { |
232 CpPhoneNotes::instance()->cancelNote(m_noteid1); |
234 CpPhoneNotes::instance()->cancelNote(m_noteid1); |
233 CpPhoneNotes::instance()->showGlobalProgressNote(m_noteid1, "test"); |
235 CpPhoneNotes::instance()->showGlobalProgressNote(m_noteid1, "testcancelNote"); |
234 CpPhoneNotes::instance()->noteShowing(); |
236 CpPhoneNotes::instance()->noteShowing(); |
235 CpPhoneNotes::instance()->cancelNote(m_noteid1); |
237 CpPhoneNotes::instance()->cancelNote(m_noteid1); |
236 |
238 |
237 QTest::qWait(5000); |
239 QTest::qWait(5000); |
238 } |
240 } |