[REQ] [cpp-qt-client] Download Progress
Is your feature request related to a problem? Please describe.
When downloading larger files via the generated API I miss a possibility to get the download progress. This could be achieved by connecting to the signal QNetworkReply::downloadProgress.
Describe the solution you'd like
I see two possible ways:
- pass the
QNetworkReply::downloadProgressto the clients- add a
downloadProgresssignal to theHttpRequestheader - connect the
QNetworkReply::downloadProgressto the new signal in theHttpRequestbody right before the connect toQNetworkReply::finished - add a
downloadProgresssignal to the api-header and connect this in the api-body right before the connect toHttpRequestWorker::on_execution_finished
- add a
- OR make the
QNetworkReplyavailable- add a parameter to a changeable reference pointer to the
HttpRequest::executethat can be read in the client's major call (the first occurrence of nickname)
- add a parameter to a changeable reference pointer to the
Solution 2 would make more interaction with the reply available but may also enable misusing it.
Describe alternatives you've considered
Additional context
Here is an implementation of solution 1: https://github.com/Jazzco/openapi-generator/tree/qt-progress-info
On positive feedback I would create a PullRequest
can you please create a PR to start with? I'll tag some contributors to review. thanks
Sure: https://github.com/OpenAPITools/openapi-generator/pull/18950