phonesettings/cpphonesettingsplugins/cptelephonyutils/tsrc/ut_cpphonenotes/ut_cpphonenotes.cpp
--- a/phonesettings/cpphonesettingsplugins/cptelephonyutils/tsrc/ut_cpphonenotes/ut_cpphonenotes.cpp Fri Jun 04 10:19:18 2010 +0100
+++ b/phonesettings/cpphonesettingsplugins/cptelephonyutils/tsrc/ut_cpphonenotes/ut_cpphonenotes.cpp Wed Jun 23 18:12:20 2010 +0300
@@ -20,6 +20,7 @@
#include <hbmainwindow.h>
#include <HbDeviceMessageBox.h>
#include <HbMessageBox.h>
+#include <hbnotificationdialog.h>
#define private public
#include "cpphonenotes.h"
@@ -138,12 +139,20 @@
}
/*!
+ UT_CpPhoneNotes::t_showNotificationDialog
+ */
+void UT_CpPhoneNotes::t_showNotificationDialog()
+{
+ CpPhoneNotes::instance()->showNotificationDialog("NotificationDialog");
+}
+
+/*!
UT_CpPhoneNotes::t_showProgressNote
*/
void UT_CpPhoneNotes::t_showProgressNote()
{
- CpPhoneNotes::instance()->showGlobalProgressNote(m_noteid1, "test");
- CpPhoneNotes::instance()->showGlobalProgressNote(m_noteid2, "test");
+ CpPhoneNotes::instance()->showGlobalProgressNote(m_noteid1, "testshowProgressNote1");
+ CpPhoneNotes::instance()->showGlobalProgressNote(m_noteid2, "testshowProgressNote2");
QTest::qWait(5000);
}
@@ -152,7 +161,10 @@
*/
void UT_CpPhoneNotes::t_showGlobalProgressNote()
{
- CpPhoneNotes::instance()->showGlobalProgressNote(m_noteid1, "test");
+ CpPhoneNotes::instance()->showGlobalProgressNote(m_noteid1, "testshowGPN");
+ QTest::qWait(5000);
+ CpPhoneNotes::instance()->showGlobalProgressNote(m_noteid1,
+ hbTrId("txt_common_info_requesting"));
QTest::qWait(5000);
}
@@ -180,17 +192,6 @@
}
-/*!
- UT_CpPhoneNotes::t_showBasicServiceList
- */
-void UT_CpPhoneNotes::t_showBasicServiceList()
-{
- QList<unsigned char> basicServiceGroupIds;
- basicServiceGroupIds << Telephony;
- basicServiceGroupIds << AllDataTele;
- CpPhoneNotes::instance()->
- showBasicServiceList("Basic Service List", basicServiceGroupIds );
-}
/*!
UT_CpPhoneNotes::t_showCallDivertDetails
@@ -230,7 +231,7 @@
void UT_CpPhoneNotes::t_cancelNote()
{
CpPhoneNotes::instance()->cancelNote(m_noteid1);
- CpPhoneNotes::instance()->showGlobalProgressNote(m_noteid1, "test");
+ CpPhoneNotes::instance()->showGlobalProgressNote(m_noteid1, "testcancelNote");
CpPhoneNotes::instance()->noteShowing();
CpPhoneNotes::instance()->cancelNote(m_noteid1);