mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2025-09-01 08:52:45 +00:00
core: remote playback send commands and update state
This commit is contained in:
parent
77cb5d5957
commit
7a7ddc7717
18 changed files with 371 additions and 91 deletions
|
@ -155,6 +155,8 @@ QString toString(const T &source, convertType<T>) {
|
|||
return QJsonDocument(val.toArray()).toJson(format);
|
||||
case QJsonValue::Object:
|
||||
return QJsonDocument(val.toObject()).toJson(format);
|
||||
case QJsonValue::String:
|
||||
return val.toString();
|
||||
case QJsonValue::Null:
|
||||
default:
|
||||
return QString();
|
||||
|
|
|
@ -334,9 +334,6 @@ private:
|
|||
int statusCode = m_reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();
|
||||
m_reply->deleteLater();
|
||||
m_reply = nullptr;
|
||||
/*m_parsedWatcher.setFuture(QtConcurrent::run([this, statusCode, array]() {
|
||||
return this->parseResponse(statusCode, array);
|
||||
}));*/
|
||||
m_parsedWatcher.setFuture(
|
||||
QtConcurrent::run<typename HttpLoader<R, P>::ResultType, // Result
|
||||
HttpLoader<R, P>, // class
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue