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

Progress information during snapshot operations. More...

#include <prefix_snapshot_service.h>

Public Types

enum class  State {
  Starting , Scanning , Copying , Compressing ,
  Completed , Failed , Cancelled
}

Public Member Functions

std::string getStateStr () const

Public Attributes

int64_t bytesProcessed = 0
std::string currentFile
std::string errorMessage
int filesProcessed = 0
int percentComplete = 0
State state = State::Starting
int64_t totalBytes = 0
int totalFiles = 0

Detailed Description

Progress information during snapshot operations.

Definition at line 69 of file prefix_snapshot_service.h.

Member Enumeration Documentation

◆ State

enum class SnapshotProgress::State
strong
Enumerator
Starting 
Scanning 
Copying 
Compressing 
Completed 
Failed 
Cancelled 

Definition at line 71 of file prefix_snapshot_service.h.

Member Function Documentation

◆ getStateStr()

std::string SnapshotProgress::getStateStr ( ) const

Definition at line 55 of file prefix_snapshot_service.cpp.

References Cancelled, Completed, Compressing, Copying, Failed, Scanning, Starting, and state.

Member Data Documentation

◆ bytesProcessed

int64_t SnapshotProgress::bytesProcessed = 0

Definition at line 86 of file prefix_snapshot_service.h.

◆ currentFile

std::string SnapshotProgress::currentFile

Definition at line 83 of file prefix_snapshot_service.h.

◆ errorMessage

std::string SnapshotProgress::errorMessage

◆ filesProcessed

int SnapshotProgress::filesProcessed = 0

Definition at line 84 of file prefix_snapshot_service.h.

◆ percentComplete

int SnapshotProgress::percentComplete = 0

◆ state

◆ totalBytes

int64_t SnapshotProgress::totalBytes = 0

Definition at line 87 of file prefix_snapshot_service.h.

◆ totalFiles

int SnapshotProgress::totalFiles = 0

Definition at line 85 of file prefix_snapshot_service.h.


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