filebrowser/ui/src/notifications.cpp
changeset 25 31fc1277642e
parent 24 6053b7ae82ab
child 27 271e901a9423
--- a/filebrowser/ui/src/notifications.cpp	Thu May 13 20:59:38 2010 +0300
+++ b/filebrowser/ui/src/notifications.cpp	Thu May 13 21:10:48 2010 +0300
@@ -29,24 +29,22 @@
 {
     HbMessageBox *messageBox = new HbMessageBox(type);
     messageBox->setText(text);
-    if(label.length())
-        {
+    if (label.length()) {
         HbLabel *header = new HbLabel(label, messageBox);
         messageBox->setHeadingWidget(header);
-        }
+    }
     messageBox->setAttribute(Qt::WA_DeleteOnClose);
     messageBox->setTimeout(timeout);
     messageBox->open();
 }
 
-void Notifications::about()
+void Notifications::showAboutNote()
 {
-    showMessageBox(
-        HbMessageBox::MessageTypeInformation, 
-        "Version 5.0.0 - 23h April 2010. Copyright © 2010 Nokia Corporation"
-            "and/or its subsidiary(-ies). All rights reserved."
-            "Licensed under Eclipse Public License v1.0.", 
-        "About File Browser"
+    showMessageBox(HbMessageBox::MessageTypeInformation,
+                   "Version 5.0.0 - 23h April 2010. Copyright © 2010 Nokia Corporation"
+                        "and/or its subsidiary(-ies). All rights reserved."
+                        "Licensed under Eclipse Public License v1.0.",
+                   "About File Browser"
         );
 }
 
@@ -62,16 +60,16 @@
 
 // ---------------------------------------------------------------------------
 
-void Notifications::showInformationNote(const QString &text)
+void Notifications::showInformationNote(const QString &text, const QString &title)
 {
-    showMessageBox(HbMessageBox::MessageTypeInformation, text, "", false);
+    showMessageBox(HbMessageBox::MessageTypeInformation, text, title, false);
 }
 
 // ---------------------------------------------------------------------------
 
 void Notifications::showErrorNote(const QString &text, bool noTimeout)
 {
-    showMessageBox(HbMessageBox::MessageTypeWarning, text, "", noTimeout ? HbPopup::NoTimeout : 3000);
+    showMessageBox(HbMessageBox::MessageTypeWarning, text, "", noTimeout ? HbPopup::NoTimeout : HbPopup::StandardTimeout);
 }
 
 // ---------------------------------------------------------------------------
@@ -85,7 +83,7 @@
 
 bool Notifications::showConfirmationQuery(const QString &aText)
 {
-    return HbMessageBox::question(aText);
+    return false; //HbMessageBox::question(aText);
 }
 
 // ---------------------------------------------------------------------------