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

A complete snapshot of a game's saves at a point in time. More...

#include <cloud_save_service.h>

Public Member Functions

std::string getFormattedSize () const
std::string getFormattedTime () const

Public Attributes

std::string description
 User-provided description.
std::vector< SaveFile > files
 Files in this snapshot.
std::string gameId
 Game this belongs to.
std::string gameName
 Game display name.
std::string id
 Unique snapshot ID.
bool isAutomatic = false
 True if auto-created.
std::chrono::system_clock::time_point timestamp
int64_t totalSize = 0
 Total size of all files.

Detailed Description

A complete snapshot of a game's saves at a point in time.

Definition at line 113 of file cloud_save_service.h.

Member Function Documentation

◆ getFormattedSize()

std::string SaveSnapshot::getFormattedSize ( ) const

Definition at line 227 of file cloud_save_service.cpp.

References totalSize.

◆ getFormattedTime()

std::string SaveSnapshot::getFormattedTime ( ) const

Definition at line 222 of file cloud_save_service.cpp.

References timestamp.

Member Data Documentation

◆ description

std::string SaveSnapshot::description

User-provided description.

Definition at line 121 of file cloud_save_service.h.

Referenced by CloudSaveService::createSnapshot().

◆ files

std::vector<SaveFile> SaveSnapshot::files

Files in this snapshot.

Definition at line 119 of file cloud_save_service.h.

Referenced by CloudSaveService::createSnapshot().

◆ gameId

std::string SaveSnapshot::gameId

Game this belongs to.

Definition at line 116 of file cloud_save_service.h.

Referenced by CloudSaveService::createSnapshot().

◆ gameName

std::string SaveSnapshot::gameName

Game display name.

Definition at line 117 of file cloud_save_service.h.

Referenced by CloudSaveService::createSnapshot().

◆ id

std::string SaveSnapshot::id

Unique snapshot ID.

Definition at line 115 of file cloud_save_service.h.

Referenced by CloudSaveService::createSnapshot().

◆ isAutomatic

bool SaveSnapshot::isAutomatic = false

True if auto-created.

Definition at line 122 of file cloud_save_service.h.

Referenced by CloudSaveService::createSnapshot().

◆ timestamp

std::chrono::system_clock::time_point SaveSnapshot::timestamp

Definition at line 118 of file cloud_save_service.h.

Referenced by CloudSaveService::createSnapshot(), and getFormattedTime().

◆ totalSize

int64_t SaveSnapshot::totalSize = 0

Total size of all files.

Definition at line 120 of file cloud_save_service.h.

Referenced by CloudSaveService::createSnapshot(), and getFormattedSize().


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