messagingapp/msgnotifications/msgnotificationdialogplugin/inc/msgnotificationdialogwidget.h
changeset 72 6f657153cbc5
parent 31 ebfee66fde93
equal deleted inserted replaced
70:a15d9966050f 72:6f657153cbc5
    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 QObject,public QRunnable
    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);
    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 /**