videocollection/videofiledetailsview/tsrc/testplugin/stub/inc/hbmessagebox.h
changeset 44 518105d52e45
parent 38 ff53afa8ad05
child 50 21fe8338c6bf
--- a/videocollection/videofiledetailsview/tsrc/testplugin/stub/inc/hbmessagebox.h	Fri Jul 02 17:14:33 2010 +0300
+++ b/videocollection/videofiledetailsview/tsrc/testplugin/stub/inc/hbmessagebox.h	Thu Jul 08 13:05:19 2010 +0300
@@ -35,7 +35,26 @@
         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);
     ~HbMessageBox();
@@ -67,6 +86,8 @@
         mLatestTxt = text;
     }
     
+    static void setStandardButtons(StandardButtons buttons);
+
     QList<HbAction*> actions() const
     {
         return mActions;
@@ -86,7 +107,7 @@
     
 signals:
 
-    void finished(HbAction *action);
+    void finished(int);
 };
 
 #endif // HBMESSAGEBOX_H