Cockatrice/cockatrice/src/interface/card_picture_loader
BruebachL 5ddfcd7ead
[Pictures] Watch the custom picture folder instead of polling (#7635)
The local picture loader walked the whole custom picture tree every ten
seconds on the GUI thread. Watch the root and every subdirectory with
QFileSystemWatcher, debounce bursts of events into a single 500 ms refresh,
and keep a five-minute fallback poll for filesystems where watching fails.

Add an explicit-path constructor and indexedPaths() so the indexing can be
tested without SettingsCache, and emit indexChanged() after a rebuild.

Verification: cockatrice built.

Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
2026-10-25 00:36:14 +02:00
..
card_picture_loader.cpp [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
card_picture_loader.h [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
card_picture_loader_cache_method.h [PictureLoader] Allow saving downloaded images to local storage and not just the QNetworkManager cache (#6620) 2026-05-16 20:15:10 +02:00
card_picture_loader_local.cpp [Pictures] Watch the custom picture folder instead of polling (#7635) 2026-10-25 00:36:14 +02:00
card_picture_loader_local.h [Pictures] Watch the custom picture folder instead of polling (#7635) 2026-10-25 00:36:14 +02:00
card_picture_loader_local_schemes.h Run formatter on all our files (#6942) 2026-05-26 15:11:38 -07:00
card_picture_loader_request_status_display_widget.cpp [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
card_picture_loader_request_status_display_widget.h [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
card_picture_loader_status_bar.cpp [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
card_picture_loader_status_bar.h [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
card_picture_loader_worker.cpp [Network] Add a configured QNetworkAccessManager factory (#7628) 2026-10-25 00:33:43 +02:00
card_picture_loader_worker.h [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
card_picture_loader_worker_work.cpp [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
card_picture_loader_worker_work.h [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
card_picture_to_load.cpp [CardDB] Avoid copying printing maps and property strings (#7605) 2026-10-23 11:58:58 +02:00
card_picture_to_load.h [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00