messagingapp/msgnotifications/msgnotificationdialogplugin/inc/msgnotificationdialogwidget.h
changeset 67 fc91263aee62
parent 25 84d9eb65b26f
child 68 e8a69c93c830
--- a/messagingapp/msgnotifications/msgnotificationdialogplugin/inc/msgnotificationdialogwidget.h	Tue Sep 14 22:54:56 2010 +0530
+++ b/messagingapp/msgnotifications/msgnotificationdialogplugin/inc/msgnotificationdialogwidget.h	Fri Sep 17 20:01:45 2010 +0530
@@ -20,7 +20,7 @@
 
 #include <QObject>
 #include <QVariantMap>
-#include <QRunnable>
+#include <QThread>
 #include <hbdevicedialoginterface.h>
 #include <hbdevicedialog.h>
 #include <hbnotificationdialog.h>
@@ -29,13 +29,15 @@
 /**
  * Class for sending service request
  */
-class ServiceRequestSenderTask : public QRunnable
+class ServiceRequestSenderTask :public QThread
 {
+    Q_OBJECT
+    
 public:
     /**
      * Constructor
      */
-    ServiceRequestSenderTask(qint64 conversationId);
+    ServiceRequestSenderTask(qint64 conversationId,QObject* parent=0);
     
     /**
      * Destructor
@@ -47,6 +49,26 @@
      */
      void run();
 
+private slots:
+
+    /**
+     * Slot invoked after Conversation view is launched.
+     */
+     void onRequestCompleted(const QVariant& value);
+     
+    /**
+     * Slot invoked if error occurred during launch of CV.
+     */
+     void onRequestError(int errorCode, const QString& errorMessage);
+          
+signals:
+
+	/**
+	* Signal is emitted to indicate that Notification Dialog 
+	* can now be closed.
+	*/
+     void serviceRequestCompleted();
+     
 private: 
      qint64 mConvId;
 };