summaryrefslogtreecommitdiffstats
path: root/src/network
AgeCommit message (Collapse)Author
2020-12-13Networking: Move shared code into WebTask base classUwe Klotz
2020-12-13WebTask: Fix outdated and wrong commentUwe Klotz
2020-12-11Fix typo in commentsUwe Klotz
2020-12-11Reword commentsUwe Klotz
2020-12-11Improve logging for tracing network failuresUwe Klotz
2020-12-11Detect and prevent duplicate signals on network errorsUwe Klotz
2020-12-07Slimdown moc_compilation.cppDaniel Poelzleithner
The moc_compilation file became unbearable large, easily taking 10 minutes to compile whenever a Q_OBJECT changes. AUTOMOC scans for <basename>_moc.cpp includes and does not add the file to the moc_compilation whenever it is included in the propper cpp file. After this patch, moc_compilation.cpp is empty and the mocs are compiled with the approptial cpp, increasing recompile speeds by a factor of 10 when just a header file changed.
2020-11-28JsonWebTask: Replace deprecated FollowRedirectsAttributeJan Holthuis
Fixes: src/network/jsonwebtask.cpp: In function ‘QNetworkRequest mixxx::network::{anonymous}::newRequest(const QUrl&)’: src/network/jsonwebtask.cpp:104:43: error: ‘QNetworkRequest::FollowRedirectsAttribute’ is deprecated: Use RedirectPolicyAttribute [-Werror=deprecated-declarations] 104 | request.setAttribute(QNetworkRequest::FollowRedirectsAttribute, true); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/qt/QtNetwork/qnetworkaccessmanager.h:44, from /usr/include/qt/QtNetwork/QNetworkAccessManager:1, from src/network/webtask.h:4, from src/network/jsonwebtask.h:7, from src/network/jsonwebtask.cpp:1: /usr/include/qt/QtNetwork/qnetworkrequest.h:97:9: note: declared here 97 | FollowRedirectsAttribute Q_DECL_ENUMERATOR_DEPRECATED_X("Use RedirectPolicyAttribute"), | ^~~~~~~~~~~~~~~~~~~~~~~~
2020-11-19Pass non-trivial/large function args by referenceJan Holthuis
Fixes a bunch of `-Wclazy-function-args-by-ref` warnings. See https://github.com/KDE/clazy/blob/master/docs/checks/README-function-args-by-ref.md for details. Most of these changes are automated, using the clazy fixit by setting the `CLAZY_EXPORT_FIXES` before compilation and then running: $ mkdir /tmp/patch $ find ../src -iname "*.yaml" -exec mv {} /tmp/patch \; $ clang-apply-replacements /tmp/patch
2020-06-06Detect thread affinity violationsUwe Klotz
2020-06-04Use QNetworkReply::errorOccured instead of overloaded error signalJan Holthuis
2020-04-28Fix various typosluz.paz
Found via codespell v1.17.0.dev0 ``` codespell -q 3 -S *.ts,*.po,*.rtf,./.git,./src/library,./lib,./build/wix -L ba,chang,ect,everytime,german,hace,iff,jus,ith,lokal,nd,ons,pevent,pparent,preverse,seeked,sheat,sinc,splitted,substract,thru,tim,uint ```
2020-04-12Remove debug assertionUwe Klotz
2020-04-12Clarify error handlingUwe Klotz
2020-04-12Log unexpected content typeUwe Klotz
2020-04-11JsonWebTask: Improve error reportingUwe Klotz
2020-04-01Delete obsolete method deleteAfterFinished()Uwe Klotz
2020-03-31Remove implicit auto-delete from web tasksUwe Klotz
2020-03-31Add debug output operators for requests and repsonsesUwe Klotz
2020-03-31Always finish WebTask with a signalUwe Klotz
2020-03-28Provide an abort() function for composite web tasksUwe Klotz
2020-03-25Simplify start procedure after rethinking the interactionsUwe Klotz
2020-03-25Add documentation for pure virtual functionsUwe Klotz
2020-03-24Fix restarting of WebTaskUwe Klotz
2020-03-24Handle client-side timeoutsUwe Klotz
2020-03-24Yet another backport for XenialUwe Klotz
2020-03-23Handle QNetworkReply::error signalsUwe Klotz
2020-03-23Prevent web network tasks from becoming parentedUwe Klotz
2020-03-09Add comment about abort while being startedUwe Klotz
2020-03-07Allow restarting of web tasksUwe Klotz
2020-02-27Add (Json)WebTask frameworkUwe Klotz