diff -r 730c025d4b77 -r f378acbc9cfb src/hbcore/gui/hbdialog.h --- 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 );