20 |
20 |
21 //#include <hbdeviceprogressdialog.h> |
21 //#include <hbdeviceprogressdialog.h> |
22 #include <hbmessagebox.h> |
22 #include <hbmessagebox.h> |
23 |
23 |
24 class Notifications |
24 class Notifications |
25 { |
25 { |
26 public: |
26 public: |
27 |
27 |
28 /** |
28 static void showAboutNote(); |
29 * shows about box |
|
30 */ |
|
31 static void about(); |
|
32 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); |
33 static void showInformationNote(const QString &text); |
30 static void showInformationNote(const QString &text, const QString &title = QString()); |
34 static void showErrorNote(const QString &text, bool noTimeout = false); |
31 static void showErrorNote(const QString &text, bool noTimeout = false); |
35 static void showConfirmationNote(const QString &text, bool noTimeout = false); |
32 static void showConfirmationNote(const QString &text, bool noTimeout = false); |
36 static bool showConfirmationQuery(const QString &aText); |
33 static bool showConfirmationQuery(const QString &aText); |
37 |
34 |
38 // /** |
35 |
39 // * shows progressbar |
|
40 // */ |
|
41 // static HbDeviceProgressDialog* showWaitDialog(const QString &text); |
36 // static HbDeviceProgressDialog* showWaitDialog(const QString &text); |
42 |
|
43 private: |
|
44 |
|
45 // /** |
|
46 // * shows global HbGlobalCommonNote type note |
|
47 // */ |
|
48 // static void showGlobalNote(const QString& text, HbCommonNote::NoteType type); |
|
49 |
|
50 }; |
|
51 |
37 |
52 |
38 private: |
|
39 }; |
53 |
40 |
54 #endif // NOTIFICATIONS_H_ |
41 #endif // NOTIFICATIONS_H_ |