A small widget to display the status of a single card image request.
More...
#include <card_picture_loader_request_status_display_widget.h>
|
| QHBoxLayout * | layout |
| | Horizontal layout for arranging labels.
|
| QLabel * | name |
| | Card name.
|
| QLabel * | setShortname |
| | Set short name.
|
| QLabel * | providerId |
| | Provider ID for the card.
|
| QLabel * | startTime |
| | Start time of the request.
|
| QLabel * | elapsedTime |
| | Elapsed time since start.
|
| QLabel * | finished |
| | Whether the request has finished.
|
| QLabel * | url |
| | URL of the requested image.
|
A small widget to display the status of a single card image request.
Displays:
- Card name
- Set short name
- Provider ID
- Start time of request
- Elapsed time since start
- Finished status
- URL of the requested image
◆ CardPictureLoaderRequestStatusDisplayWidget()
| CardPictureLoaderRequestStatusDisplayWidget::CardPictureLoaderRequestStatusDisplayWidget |
( |
QWidget * | parent, |
|
|
const QUrl & | url, |
|
|
const ExactCard & | card, |
|
|
const QString & | setName ) |
Constructs a new status widget for a specific card image request.
- Parameters
-
| parent | Parent widget |
| url | URL of the image being requested |
| card | The ExactCard being downloaded |
| setName | Set name for the card |
◆ getFinished()
| bool CardPictureLoaderRequestStatusDisplayWidget::getFinished |
( |
| ) |
const |
|
inlinenodiscard |
Returns whether the request has finished
◆ getStartTime()
| QString CardPictureLoaderRequestStatusDisplayWidget::getStartTime |
( |
| ) |
const |
|
inlinenodiscard |
Returns the start time as a string
◆ getUrl()
| QString CardPictureLoaderRequestStatusDisplayWidget::getUrl |
( |
| ) |
const |
|
inlinenodiscard |
Returns the URL of the request
◆ queryElapsedSeconds()
| int CardPictureLoaderRequestStatusDisplayWidget::queryElapsedSeconds |
( |
| ) |
|
|
inline |
Queries the elapsed time in seconds since the request started.
- Returns
- Elapsed time in seconds
◆ setElapsedTime()
| void CardPictureLoaderRequestStatusDisplayWidget::setElapsedTime |
( |
const QString & | _elapsedTime | ) |
const |
|
inline |
Updates the elapsed time display
◆ setFinished()
| void CardPictureLoaderRequestStatusDisplayWidget::setFinished |
( |
| ) |
|
|
inline |
Marks the request as finished
◆ elapsedTime
| QLabel* CardPictureLoaderRequestStatusDisplayWidget::elapsedTime |
|
private |
Elapsed time since start.
◆ finished
| QLabel* CardPictureLoaderRequestStatusDisplayWidget::finished |
|
private |
Whether the request has finished.
◆ layout
| QHBoxLayout* CardPictureLoaderRequestStatusDisplayWidget::layout |
|
private |
Horizontal layout for arranging labels.
◆ name
| QLabel* CardPictureLoaderRequestStatusDisplayWidget::name |
|
private |
◆ providerId
| QLabel* CardPictureLoaderRequestStatusDisplayWidget::providerId |
|
private |
Provider ID for the card.
◆ setShortname
| QLabel* CardPictureLoaderRequestStatusDisplayWidget::setShortname |
|
private |
◆ startTime
| QLabel* CardPictureLoaderRequestStatusDisplayWidget::startTime |
|
private |
Start time of the request.
◆ url
| QLabel* CardPictureLoaderRequestStatusDisplayWidget::url |
|
private |
URL of the requested image.
The documentation for this class was generated from the following files: