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 { |
39 } |
36 } |
40 |
37 |
41 void Notifications::showAboutNote() |
38 void Notifications::showAboutNote() |
42 { |
39 { |
43 showMessageBox(HbMessageBox::MessageTypeInformation, |
40 showMessageBox(HbMessageBox::MessageTypeInformation, |
44 "Version 5.0.0 - 23h April 2010. Copyright © 2010 Nokia Corporation" |
41 "Version 5.1.0 - 18th June 2010. Copyright © 2010 Nokia Corporation" |
45 "and/or its subsidiary(-ies). All rights reserved." |
42 "and/or its subsidiary(-ies). All rights reserved." |
46 "Licensed under Eclipse Public License v1.0.", |
43 "Licensed under Eclipse Public License v1.0.", |
47 "About File Browser" |
44 "About File Browser" |
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, 3000); |
66 } |
53 } |
67 |
54 |
68 // --------------------------------------------------------------------------- |
55 // --------------------------------------------------------------------------- |
69 |
56 |
70 void Notifications::showErrorNote(const QString &text, bool noTimeout) |
57 void Notifications::showErrorNote(const QString &text, bool noTimeout) |
71 { |
58 { |
72 showMessageBox(HbMessageBox::MessageTypeWarning, text, "", noTimeout ? HbPopup::NoTimeout : HbPopup::StandardTimeout); |
59 showMessageBox(HbMessageBox::MessageTypeWarning, text, "", |
|
60 noTimeout ? HbPopup::NoTimeout : 3000 /*HbPopup::StandardTimeout*/); |
73 } |
61 } |
74 |
62 |
75 // --------------------------------------------------------------------------- |
63 // --------------------------------------------------------------------------- |
76 |
64 |
77 void Notifications::showConfirmationNote(const QString &text, bool noTimeout) |
65 void Notifications::showConfirmationNote(const QString &text, bool noTimeout) |
78 { |
66 { |
79 showMessageBox(HbMessageBox::MessageTypeWarning, text, "", noTimeout ? HbPopup::NoTimeout : HbPopup::ConfirmationNoteTimeout); |
67 showMessageBox(HbMessageBox::MessageTypeInformation, text, "", |
|
68 noTimeout ? HbPopup::NoTimeout : 3000 /*HbPopup::ConfirmationNoteTimeout*/); |
80 } |
69 } |
81 |
70 |
82 // --------------------------------------------------------------------------- |
71 // --------------------------------------------------------------------------- |
83 |
72 |
84 bool Notifications::showConfirmationQuery(const QString &aText) |
73 bool Notifications::showConfirmationQuery(const QString &aText) |
85 { |
74 { |
|
75 Q_UNUSED(aText); |
86 return false; //HbMessageBox::question(aText); |
76 return false; //HbMessageBox::question(aText); |
87 } |
77 } |
88 |
78 |
89 // --------------------------------------------------------------------------- |
79 // --------------------------------------------------------------------------- |