--- a/videocollection/tsrc/stubs/inc/hbmessagebox.h Fri Jul 02 17:14:33 2010 +0300
+++ b/videocollection/tsrc/stubs/inc/hbmessagebox.h Thu Jul 08 13:05:19 2010 +0300
@@ -37,6 +37,25 @@
MessageTypeQuestion,
MessageTypeWarning
};
+
+ enum StandardButton {
+ NoButton = 0x00000000,
+ Ok = 0x00000400,
+ Save = 0x00000800,
+ Open = 0x00001000,
+ Yes = 0x00002000,
+ Continue = 0x00004000,
+ Delete = 0x00008000,
+ No = 0x00010000,
+ Retry = 0x00020000,
+ Close = 0x00040000,
+ Cancel = 0x00080000,
+ Help = 0x00100000,
+ Apply = 0x00200000,
+ Reset = 0x00400000
+ };
+
+ Q_DECLARE_FLAGS(StandardButtons, StandardButton)
HbMessageBox(MessageBoxType type = MessageTypeInformation, QGraphicsItem *parent = 0);
HbMessageBox(const QString &text, MessageBoxType type = MessageTypeInformation, QGraphicsItem *parent = 0);
@@ -75,6 +94,8 @@
QGraphicsScene *scene = 0,
QGraphicsItem *parent = 0 );
+ static void setStandardButtons(StandardButtons buttons);
+
QList<HbAction*> actions() const
{
return mActions;
@@ -82,7 +103,7 @@
signals:
- void finished(HbAction *action);
+ void finished(int action);
public: