156 authenticateGOG(const std::function<
void(
bool success, const std::
string& message)>& callback);
168 std::future<
bool>
installGOGGame(const std::
string& gameId, const std::
string& installPath =
"",
192 authenticateEpic(const std::function<
void(
bool success, const std::
string& message)>& callback);
205 const std::
string& installPath =
"",
232 const std::
string& prefixPath =
"") const;
236 const std::
string& description =
"");
255 void setAutoSync(const std::
string& gameId,
bool enabled);
298 std::future<
bool>
installDependency(const std::
string& prefixPath, const std::
string& verbId,
303 const std::vector<std::
string>& verbIds,
312 const std::vector<std::
string>& verbIds,
355 std::unique_ptr<Impl> impl_;
void syncAllStores(const ProgressCallback &progressCallback=nullptr)
Sync all stores (GOG, Epic, etc.).
bool isEpicAvailable() const
Check if Epic/Legendary is available.
EpicAuthStatus getEpicAuthStatus() const
Get Epic authentication status.
GOGAuthStatus getGOGAuthStatus() const
Get GOG authentication status.
std::vector< EpicGameInfo > getEpicLibrary(bool forceRefresh=false)
Get all Epic library games.
std::vector< UnifiedGameInfo > getAllStoreGames() const
bool isDependencyInstalled(const std::string &prefixPath, const std::string &verbId) const
Check if a dependency is installed in a prefix.
void cancelOperation()
Cancel any ongoing operation.
std::future< bool > installEpicGame(const std::string &appName, const std::string &installPath="", const ProgressCallback &progressCallback=nullptr)
Install an Epic game.
int importEpicGames()
Import Epic games to main library.
std::vector< EpicGameInfo > getInstalledEpicGames() const
Get installed Epic games.
bool isWinetricksAvailable() const
Check if winetricks is available.
std::future< int > installDependencies(const std::string &prefixPath, const std::vector< std::string > &verbIds, const ProgressCallback &progressCallback=nullptr)
Install multiple dependencies.
bool restoreSaveSnapshot(const std::string &snapshotId, bool backupCurrent=true)
Restore saves from a snapshot.
PrefixDependencyStatus scanPrefixDependencies(const std::string &prefixPath) const
Scan a Wine prefix for installed dependencies.
bool isStoreAuthenticated(StoreType store) const
Check if authenticated to a store.
void setOnCloudSaveEvent(OnCloudSaveEvent callback)
std::vector< SaveLocation > getSaveLocations() const
Get all registered save locations.
void setAutoSync(const std::string &gameId, bool enabled)
Enable/disable auto-sync for a game.
void logoutGOG()
Log out of GOG.
StoreIntegrationController()
std::vector< UnifiedGameInfo > checkAllUpdates() const
Check for updates across all stores.
int syncGOGLibrary()
Sync GOG library to game database.
std::future< bool > installForSteamGame(uint32_t steamAppId, const std::vector< std::string > &verbIds, const ProgressCallback &progressCallback=nullptr)
Install dependencies for a Steam/Proton game.
std::vector< GOGGameInfo > getGOGLibrary(bool forceRefresh=false)
Get all GOG library games.
StoreIntegrationController(const StoreIntegrationController &)=delete
std::vector< WineDependency > getAllDependencies() const
Get all available dependencies.
void setOnDependencyEvent(OnDependencyEvent callback)
void authenticateGOG(const std::function< void(bool success, const std::string &message)> &callback)
Start GOG authentication flow.
bool deleteSaveSnapshot(const std::string &snapshotId)
Delete a snapshot.
void authenticateEpic(const std::function< void(bool success, const std::string &message)> &callback)
Start Epic authentication flow.
std::function< void(const CloudSaveEvent &)> OnCloudSaveEvent
void setCloudSyncDirectory(const std::string &path)
Set custom sync directory (e.g., Syncthing folder).
bool needsSaveSync(const std::string &gameId) const
Check if sync is needed.
bool registerSaveLocation(const SaveLocation &location)
Register a game's save location.
StoreIntegrationController(StoreIntegrationController &&) noexcept
int64_t getTotalBackupSize() const
Get total backup size.
std::vector< GOGGameInfo > getInstalledGOGGames() const
Get installed GOG games.
StoreIntegrationController & operator=(const StoreIntegrationController &)=delete
~StoreIntegrationController()
std::function< void(const StoreSyncEvent &)> OnStoreSyncComplete
std::function< void(int percent, const std::string &status)> ProgressCallback
void onGameExit(const std::string &gameId)
Called when game exits (for auto-sync).
std::future< bool > installDependency(const std::string &prefixPath, const std::string &verbId, const ProgressCallback &progressCallback=nullptr)
Install a dependency.
std::vector< SaveSnapshot > getSaveSnapshots(const std::string &gameId) const
Get all snapshots for a game.
std::vector< SaveLocation > detectSaveLocations(const std::string &gameName, const std::string &prefixPath="") const
Detect save locations for a game.
StoreStatus getStoreStatus(StoreType store) const
Get status of a specific store.
std::future< bool > installGamingPreset(const std::string &prefixPath, const ProgressCallback &progressCallback=nullptr)
Install gaming preset (vcrun, dxvk, fonts).
void setOnStoreSyncComplete(OnStoreSyncComplete callback)
std::vector< WineDependency > searchDependencies(const std::string &query) const
Search for dependencies.
std::vector< WineDependency > getDependenciesByCategory(DependencyCategory category) const
Get dependencies by category.
bool uninstallEpicGame(const std::string &appName)
Uninstall an Epic game.
std::optional< SaveLocation > getSaveLocation(const std::string &gameId) const
Get save location for a game.
int syncEpicLibrary()
Sync Epic library to game database.
int importGOGGames()
Import GOG games to main library.
void onGameLaunch(const std::string &gameId)
Called when game launches (for auto-sync).
std::vector< std::string > getRecommendedDependencies() const
Get recommended dependencies for gaming.
bool isGOGAvailable() const
Check if GOG integration is available (Heroic or gogdl).
std::function< void(const DependencyEvent &)> OnDependencyEvent
bool isProtontricksAvailable() const
Check if protontricks is available.
std::future< bool > syncSaves(const std::string &gameId, SyncDirection direction, const ProgressCallback &progressCallback=nullptr)
Sync saves with cloud/custom directory.
std::future< bool > installGOGGame(const std::string &gameId, const std::string &installPath="", const ProgressCallback &progressCallback=nullptr)
Install a GOG game.
bool uninstallGOGGame(const std::string &gameId)
Uninstall a GOG game.
std::vector< StoreStatus > getAllStoreStatus() const
Get status of all available stores.
std::optional< std::string > createSaveSnapshot(const std::string &gameId, const std::string &description="")
Create a save snapshot (backup).
void logoutEpic()
Log out of Epic.
bool isStoreAvailable(StoreType store) const
Check if a store backend is available (tools installed).
SyncDirection
Direction of sync operation.
ConflictResolution
How to resolve sync conflicts.
GOGBackend
Backend to use for GOG operations.
std::string storeTypeName(StoreType type)
Get human-readable store name.
Progress information during dependency installation.
Epic Games authentication status.
Information about an Epic Games Store game.
GOG Galaxy authentication status.
Information about a GOG.com game.
Progress information for GOG operations.
Progress information for Legendary operations.
Status of dependencies in a Wine prefix.
Information about a game's save location.
A complete snapshot of a game's saves at a point in time.
Details about a sync conflict.
Status of sync operation.
Information about a Wine dependency/component.
Get games from all stores (unified view).
DependencyCategory
Categories of Wine dependencies.