Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
CardPictureLoaderRequestStatusDisplayWidget Class Reference

A small widget to display the status of a single card image request. More...

#include <card_picture_loader_request_status_display_widget.h>

Inheritance diagram for CardPictureLoaderRequestStatusDisplayWidget:
[legend]
Collaboration diagram for CardPictureLoaderRequestStatusDisplayWidget:
[legend]

Public Member Functions

 CardPictureLoaderRequestStatusDisplayWidget (QWidget *parent, const QUrl &url, const ExactCard &card, const QString &setName)
 Constructs a new status widget for a specific card image request.
void setFinished ()
bool getFinished () const
void setElapsedTime (const QString &_elapsedTime) const
int queryElapsedSeconds ()
 Queries the elapsed time in seconds since the request started.
QString getStartTime () const
QString getUrl () const

Private Attributes

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.

Detailed Description

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

Constructor & Destructor Documentation

◆ 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
parentParent widget
urlURL of the image being requested
cardThe ExactCard being downloaded
setNameSet name for the card
Here is the call graph for this function:

Member Function Documentation

◆ getFinished()

bool CardPictureLoaderRequestStatusDisplayWidget::getFinished ( ) const
inlinenodiscard

Returns whether the request has finished

Here is the caller graph for this function:

◆ 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
Here is the call graph for this function:

◆ setElapsedTime()

void CardPictureLoaderRequestStatusDisplayWidget::setElapsedTime ( const QString & _elapsedTime) const
inline

Updates the elapsed time display

◆ setFinished()

void CardPictureLoaderRequestStatusDisplayWidget::setFinished ( )
inline

Marks the request as finished

Member Data Documentation

◆ 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

Card name.

◆ providerId

QLabel* CardPictureLoaderRequestStatusDisplayWidget::providerId
private

Provider ID for the card.

◆ setShortname

QLabel* CardPictureLoaderRequestStatusDisplayWidget::setShortname
private

Set short name.

◆ 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: