Cockatrice/oracle/src
BruebachL 518c7e6125
[Network] Add a configured QNetworkAccessManager factory (#7628)
* [Network] Add a configured QNetworkAccessManager factory

Every HTTP caller built its own QNetworkAccessManager, so the system proxy
and a transfer timeout were easy to omit. Add NetworkManagerFactory::create()
as the single place that applies the process-wide proxy configuration and a
transfer timeout, and use it at all 14 construction sites.

Per-site settings such as disk caches and manual redirect policies stay with
their callers.

* [Tests] Link libcockatrice_network into the tests that compile its headers

release_channel.cpp and card_picture_loader_worker.cpp now include
libcockatrice/network/network_manager.h, but the test targets that compile
them only linked libcockatrice_settings, so the include directory never
reached them and every platform failed with "file not found":
loader_local_matching_test and picture_loader_benchmark_test.

libcockatrice_network is an INTERFACE library, so linking it costs these
targets nothing but hands over the include path.

---------

Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
2026-10-25 00:33:43 +02:00
..
lzma [WIP] Basic mtgjsonv4 support (#3458) 2018-12-20 18:05:03 -05:00
zip Docs: Use Doxygen \todo comments (#6421) 2025-12-15 00:13:16 +01:00
main.cpp [Oracle] Don't report a cancelled card database update as successful (#7082) 2026-10-15 15:21:07 +02:00
main.h workaround for foreign card arts getting priority by default (#3652) 2019-03-12 10:12:31 +01:00
oracleimporter.cpp [CardDB] Stream card properties from blobs (#7608) 2026-10-24 00:17:31 +02:00
oracleimporter.h [Client] Improve card database update visibility (#7458) 2026-10-09 11:07:48 +02:00
oraclewizard.cpp [Network] Add a configured QNetworkAccessManager factory (#7628) 2026-10-25 00:33:43 +02:00
oraclewizard.h [Oracle] Don't report a cancelled card database update as successful (#7082) 2026-10-15 15:21:07 +02:00
pages.cpp [Oracle] Don't report a cancelled card database update as successful (#7082) 2026-10-15 15:21:07 +02:00
pages.h [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
pagetemplates.cpp [Oracle] Don't report a cancelled card database update as successful (#7082) 2026-10-15 15:21:07 +02:00
pagetemplates.h [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
parsehelpers.cpp [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
parsehelpers.h Update cipt parsing (#5712) 2025-03-14 21:44:13 -04:00
raw_json_scanner.cpp [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
raw_json_scanner.h [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00