qthighway/xqservice/src/xqaiwrequest.h
changeset 24 9d760f716ca8
parent 11 06b8e2af4411
equal deleted inserted replaced
19:46686fb6258c 24:9d760f716ca8
    84     XQRequestInfo info() const;
    84     XQRequestInfo info() const;
    85 
    85 
    86     
    86     
    87 signals:
    87 signals:
    88 
    88 
       
    89 /*!
       
    90     Emitted when the QAction attached to request has been triggered.
       
    91     Upon this signal is the latest time to call
       
    92     setArguments(const QList<QVariant> &arguments) if not done earlier.
       
    93 */
    89     void triggered();
    94     void triggered();
       
    95     
       
    96 /*!
       
    97     This signal is emitted when interworking request has been successfully
       
    98     executed (synchronous or asynchronous). That is, the service has returned
       
    99     data back according to the slot spec. The return value may be real data
       
   100     or indicate an service specific error.
       
   101     \param result Result of the executed request
       
   102 */
    90     void requestOk(const QVariant& result);
   103     void requestOk(const QVariant& result);
       
   104     
       
   105 /*!
       
   106     This signal is emitted when an error has happened in interworking request
       
   107     handling. That is, e.g. the required slot could not be called or connection
       
   108     to server is lost. If the service itself return service specific errors,
       
   109     those should be returned as successfull return value of the slot
       
   110     (requestOk(const QVariant& result)).
       
   111     \param errorCode Error code as integer value
       
   112     \param errorMessage Contains needed R&D specific data that will be added to support error debugging
       
   113     \sa xqserviceglobal.h for error codes.
       
   114 */
    91     void requestError(int errorCode, const QString& errorMessage);
   115     void requestError(int errorCode, const QString& errorMessage);
    92 
   116 
    93 protected:
   117 protected:
    94     
   118     
    95     virtual const QVariant& results() const;
   119     virtual const QVariant& results() const;