16 */ |
16 */ |
17 |
17 |
18 #ifndef NOTIFICATIONS_H_ |
18 #ifndef NOTIFICATIONS_H_ |
19 #define NOTIFICATIONS_H_ |
19 #define NOTIFICATIONS_H_ |
20 |
20 |
21 //#include <hbdeviceprogressdialog.h> |
|
22 #include <hbmessagebox.h> |
21 #include <hbmessagebox.h> |
|
22 |
|
23 class HbProgressDialog; |
23 |
24 |
24 class Notifications |
25 class Notifications |
25 { |
26 { |
26 public: |
27 public: |
27 |
|
28 static void showAboutNote(); |
28 static void showAboutNote(); |
29 static void showMessageBox(HbMessageBox::MessageBoxType type, const QString &text, const QString &label, int timeout = HbPopup::NoTimeout); |
29 static void showMessageBox(HbMessageBox::MessageBoxType type, const QString &text, const QString &label, int timeout = HbPopup::NoTimeout); |
30 static void showInformationNote(const QString &text, const QString &title = QString()); |
30 static void showInformationNote(const QString &text, const QString &title = QString()); |
31 static void showErrorNote(const QString &text, bool noTimeout = false); |
31 static void showErrorNote(const QString &text, bool noTimeout = false); |
32 static void showConfirmationNote(const QString &text, bool noTimeout = false); |
32 static void showConfirmationNote(const QString &text, bool noTimeout = false); |
33 static bool showConfirmationQuery(const QString &aText); |
33 static bool showConfirmationQuery(const QString &aText); |
34 |
|
35 |
|
36 // static HbDeviceProgressDialog* showWaitDialog(const QString &text); |
|
37 |
|
38 private: |
|
39 }; |
34 }; |
40 |
35 |
41 #endif // NOTIFICATIONS_H_ |
36 #endif // NOTIFICATIONS_H_ |