game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
Loading...
Searching...
No Matches
DownloadsIndicator Class Reference

Shows active downloads with progress. More...

#include <status_indicators.h>

Inheritance diagram for DownloadsIndicator:
Collaboration diagram for DownloadsIndicator:

Public Member Functions

 DownloadsIndicator (SteamDownloadMonitor *downloadMonitor, QWidget *parent=nullptr, ThemeManager *themeManager=nullptr)
void onDownloadComplete (uint32_t appId)
void onDownloadProgress (uint32_t appId, double progress, const QString &status)
void refresh ()
Public Member Functions inherited from StatusIndicator
 StatusIndicator (QWidget *parent=nullptr, ThemeManager *themeManager=nullptr)
void clicked ()
void setIcon (const QString &icon)
void setText (const QString &text)
void setTooltipText (const QString &tip)

Additional Inherited Members

Protected Member Functions inherited from StatusIndicator
void enterEvent (QEnterEvent *event) override
void leaveEvent (QEvent *event) override
void mousePressEvent (QMouseEvent *event) override
void mouseReleaseEvent (QMouseEvent *event) override
void paintEvent (QPaintEvent *event) override
void updateTextColors ()
Protected Attributes inherited from StatusIndicator
bool hovered_ = false
QLabel * iconLabel_ = nullptr
bool pressed_ = false
QLabel * textLabel_ = nullptr
ThemeManager * themeManager_

Detailed Description

Shows active downloads with progress.

Definition at line 109 of file status_indicators.h.

Constructor & Destructor Documentation

◆ DownloadsIndicator()

DownloadsIndicator::DownloadsIndicator ( SteamDownloadMonitor * downloadMonitor,
QWidget * parent = nullptr,
ThemeManager * themeManager = nullptr )
explicit

Member Function Documentation

◆ onDownloadComplete()

void DownloadsIndicator::onDownloadComplete ( uint32_t appId)

Definition at line 327 of file status_indicators.cpp.

References refresh().

◆ onDownloadProgress()

void DownloadsIndicator::onDownloadProgress ( uint32_t appId,
double progress,
const QString & status )

Definition at line 303 of file status_indicators.cpp.

References refresh().

◆ refresh()

void DownloadsIndicator::refresh ( )

The documentation for this class was generated from the following files: