217 QString password = ""; |
217 QString password = ""; |
218 bool okPressed = false; |
218 bool okPressed = false; |
219 QRegExp regExpression("\\d{4}"); |
219 QRegExp regExpression("\\d{4}"); |
220 QRegExpValidator validator(regExpression, this); |
220 QRegExpValidator validator(regExpression, this); |
221 CpPhoneNotes::instance()->showPasswordQueryDialog( |
221 CpPhoneNotes::instance()->showPasswordQueryDialog( |
222 queryTitle, validator, 5, password, okPressed); |
222 queryTitle, validator, 5); |
223 |
223 |
224 } |
224 } |
225 |
225 |
226 |
226 |
227 /*! |
227 /*! |
228 UT_CpPhoneNotes::t_cancelNote |
228 UT_CpPhoneNotes::t_cancelNote |
229 */ |
229 */ |
230 void UT_CpPhoneNotes::t_cancelNote() |
230 void UT_CpPhoneNotes::t_cancelNote() |
231 { |
231 { |
|
232 CpPhoneNotes::instance()->cancelNote(m_noteid1); |
232 CpPhoneNotes::instance()->showGlobalProgressNote(m_noteid1, "test"); |
233 CpPhoneNotes::instance()->showGlobalProgressNote(m_noteid1, "test"); |
|
234 CpPhoneNotes::instance()->noteShowing(); |
|
235 CpPhoneNotes::instance()->cancelNote(m_noteid1); |
|
236 |
233 QTest::qWait(5000); |
237 QTest::qWait(5000); |
234 } |
238 } |
235 |
239 |
236 QTEST_MAIN_S60UI(UT_CpPhoneNotes) |
240 QTEST_MAIN_S60UI(UT_CpPhoneNotes) |