QDSAction Class Reference
|
Constant | Value | Description |
---|---|---|
QDSAction::Invalid | 0 | Response code has not been set. |
QDSAction::Complete | 1 | The request was processed correctly. |
QDSAction::CompleteData | 2 | The request was processed correctly, and response data was received. |
QDSAction::Error | 3 | An error occured, use QDSAction::errorMessage() to view the error message. |
Constructs an empty QDSAction object and attaches it to parent.
Constructs a deep copy of other.
Constructs a QDSAction object for the QDS service name and the Qt Extended service service. The action is attached to parent.
Constructs a QDSAction object for the service described in serviceInfo and attaches to parent.
Destroys the action.
This signal is emitted when an error message message is received for the action identified by actionId.
Returns any error message generated during the request. Errors are reported from either QDSAction or the provider application, and are reported through QDSData::error() or the return value of QDSData::exec(). If no error has been reported a null string will be returned.
Synchronously performs the QDS service request. The return value provides the result of the request, see QDSAction::ResponseCode.
This method should only be used for QDS services which don't have request data, as discussed in QDSServiceInfo, otherwise an error will be generated.
Warning: This call will block until a response has been received from the QDS service or the request times out.
This is an overloaded member function, provided for convenience.
Synchronously performs the QDS service request with requestData. The return value provides the result of the request, see QDSAction::ResponseCode.
The request may also contain auxiliary data for supplementary information which may be required for the request but does not conceptually belong to requestData.
This method should only be used for QDS services which have request data, as discussed in QDSServiceInfo, otherwise an error will be generated.
Warning: This call will block until the response has been received from the QDS service or the request times out.
Returns the unique identifier for the QDSAction
Asynchronously initiates the QDS service request. Depending on the outcome of the request, the response from the QDS service provider is given by one of QDSData::response() or QDSData::error() signals.
This method should only be used for QDS services which don't have request data, as discussed in QDSServiceInfo, otherwise an error will be generated.
Returns true on successful completion of the request; otherwise returns false.
This is an overloaded member function, provided for convenience.
Asynchronously initiates the QDS service request with requestData. Depending on the outcome of the request, the response from the QDS service provider is given by one of QDSData::response() or QDSData::error() signals.
The request may also contain auxiliary data for supplementary information, which may be required for the request but does not conceptually belong to requestData.
This method should only be used for QDS services which have request data, as discussed in QDSServiceInfo, otherwise an error will be generated.
Returns true on successful completion of the request; otherwise returns false.
Returns true if the request is still being processed by the QDS service provider; otherwise returns false.
Returns true if the QDSAction object represents an available QDS service; otherwise returns false. The requirements of an available QDS service are discussed in QDSServiceInfo.
Returns true if the QDSAction object represents a valid QDS service; otherwise returns false. The requirements of a valid QDS service are discussed in QDSServiceInfo.
This signal is emitted when a response is received from the service provider for the action identified by actionId.
This is an overloaded member function, provided for convenience.
This signal is emitted when a response is received from the service provider which contains the response data responseData for the action identified by actionId.
Returns the QDSData generated by the request.
Returns the QDSServiceInfo object which describes the QDS service being utilised.
Makes a deep copy of other and assigns it to this QDSAction object. Returns a reference to this QDSAction object.
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt qtextended4.4 | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com