|
game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
|
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 |
Progress information for downloads.
Definition at line 25 of file file_download_service.h.
|
strong |
| Enumerator | |
|---|---|
| Pending | |
| Downloading | |
| Verifying | |
| Extracting | |
| Installing | |
| Completed | |
| Failed | |
| Cancelled | |
Definition at line 120 of file runner_download_service.h.
| std::string DownloadProgress::getStateStr | ( | ) | const |
Definition at line 324 of file runner_download_service.cpp.
References Cancelled, Completed, Downloading, Extracting, Failed, Installing, Pending, state, and Verifying.
| uint64_t DownloadProgress::bytesDownloaded = 0 |
Definition at line 27 of file file_download_service.h.
Referenced by FileDownloadService::download(), FileDownloadService::downloadBatch(), and anonymous_namespace{runner_download_service.cpp}::writeCallback().
| int64_t DownloadProgress::bytesDownloaded = 0 |
Definition at line 134 of file runner_download_service.h.
| int64_t DownloadProgress::bytesTotal = 0 |
Definition at line 135 of file runner_download_service.h.
Referenced by RunnerDownloadService::downloadRunner(), and anonymous_namespace{runner_download_service.cpp}::writeCallback().
| bool DownloadProgress::cancelled = false |
Definition at line 34 of file file_download_service.h.
| 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().
| std::string DownloadProgress::errorMessage |
Error message if failed.
Definition at line 137 of file runner_download_service.h.
Referenced by RunnerDownloadService::downloadRunner().
| bool DownloadProgress::paused = false |
Definition at line 33 of file file_download_service.h.
| int DownloadProgress::percentComplete = 0 |
Definition at line 30 of file file_download_service.h.
Referenced by FileDownloadService::download(), FileDownloadService::downloadBatch(), RunnerDownloadService::downloadRunner(), and anonymous_namespace{runner_download_service.cpp}::writeCallback().
| double DownloadProgress::speedBytesPerSec = 0.0 |
Definition at line 29 of file file_download_service.h.
Referenced by FileDownloadService::download().
| State DownloadProgress::state = State::Pending |
Definition at line 132 of file runner_download_service.h.
Referenced by RunnerDownloadService::downloadRunner(), getStateStr(), and anonymous_namespace{runner_download_service.cpp}::writeCallback().
| std::string DownloadProgress::statusMessage |
Definition at line 32 of file file_download_service.h.
Referenced by FileDownloadService::downloadBatch().
| uint64_t DownloadProgress::totalBytes = 0 |
Definition at line 28 of file file_download_service.h.
Referenced by FileDownloadService::download(), and FileDownloadService::downloadBatch().