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

Progress information for downloads. More...

#include <file_download_service.h>

Public Types

enum class  State {
  Pending , Downloading , Verifying , Extracting ,
  Installing , Completed , Failed , Cancelled
}

Public Member Functions

std::string getStateStr () const

Public Attributes

uint64_t bytesDownloaded = 0
int64_t bytesDownloaded = 0
int64_t bytesTotal = 0
bool cancelled = false
std::string currentFile
 Current file being processed.
std::string errorMessage
 Error message if failed.
bool paused = false
int percentComplete = 0
double speedBytesPerSec = 0.0
State state = State::Pending
std::string statusMessage
uint64_t totalBytes = 0

Detailed Description

Progress information for downloads.

Definition at line 25 of file file_download_service.h.

Member Enumeration Documentation

◆ State

enum class DownloadProgress::State
strong
Enumerator
Pending 
Downloading 
Verifying 
Extracting 
Installing 
Completed 
Failed 
Cancelled 

Definition at line 120 of file runner_download_service.h.

Member Function Documentation

◆ getStateStr()

std::string DownloadProgress::getStateStr ( ) const

Member Data Documentation

◆ bytesDownloaded [1/2]

◆ bytesDownloaded [2/2]

int64_t DownloadProgress::bytesDownloaded = 0

Definition at line 134 of file runner_download_service.h.

◆ bytesTotal

int64_t DownloadProgress::bytesTotal = 0

◆ cancelled

bool DownloadProgress::cancelled = false

Definition at line 34 of file file_download_service.h.

◆ currentFile

std::string DownloadProgress::currentFile

Current file being processed.

Definition at line 31 of file file_download_service.h.

Referenced by FileDownloadService::download(), and RunnerDownloadService::downloadRunner().

◆ errorMessage

std::string DownloadProgress::errorMessage

Error message if failed.

Definition at line 137 of file runner_download_service.h.

Referenced by RunnerDownloadService::downloadRunner().

◆ paused

bool DownloadProgress::paused = false

Definition at line 33 of file file_download_service.h.

◆ percentComplete

◆ speedBytesPerSec

double DownloadProgress::speedBytesPerSec = 0.0

Definition at line 29 of file file_download_service.h.

Referenced by FileDownloadService::download().

◆ state

◆ statusMessage

std::string DownloadProgress::statusMessage

Definition at line 32 of file file_download_service.h.

Referenced by FileDownloadService::downloadBatch().

◆ totalBytes

uint64_t DownloadProgress::totalBytes = 0

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