filebrowser/ui/src/notifications.cpp
changeset 27 271e901a9423
parent 25 31fc1277642e
child 28 4cc0d1a608c1
equal deleted inserted replaced
26:41ebde60981f 27:271e901a9423
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:
    14 * Description:
    15 *
    15 *
    16 */
    16 */
    17 
       
    18 
       
    19 #include <hblabel.h>
       
    20 //#include <hbdeviceprogressdialog.h>
       
    21 #include <hbmessagebox.h>
       
    22 
       
    23 #include "notifications.h"
    17 #include "notifications.h"
    24 
    18 
       
    19 #include <HbLabel>
       
    20 #include <HbProgressDialog>
       
    21 #include <HbMessageBox>
    25 
    22 
    26 // ---------------------------------------------------------------------------
    23 // ---------------------------------------------------------------------------
    27 
    24 
    28 void Notifications::showMessageBox(HbMessageBox::MessageBoxType type, const QString &text, const QString &label, int timeout)
    25 void Notifications::showMessageBox(HbMessageBox::MessageBoxType type, const QString &text, const QString &label, int timeout)
    29 {
    26 {
    48         );
    45         );
    49 }
    46 }
    50 
    47 
    51 // ---------------------------------------------------------------------------
    48 // ---------------------------------------------------------------------------
    52 
    49 
    53 //HbDeviceProgressDialog* Notifications::showWaitDialog(const QString &text)
       
    54 //{
       
    55 //    HbDeviceProgressDialog *note = new HbDeviceProgressDialog( HbProgressDialog::WaitDialog );
       
    56 //    note->setText( text );
       
    57 //    note->show();
       
    58 //    return note;
       
    59 //}
       
    60 
       
    61 // ---------------------------------------------------------------------------
       
    62 
       
    63 void Notifications::showInformationNote(const QString &text, const QString &title)
    50 void Notifications::showInformationNote(const QString &text, const QString &title)
    64 {
    51 {
    65     showMessageBox(HbMessageBox::MessageTypeInformation, text, title, false);
    52     showMessageBox(HbMessageBox::MessageTypeInformation, text, title, false);
    66 }
    53 }
    67 
    54 
    81 
    68 
    82 // ---------------------------------------------------------------------------
    69 // ---------------------------------------------------------------------------
    83 
    70 
    84 bool Notifications::showConfirmationQuery(const QString &aText)
    71 bool Notifications::showConfirmationQuery(const QString &aText)
    85 {
    72 {
       
    73     Q_UNUSED(aText);
    86     return false; //HbMessageBox::question(aText);
    74     return false; //HbMessageBox::question(aText);
    87 }
    75 }
    88 
    76 
    89 // ---------------------------------------------------------------------------
    77 // ---------------------------------------------------------------------------