Showing the changes to libraries/script-engine/src/XMLHttpRequestClass.cpp (1 of 2 files). Show all
Unified · Split
| @@ -110,6 +110,10 @@ QScriptValue XMLHttpRequestClass::getResponseHeader(const QString& name) const { · 109 unmodified lines | ||
| 110 | 110 | return QScriptValue::NullValue; |
| 111 | 111 | } |
| 112 | 112 | |
| 113 | +/**jsdoc | |
| 114 | + * Called when the request's ready state changes. | |
| 115 | + * @callback XMLHttpRequest~onReadyStateChangeCallback | |
| 116 | + */ | |
| 113 | 117 | void XMLHttpRequestClass::setReadyState(ReadyState readyState) { |
| 114 | 118 | if (readyState != _readyState) { |
| 115 | 119 | _readyState = readyState; |
| @@ -183,6 +187,10 @@ void XMLHttpRequestClass::doSend() { · 67 unmodified lines | ||
| 183 | 187 | } |
| 184 | 188 | } |
| 185 | 189 | |
| 190 | +/**jsdoc | |
| 191 | + * Called when the request times out. | |
| 192 | + * @callback XMLHttpRequest~onTimeoutCallback | |
| 193 | + */ | |
| 186 | 194 | void XMLHttpRequestClass::requestTimeout() { |
| 187 | 195 | if (_onTimeout.isFunction()) { |
| 188 | 196 | _onTimeout.call(QScriptValue::NullValue); |