game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
Loading...
Searching...
No Matches
cloud_save_service.h File Reference
#include <chrono>
#include <filesystem>
#include <functional>
#include <future>
#include <memory>
#include <optional>
#include <string>
#include <vector>
Include dependency graph for cloud_save_service.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CloudSaveService
 Service for managing and syncing game saves. More...
struct  SaveFile
 Information about a specific save file. More...
struct  SaveLocation
 Information about a game's save location. More...
struct  SaveSnapshot
 A complete snapshot of a game's saves at a point in time. More...
struct  SyncConflict
 Details about a sync conflict. More...
struct  SyncStatus
 Status of sync operation. More...

Enumerations

enum class  CloudBackend { None , Steam , GOG , Custom }
 Supported cloud storage backends. More...
enum class  ConflictResolution {
  UseLocal , UseRemote , UseNewest , AskUser ,
  KeepBoth
}
 How to resolve sync conflicts. More...
enum class  SyncDirection { Upload , Download , Bidirectional }
 Direction of sync operation. More...

Functions

std::string cloudBackendName (CloudBackend backend)
 Get human-readable backend name.
std::string syncDirectionName (SyncDirection direction)
 Get human-readable sync direction name.

Enumeration Type Documentation

◆ CloudBackend

enum class CloudBackend
strong

Supported cloud storage backends.

Enumerator
None 

Local backup only.

Steam 

Steam Cloud.

GOG 

GOG Galaxy Cloud.

Custom 

Custom sync location (e.g., Syncthing, Nextcloud).

Definition at line 40 of file cloud_save_service.h.

◆ ConflictResolution

enum class ConflictResolution
strong

How to resolve sync conflicts.

Enumerator
UseLocal 

Keep local version.

UseRemote 

Keep remote version.

UseNewest 

Use whichever is newer.

AskUser 

Prompt user to choose.

KeepBoth 

Keep both versions (create backup).

Definition at line 63 of file cloud_save_service.h.

◆ SyncDirection

enum class SyncDirection
strong

Direction of sync operation.

Enumerator
Upload 

Local -> Cloud.

Download 

Cloud -> Local.

Bidirectional 

Two-way sync.

Definition at line 52 of file cloud_save_service.h.

Function Documentation

◆ cloudBackendName()

std::string cloudBackendName ( CloudBackend backend)

Get human-readable backend name.

Definition at line 267 of file cloud_save_service.cpp.

References Custom, GOG, None, and Steam.

◆ syncDirectionName()

std::string syncDirectionName ( SyncDirection direction)

Get human-readable sync direction name.

Definition at line 284 of file cloud_save_service.cpp.

References Bidirectional, Download, and Upload.