src/hbcore/gui/hbdialog.h
branchGCC_SURGE
changeset 15 f378acbc9cfb
parent 6 c3690ec91ef8
child 21 4633027730f5
child 34 ed14f46c0e55
--- a/src/hbcore/gui/hbdialog.h	Thu Jul 15 14:03:49 2010 +0100
+++ b/src/hbcore/gui/hbdialog.h	Thu Jul 22 16:36:53 2010 +0100
@@ -37,6 +37,8 @@
     Q_OBJECT
 
 public:
+    enum DialogCode { Rejected, Accepted };
+
     explicit HbDialog( QGraphicsItem *parent = 0 );
     virtual  ~HbDialog();
 
@@ -52,14 +54,22 @@
     HbAction *secondaryAction() const;
     void setSecondaryAction( HbAction *action );
 
+    void open( QObject* receiver, const char* member );
+
     enum { Type = Hb::ItemType_Dialog }; // TODO: Hb::ItemType_Dialog
     int type() const { return Type; }
 
 public slots:
-    void open( QObject* receiver = 0, const char* member = 0 );
+    void open();
+    virtual void done(int code);
+    virtual void accept();
+    virtual void reject();   
 
- signals:
+signals:
     void finished(HbAction*); 
+    void finished(int);
+    void accepted();
+    void rejected();
 
 protected:
     HbDialog( HbDialogPrivate &dd, QGraphicsItem *parent );