diff -r 7eb70891911c -r a2467631ae02 vmbx/vmbxengine/src/vmbxqtuihandler.cpp --- a/vmbx/vmbxengine/src/vmbxqtuihandler.cpp Fri Jun 11 14:07:16 2010 +0300 +++ b/vmbx/vmbxengine/src/vmbxqtuihandler.cpp Wed Jun 23 18:49:32 2010 +0300 @@ -29,6 +29,7 @@ #include #include #include +#include #include #include @@ -167,9 +168,14 @@ // TODO Delete Operation will case panic on EM + +#ifdef __WINS__ + iQueryDialog->close(); +#else delete iQueryDialog; iQueryDialog = 0; - +#endif // __WINS__ + VMBLOGSTRING2("VmbxQtUiHandler::showVmbxQueryDialog aResult = %d", aResult) VMBLOGSTRING("VmbxQtUiHandler::showVmbxQueryDialog Exit") } @@ -229,11 +235,13 @@ VMBLOGSTRING2("VmbxQtUiHandler::showDefineSelectionDialog: aResult%d", \ aResult) - - // TODO Delete Operation will case panic on EM +#ifdef __WINS__ + defineListDialog->close(); +#else delete defineListDialog; defineListDialog = 0; - +#endif // __WINS__ + VMBLOGSTRING("VmbxQtUiHandler::showDefineSelectionDialog Exit") } @@ -329,8 +337,13 @@ params.iType) VMBLOGSTRING2("VmbxQtUiHandler::showCallSelectionDialog: result%d", result) + +#ifdef __WINS__ + callListDialog->close(); +#else delete callListDialog; callListDialog = 0; +#endif // __WINS__ VMBLOGSTRING("VmbxQtUiHandler::showCallSelectionDialog Exit") } @@ -374,20 +387,7 @@ VMBLOGSTRING("VmbxQtUiHandler::ShowInformationNote default") break; } - HbMessageBox *msgBox = 0; - if (EInvalidNumber == aType) { - msgBox = new HbMessageBox(HbMessageBox::MessageTypeWarning); - } else { - msgBox = new HbMessageBox(HbMessageBox::MessageTypeInformation); - } - msgBox->setText(noteText); - msgBox->setTimeout( HbDialog::StandardTimeout ); - msgBox->clearActions(); - DialogWaiter waiter; - msgBox->open(&waiter, SLOT(done(HbAction *))); - waiter.wait(); - delete msgBox; - msgBox = 0; + HbNotificationDialog::launchDialog(noteText); VMBLOGSTRING("VmbxQtUiHandler::showInformationNote Exit") }