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

Progress information for GOG operations. More...

#include <gog_integration.h>

Public Types

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

Public Member Functions

std::string getStateStr () const

Public Attributes

int64_t bytesDownloaded = 0
int64_t bytesTotal = 0
std::string currentFile
float downloadSpeed = 0.0f
std::string errorMessage
int percentComplete = 0
State state = State::Starting

Detailed Description

Progress information for GOG operations.

Definition at line 102 of file gog_integration.h.

Member Enumeration Documentation

◆ State

enum class GOGProgress::State
strong
Enumerator
Starting 
Downloading 
Verifying 
Installing 
Completed 
Failed 
Cancelled 

Definition at line 104 of file gog_integration.h.

Member Function Documentation

◆ getStateStr()

std::string GOGProgress::getStateStr ( ) const

Definition at line 49 of file gog_integration.cpp.

References Cancelled, Completed, Downloading, Failed, Installing, Starting, state, and Verifying.

Member Data Documentation

◆ bytesDownloaded

int64_t GOGProgress::bytesDownloaded = 0

Definition at line 117 of file gog_integration.h.

◆ bytesTotal

int64_t GOGProgress::bytesTotal = 0

Definition at line 118 of file gog_integration.h.

◆ currentFile

std::string GOGProgress::currentFile

Definition at line 116 of file gog_integration.h.

◆ downloadSpeed

float GOGProgress::downloadSpeed = 0.0f

Definition at line 120 of file gog_integration.h.

◆ errorMessage

std::string GOGProgress::errorMessage

Definition at line 121 of file gog_integration.h.

◆ percentComplete

int GOGProgress::percentComplete = 0

Definition at line 119 of file gog_integration.h.

◆ state

State GOGProgress::state = State::Starting

Definition at line 115 of file gog_integration.h.

Referenced by getStateStr().


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