game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
Loading...
Searching...
No Matches
cloud_save_service.cpp File Reference
#include "services/cloud_save_service.h"
#include "logger.h"
#include <algorithm>
#include <array>
#include <cstdint>
#include <cstdlib>
#include <ctime>
#include <fstream>
#include <map>
#include <mutex>
#include <random>
#include <string>
#include <vector>
Include dependency graph for cloud_save_service.cpp:

Go to the source code of this file.

Classes

struct  CloudSaveService::Impl

Namespaces

namespace  anonymous_namespace{cloud_save_service.cpp}

Functions

std::string cloudBackendName (CloudBackend backend)
 Get human-readable backend name.
bool anonymous_namespace{cloud_save_service.cpp}::createDirectories (const std::filesystem::path &path)
bool anonymous_namespace{cloud_save_service.cpp}::fileExists (const std::filesystem::path &path)
std::string anonymous_namespace{cloud_save_service.cpp}::formatBytes (int64_t bytes)
std::string anonymous_namespace{cloud_save_service.cpp}::formatTime (std::chrono::system_clock::time_point tp)
std::string anonymous_namespace{cloud_save_service.cpp}::generateUUID ()
std::filesystem::path anonymous_namespace{cloud_save_service.cpp}::getDataDirectory ()
std::chrono::system_clock::time_point anonymous_namespace{cloud_save_service.cpp}::getFileModTime (const std::filesystem::path &path)
int64_t anonymous_namespace{cloud_save_service.cpp}::getFileSize (const std::filesystem::path &path)
std::vector< std::filesystem::path > anonymous_namespace{cloud_save_service.cpp}::globFiles (const std::filesystem::path &root, const std::string &pattern)
std::string syncDirectionName (SyncDirection direction)
 Get human-readable sync direction name.

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.