messagingapp/msgnotifications/msgnotificationdialogplugin/inc/msgnotificationdialogwidget.h
changeset 67 fc91263aee62
parent 25 84d9eb65b26f
child 68 e8a69c93c830
equal deleted inserted replaced
65:d8ac8e5e4721 67:fc91263aee62
    18 #ifndef MSGNOTIFICATIONDIALOGWIDGET_H
    18 #ifndef MSGNOTIFICATIONDIALOGWIDGET_H
    19 #define MSGNOTIFICATIONDIALOGWIDGET_H
    19 #define MSGNOTIFICATIONDIALOGWIDGET_H
    20 
    20 
    21 #include <QObject>
    21 #include <QObject>
    22 #include <QVariantMap>
    22 #include <QVariantMap>
    23 #include <QRunnable>
    23 #include <QThread>
    24 #include <hbdevicedialoginterface.h>
    24 #include <hbdevicedialoginterface.h>
    25 #include <hbdevicedialog.h>
    25 #include <hbdevicedialog.h>
    26 #include <hbnotificationdialog.h>
    26 #include <hbnotificationdialog.h>
    27 
    27 
    28 
    28 
    29 /**
    29 /**
    30  * Class for sending service request
    30  * Class for sending service request
    31  */
    31  */
    32 class ServiceRequestSenderTask : public QRunnable
    32 class ServiceRequestSenderTask :public QThread
    33 {
    33 {
       
    34     Q_OBJECT
       
    35     
    34 public:
    36 public:
    35     /**
    37     /**
    36      * Constructor
    38      * Constructor
    37      */
    39      */
    38     ServiceRequestSenderTask(qint64 conversationId);
    40     ServiceRequestSenderTask(qint64 conversationId,QObject* parent=0);
    39     
    41     
    40     /**
    42     /**
    41      * Destructor
    43      * Destructor
    42      */
    44      */
    43     ~ServiceRequestSenderTask();
    45     ~ServiceRequestSenderTask();
    45     /**
    47     /**
    46      * create and send service request
    48      * create and send service request
    47      */
    49      */
    48      void run();
    50      void run();
    49 
    51 
       
    52 private slots:
       
    53 
       
    54     /**
       
    55      * Slot invoked after Conversation view is launched.
       
    56      */
       
    57      void onRequestCompleted(const QVariant& value);
       
    58      
       
    59     /**
       
    60      * Slot invoked if error occurred during launch of CV.
       
    61      */
       
    62      void onRequestError(int errorCode, const QString& errorMessage);
       
    63           
       
    64 signals:
       
    65 
       
    66 	/**
       
    67 	* Signal is emitted to indicate that Notification Dialog 
       
    68 	* can now be closed.
       
    69 	*/
       
    70      void serviceRequestCompleted();
       
    71      
    50 private: 
    72 private: 
    51      qint64 mConvId;
    73      qint64 mConvId;
    52 };
    74 };
    53 
    75 
    54 /**
    76 /**