filemanager/src/filemanager/src/components/fmmessagebox.cpp
changeset 33 328cf6fbe40c
parent 25 b7bfdea70ca2
child 47 12b82dc0e8db
equal deleted inserted replaced
32:39cf9ced4cc4 33:328cf6fbe40c
    17  */
    17  */
    18 
    18 
    19 #include "fmmessagebox.h"
    19 #include "fmmessagebox.h"
    20 #include <hbmessagebox.h>
    20 #include <hbmessagebox.h>
    21 
    21 
    22 void FmMessageBox::information( const QString &informationText )
    22 /*!
       
    23     This is a convenience function for showing an information dialog with \a informationText
       
    24 */
       
    25 void FmMessageBox::information( const QString &informationText,
       
    26     HbMessageBox::StandardButtons buttons )
    23 {
    27 {
    24     HbMessageBox::information ( informationText,
    28     HbMessageBox::information ( informationText,
    25          this, SLOT(dialogClosed(HbAction*)) );
    29          this, SLOT(dialogClosed(HbAction*)), buttons );
    26     mEventLoop.exec();
    30     mEventLoop.exec();
    27 }
    31 }
    28 
    32 
    29 bool FmMessageBox::question( const QString &questionText, const QString &primaryButtonText,
    33 /*!
    30         const QString &secondaryButtonText )
    34     This is a convenience function for showing a question dialog with \a questionText
       
    35 */
       
    36 bool FmMessageBox::question( const QString &questionText,
       
    37     HbMessageBox::StandardButtons buttons )
    31 {
    38 {
    32     HbMessageBox::question ( questionText,
    39     HbMessageBox::question ( questionText,
    33             this, SLOT(dialogClosed(HbAction*)), primaryButtonText, secondaryButtonText );
    40             this, SLOT(dialogClosed(HbAction*)), buttons  );
    34     mEventLoop.exec();
    41     mEventLoop.exec();
    35     return mRet;
    42     return mRet;
    36 }
    43 }
    37 
    44 
    38 void FmMessageBox::dialogClosed(HbAction *action)
    45 void FmMessageBox::dialogClosed(HbAction *action)