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

Information about a saved prefix snapshot. More...

#include <prefix_snapshot_service.h>

Public Member Functions

std::string getFormattedDate () const
std::string getFormattedSize () const

Public Attributes

std::string architecture
 win32 or win64
std::chrono::system_clock::time_point created
std::string description
 Optional description.
int fileCount = 0
 Number of files in snapshot.
std::string gameId
 Associated game ID (if any).
std::string gameName
 Associated game name.
std::string id
 Unique snapshot ID.
bool isIncremental = false
 Whether this is incremental.
std::string name
 User-friendly name.
std::string parentSnapshotId
 Parent snapshot for incremental.
std::filesystem::path prefixPath
 Original prefix path.
int64_t sizeBytes = 0
 Snapshot size on disk.
std::filesystem::path snapshotPath
 Where snapshot is stored.
std::string wineVersion
 Wine/Proton version at snapshot time.

Detailed Description

Information about a saved prefix snapshot.

Definition at line 42 of file prefix_snapshot_service.h.

Member Function Documentation

◆ getFormattedDate()

std::string PrefixSnapshot::getFormattedDate ( ) const

Definition at line 45 of file prefix_snapshot_service.cpp.

References created.

◆ getFormattedSize()

std::string PrefixSnapshot::getFormattedSize ( ) const

Definition at line 34 of file prefix_snapshot_service.cpp.

References sizeBytes.

Referenced by PrefixSnapshotService::createSnapshot().

Member Data Documentation

◆ architecture

std::string PrefixSnapshot::architecture

win32 or win64

Definition at line 59 of file prefix_snapshot_service.h.

Referenced by PrefixSnapshotService::createSnapshot().

◆ created

std::chrono::system_clock::time_point PrefixSnapshot::created

◆ description

std::string PrefixSnapshot::description

Optional description.

Definition at line 46 of file prefix_snapshot_service.h.

Referenced by PrefixSnapshotService::createSnapshot().

◆ fileCount

int PrefixSnapshot::fileCount = 0

Number of files in snapshot.

Definition at line 51 of file prefix_snapshot_service.h.

Referenced by PrefixSnapshotService::createSnapshot(), and PrefixSnapshotService::importSnapshot().

◆ gameId

std::string PrefixSnapshot::gameId

Associated game ID (if any).

Definition at line 54 of file prefix_snapshot_service.h.

Referenced by PrefixSnapshotService::cleanupOldAutoSnapshots(), and PrefixSnapshotService::getSnapshotsForGame().

◆ gameName

std::string PrefixSnapshot::gameName

Associated game name.

Definition at line 55 of file prefix_snapshot_service.h.

◆ id

std::string PrefixSnapshot::id

◆ isIncremental

bool PrefixSnapshot::isIncremental = false

Whether this is incremental.

Definition at line 52 of file prefix_snapshot_service.h.

◆ name

std::string PrefixSnapshot::name

User-friendly name.

Definition at line 45 of file prefix_snapshot_service.h.

Referenced by PrefixSnapshotService::createSnapshot(), and PrefixSnapshotService::importSnapshot().

◆ parentSnapshotId

std::string PrefixSnapshot::parentSnapshotId

Parent snapshot for incremental.

Definition at line 53 of file prefix_snapshot_service.h.

◆ prefixPath

◆ sizeBytes

int64_t PrefixSnapshot::sizeBytes = 0

◆ snapshotPath

◆ wineVersion

std::string PrefixSnapshot::wineVersion

Wine/Proton version at snapshot time.

Definition at line 58 of file prefix_snapshot_service.h.

Referenced by PrefixSnapshotService::createSnapshot().


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