diff -r 91746b151f97 -r 997690c3397a bluetoothengine/btnotif/btdevicedialogplugin/inc/btdevicedialognotifwidget.h --- a/bluetoothengine/btnotif/btdevicedialogplugin/inc/btdevicedialognotifwidget.h Fri Jun 11 13:48:51 2010 +0300 +++ b/bluetoothengine/btnotif/btdevicedialogplugin/inc/btdevicedialognotifwidget.h Wed Jun 23 18:23:52 2010 +0300 @@ -21,12 +21,13 @@ #include +#include #include #include #include /*! - \class BtDeviceDialogQueryWidget + \class BtDeviceDialogNotifWidget \brief Widget class with properties setting. BtDeviceDialogQueryWidget, inherited from HbNotificationDialog, @@ -36,38 +37,42 @@ */ class BtDeviceDialogNotifWidget : - public HbNotificationDialog, public HbDeviceDialogInterface + public QObject, public HbDeviceDialogInterface { Q_OBJECT public: BtDeviceDialogNotifWidget(const QVariantMap ¶meters); + ~BtDeviceDialogNotifWidget(); // From base class HbDeviceDialogInterface virtual bool setDeviceDialogParameters(const QVariantMap ¶meters); virtual int deviceDialogError() const; virtual void closeDeviceDialog(bool byClient); - virtual HbDialog *deviceDialogWidget() const; + HbPopup *deviceDialogWidget() const; + virtual QObject *signalSender() const; signals: // Required by the framework void deviceDialogClosed(); + void deviceDialogData(QVariantMap data); private: + void processParam(const QVariantMap ¶meters); - bool constructQueryDialog(const QVariantMap ¶meters); + bool constructNotifDialog(const QVariantMap ¶meters); void resetProperties(); - // From base HbInputDialog, reimplement and emit signals. - void hideEvent(QHideEvent *event); - void showEvent(QShowEvent *event); - +public slots: + void NotifClosed(HbAction *action); + private: Q_DISABLE_COPY(BtDeviceDialogNotifWidget) int mLastError; int mSendAction; bool mShowEventReceived; + HbNotificationDialog* mNotificationDialog; }; #endif // BTDEVICEDIALOGNOTIFWIDGET_H