equal
deleted
inserted
replaced
33 enum MessageBoxType { |
33 enum MessageBoxType { |
34 MessageTypeInformation, |
34 MessageTypeInformation, |
35 MessageTypeQuestion, |
35 MessageTypeQuestion, |
36 MessageTypeWarning |
36 MessageTypeWarning |
37 }; |
37 }; |
38 |
38 |
|
39 enum StandardButton { |
|
40 NoButton = 0x00000000, |
|
41 Ok = 0x00000400, |
|
42 Save = 0x00000800, |
|
43 Open = 0x00001000, |
|
44 Yes = 0x00002000, |
|
45 Continue = 0x00004000, |
|
46 Delete = 0x00008000, |
|
47 No = 0x00010000, |
|
48 Retry = 0x00020000, |
|
49 Close = 0x00040000, |
|
50 Cancel = 0x00080000, |
|
51 Help = 0x00100000, |
|
52 Apply = 0x00200000, |
|
53 Reset = 0x00400000 |
|
54 }; |
|
55 |
|
56 Q_DECLARE_FLAGS(StandardButtons, StandardButton) |
|
57 |
39 HbMessageBox(MessageBoxType type = MessageTypeInformation, QGraphicsItem *parent = 0); |
58 HbMessageBox(MessageBoxType type = MessageTypeInformation, QGraphicsItem *parent = 0); |
40 HbMessageBox(const QString &text, MessageBoxType type = MessageTypeInformation, QGraphicsItem *parent = 0); |
59 HbMessageBox(const QString &text, MessageBoxType type = MessageTypeInformation, QGraphicsItem *parent = 0); |
41 ~HbMessageBox(); |
60 ~HbMessageBox(); |
42 |
61 |
43 void show(); |
62 void show(); |
65 static void information(QString text) |
84 static void information(QString text) |
66 { |
85 { |
67 mLatestTxt = text; |
86 mLatestTxt = text; |
68 } |
87 } |
69 |
88 |
|
89 static void setStandardButtons(StandardButtons buttons); |
|
90 |
70 QList<HbAction*> actions() const |
91 QList<HbAction*> actions() const |
71 { |
92 { |
72 return mActions; |
93 return mActions; |
73 } |
94 } |
74 |
95 |
84 |
105 |
85 QList<HbAction*> mActions; |
106 QList<HbAction*> mActions; |
86 |
107 |
87 signals: |
108 signals: |
88 |
109 |
89 void finished(HbAction *action); |
110 void finished(int); |
90 }; |
111 }; |
91 |
112 |
92 #endif // HBMESSAGEBOX_H |
113 #endif // HBMESSAGEBOX_H |