filemanager/src/filemanager/src/components/fmmessagebox.cpp
changeset 35 060d0b1ab845
parent 24 1d0c87b42e2e
child 48 1bebd60c0f00
--- a/filemanager/src/filemanager/src/components/fmmessagebox.cpp	Tue Jul 06 14:06:28 2010 +0300
+++ b/filemanager/src/filemanager/src/components/fmmessagebox.cpp	Wed Aug 18 09:39:39 2010 +0300
@@ -19,18 +19,25 @@
 #include "fmmessagebox.h"
 #include <hbmessagebox.h>
 
-void FmMessageBox::information( const QString &informationText )
+/*!
+    This is a convenience function for showing an information dialog with \a informationText
+*/
+void FmMessageBox::information( const QString &informationText,
+    HbMessageBox::StandardButtons buttons )
 {
     HbMessageBox::information ( informationText,
-         this, SLOT(dialogClosed(HbAction*)) );
+         this, SLOT(dialogClosed(HbAction*)), buttons );
     mEventLoop.exec();
 }
 
-bool FmMessageBox::question( const QString &questionText, const QString &primaryButtonText,
-        const QString &secondaryButtonText )
+/*!
+    This is a convenience function for showing a question dialog with \a questionText
+*/
+bool FmMessageBox::question( const QString &questionText,
+    HbMessageBox::StandardButtons buttons )
 {
     HbMessageBox::question ( questionText,
-            this, SLOT(dialogClosed(HbAction*)), primaryButtonText, secondaryButtonText );
+            this, SLOT(dialogClosed(HbAction*)), buttons  );
     mEventLoop.exec();
     return mRet;
 }