iaupdate/IAD/ui/src/iaupdateresultsdialog.cpp
changeset 52 92f864ef0288
parent 42 d17dc5398051
child 77 d1838696558c
--- a/iaupdate/IAD/ui/src/iaupdateresultsdialog.cpp	Fri Jun 11 13:45:18 2010 +0300
+++ b/iaupdate/IAD/ui/src/iaupdateresultsdialog.cpp	Wed Jun 23 18:20:02 2010 +0300
@@ -19,9 +19,8 @@
 
 // INCLUDE FILES
 
-#include <hbaction.h>
-#include <hbdialog.h>
-#include <hbtextitem.h>
+#include <hbmessagebox.h>
+#include <hblabel.h>
 
 #include "iaupdateresultsdialog.h"
 #include "iaupdateresultsinfo.h"
@@ -38,20 +37,22 @@
 {
 }
 
-void IAUpdateResultsDialog::showResults(const TIAUpdateResultsInfo &param, QObject* receiver, const char* member )
+void IAUpdateResultsDialog::showResults(const TIAUpdateResultsInfo &param, QObject *receiver, const char *member)
 {
+    HbMessageBox *messageBox = new HbMessageBox(HbMessageBox::MessageTypeInformation);
+    
+    HbLabel *label = new HbLabel(messageBox);
+    label->setHtml(QString("Update results"));
+    messageBox->setHeadingWidget(label);
+    
+    messageBox->setIconVisible(false);
+            
     QString buf;
     constructText(param,buf);
-    HbDialog *dialog = new HbDialog;
-    HbTextItem *text = new HbTextItem(dialog);
-    text->setFontSpec(HbFontSpec(HbFontSpec::Primary));
-    text->setText(buf);
-    dialog->setContentWidget(text);
-    HbAction *primaryAction = new HbAction("Ok");    
-    dialog->addAction(primaryAction);
-    dialog->setTimeout(HbPopup::NoTimeout);
-    dialog->setAttribute(Qt::WA_DeleteOnClose);
-    dialog->open(receiver, member);
+    messageBox->setText(buf);
+    messageBox->setTimeout(HbPopup::NoTimeout);
+    messageBox->setAttribute(Qt::WA_DeleteOnClose);
+    messageBox->open(receiver, member);
     return;  
 }
 
@@ -69,7 +70,7 @@
         stringCount.setNum(param.iCountSuccessfull);    
         buf.append(stringCount);
         buf.append(" updates successful");
-        buf.append("\n");
+        buf.append("<br />");
         return;
     } 
   
@@ -86,7 +87,7 @@
         {
             buf.append(" applications updated"); 
         }
-        buf.append("\n");
+        buf.append("<br />");
     }
     
     if (param.iCountCancelled != 0)
@@ -102,7 +103,7 @@
         {
             buf.append(" updates cancelled");
         }
-        buf.append("\n");
+        buf.append("<br />");
     }
 
     if (param.iCountFailed != 0)
@@ -118,13 +119,13 @@
         {
             buf.append(" updates failed");
         }
-        buf.append("\n");
+        buf.append("<br />");
     }
     
     if (param.iFileInUseError)
     {
     	buf.append("Close all applications and try again.");
-    	buf.append("\n");
+    	buf.append("<br />");
     }
 }