Displays the status of card image downloads in a horizontal progress bar with a log popup.
More...
#include <card_picture_loader_status_bar.h>
|
| void | addQueuedImageLoad (const QUrl &url, const ExactCard &card, const QString &setName) |
| | Adds a queued image download to the log and increments the progress bar maximum.
|
| void | addSuccessfulImageLoad (const QUrl &url) |
| | Marks an image as successfully loaded. Updates the progress bar and marks the corresponding log entry as finished.
|
| void | cleanOldEntries () |
| | Cleans up old entries from the log that have finished more than 10 seconds ago. Adjusts the progress bar accordingly.
|
|
| QHBoxLayout * | layout |
| | Horizontal layout containing progress bar and log button.
|
| QProgressBar * | progressBar |
| | Progress bar showing overall download progress.
|
| SettingsButtonWidget * | loadLog |
| | Popup log showing individual request statuses.
|
| QTimer * | cleaner |
| | Timer for periodically cleaning old log entries.
|
Displays the status of card image downloads in a horizontal progress bar with a log popup.
Responsibilities:
- Shows overall progress of image downloads.
- Maintains a log of individual requests via a popup (SettingsButtonWidget).
- Cleans up finished request entries automatically after a delay.
◆ CardPictureLoaderStatusBar()
| CardPictureLoaderStatusBar::CardPictureLoaderStatusBar |
( |
QWidget * | parent | ) |
|
|
explicit |
Constructs a status bar with progress bar and log button.
- Parameters
-
◆ addQueuedImageLoad
| void CardPictureLoaderStatusBar::addQueuedImageLoad |
( |
const QUrl & | url, |
|
|
const ExactCard & | card, |
|
|
const QString & | setName ) |
|
slot |
Adds a queued image download to the log and increments the progress bar maximum.
- Parameters
-
| url | URL of the image |
| card | The card being loaded |
| setName | The set name of the card |
◆ addSuccessfulImageLoad
| void CardPictureLoaderStatusBar::addSuccessfulImageLoad |
( |
const QUrl & | url | ) |
|
|
slot |
Marks an image as successfully loaded. Updates the progress bar and marks the corresponding log entry as finished.
- Parameters
-
| url | URL of the successfully loaded image |
◆ cleanOldEntries
| void CardPictureLoaderStatusBar::cleanOldEntries |
( |
| ) |
|
|
slot |
Cleans up old entries from the log that have finished more than 10 seconds ago. Adjusts the progress bar accordingly.
◆ cleaner
| QTimer* CardPictureLoaderStatusBar::cleaner |
|
private |
Timer for periodically cleaning old log entries.
◆ layout
| QHBoxLayout* CardPictureLoaderStatusBar::layout |
|
private |
Horizontal layout containing progress bar and log button.
◆ loadLog
Popup log showing individual request statuses.
◆ progressBar
| QProgressBar* CardPictureLoaderStatusBar::progressBar |
|
private |
Progress bar showing overall download progress.
The documentation for this class was generated from the following files: