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 CpPhoneNotes::instance()->showGlobalProgressNote(m_noteid2, "testshowProgressNote2"); |
147 QTest::qWait(5000); |
156 QTest::qWait(5000); |
148 } |
157 } |
149 |
158 |
150 /*! |
159 /*! |
151 UT_CpPhoneNotes::t_showGlobalProgressNote |
160 UT_CpPhoneNotes::t_showGlobalProgressNote |
152 */ |
161 */ |
153 void UT_CpPhoneNotes::t_showGlobalProgressNote() |
162 void UT_CpPhoneNotes::t_showGlobalProgressNote() |
154 { |
163 { |
155 CpPhoneNotes::instance()->showGlobalProgressNote(m_noteid1, "test"); |
164 CpPhoneNotes::instance()->showGlobalProgressNote(m_noteid1, "testshowGPN"); |
|
165 QTest::qWait(5000); |
|
166 CpPhoneNotes::instance()->showGlobalProgressNote(m_noteid1, |
|
167 hbTrId("txt_common_info_requesting")); |
156 QTest::qWait(5000); |
168 QTest::qWait(5000); |
157 } |
169 } |
158 |
170 |
159 /*! |
171 /*! |
160 UT_CpPhoneNotes::t_showGlobalNote |
172 UT_CpPhoneNotes::t_showGlobalNote |
178 CpPhoneNotes::instance()->showGlobalErrorNote(m_noteid1, errorcode ); |
190 CpPhoneNotes::instance()->showGlobalErrorNote(m_noteid1, errorcode ); |
179 QVERIFY( verify() ); |
191 QVERIFY( verify() ); |
180 |
192 |
181 } |
193 } |
182 |
194 |
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 |
195 |
195 /*! |
196 /*! |
196 UT_CpPhoneNotes::t_showCallDivertDetails |
197 UT_CpPhoneNotes::t_showCallDivertDetails |
197 */ |
198 */ |
198 void UT_CpPhoneNotes::t_showCallDivertDetails() |
199 void UT_CpPhoneNotes::t_showCallDivertDetails() |
228 UT_CpPhoneNotes::t_cancelNote |
229 UT_CpPhoneNotes::t_cancelNote |
229 */ |
230 */ |
230 void UT_CpPhoneNotes::t_cancelNote() |
231 void UT_CpPhoneNotes::t_cancelNote() |
231 { |
232 { |
232 CpPhoneNotes::instance()->cancelNote(m_noteid1); |
233 CpPhoneNotes::instance()->cancelNote(m_noteid1); |
233 CpPhoneNotes::instance()->showGlobalProgressNote(m_noteid1, "test"); |
234 CpPhoneNotes::instance()->showGlobalProgressNote(m_noteid1, "testcancelNote"); |
234 CpPhoneNotes::instance()->noteShowing(); |
235 CpPhoneNotes::instance()->noteShowing(); |
235 CpPhoneNotes::instance()->cancelNote(m_noteid1); |
236 CpPhoneNotes::instance()->cancelNote(m_noteid1); |
236 |
237 |
237 QTest::qWait(5000); |
238 QTest::qWait(5000); |
238 } |
239 } |