diff -r 64a47b97e1e1 -r f27aebe284bb logsui/logsapp/tsrc/ut_logsapp/stubs/hbstubs.cpp --- a/logsui/logsapp/tsrc/ut_logsapp/stubs/hbstubs.cpp Tue Jul 06 14:16:36 2010 +0300 +++ b/logsui/logsapp/tsrc/ut_logsapp/stubs/hbstubs.cpp Wed Aug 18 09:49:12 2010 +0300 @@ -20,7 +20,7 @@ #include #include #include "hbstubs_helper.h" -#include +#include #include #include #include @@ -31,6 +31,7 @@ #include #include #include +#include int actionCount = 0; Qt::Orientation windowOrientation = Qt::Vertical; @@ -296,6 +297,27 @@ testDialogShown = true; } +void HbDialog::open() +{ + testDialogShown = true; +} + +void HbMessageBox::question(const QString &questionText, + QObject *receiver , + const char *member, + HbMessageBox::StandardButtons buttons, + QGraphicsWidget *headingWidget, + QGraphicsScene *scene, + QGraphicsItem *parent) +{ + Q_UNUSED(questionText) + Q_UNUSED(receiver) + Q_UNUSED(member) + Q_UNUSED(buttons) + Q_UNUSED(scene) + Q_UNUSED(parent) + testDialogShown = true; +} // ----------------------------------------------------------------------------- // @@ -394,15 +416,6 @@ return list; } -void HbMessageBox::setText(const QString &string) -{ - if (string == "Ok") { - selectedActionString = "primary"; - } else if (string == "Cancel") { - selectedActionString = "secondary"; - } -} - void QTimer::singleShot(int msec, QObject *receiver, const char *member) { testSingleShotTimer = true;