|
game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
|
Client for the Lutris.net API. More...
#include <lutris_api_service.h>
Static Public Member Functions | |
| static void | clearCache () |
| Clear cached data. | |
| static LutrisSearchResult | findByGogId (int gogId) |
| Find a game by GOG ID. | |
| static LutrisSearchResult | findBySteamId (int steamAppId) |
| Find a game by Steam App ID. | |
| static LutrisSearchResult | getGameDetails (const std::string &gameSlug) |
| Get detailed information about a game. | |
| static std::vector< LutrisInstallerSummary > | getInstallers (const std::string &gameSlug) |
| Get available installers for a game. | |
| static void | getInstallersAsync (const std::string &gameSlug, const std::function< void(const std::vector< LutrisInstallerSummary > &)> &callback) |
| Get available installers asynchronously. | |
| static LutrisInstallerScript | getInstallerScript (const std::string &gameSlug, const std::string &installerSlug) |
| Get full installer script with all details. | |
| static void | getInstallerScriptAsync (const std::string &gameSlug, const std::string &installerSlug, const std::function< void(const LutrisInstallerScript &)> &callback) |
| Get installer script asynchronously. | |
| static bool | isApiAvailable () |
| Check if Lutris API is accessible. | |
| static std::vector< LutrisSearchResult > | searchGames (const std::string &query, int maxResults=20) |
| Search for games by name. | |
| static void | searchGamesAsync (const std::string &query, const std::function< void(const std::vector< LutrisSearchResult > &)> &callback, int maxResults=20) |
| Search for games asynchronously. | |
Client for the Lutris.net API.
Provides methods to search for games in the Lutris database and retrieve installer scripts that can be used to automate game installation.
Definition at line 187 of file lutris_api_service.h.
|
static |
Clear cached data.
Definition at line 471 of file lutris_api_service.cpp.
References Logger::info().
|
static |
Find a game by GOG ID.
| gogId | GOG game ID |
Definition at line 238 of file lutris_api_service.cpp.
References Logger::info().
|
static |
Find a game by Steam App ID.
| steamAppId | Steam application ID |
Definition at line 218 of file lutris_api_service.cpp.
References Logger::info().
|
static |
Get detailed information about a game.
| gameSlug | Game slug |
Definition at line 447 of file lutris_api_service.cpp.
References Logger::info().
|
static |
Get available installers for a game.
| gameSlug | Game slug from search results |
Definition at line 262 of file lutris_api_service.cpp.
References Logger::error(), Logger::info(), and LutrisInstallerSummary::slug.
Referenced by getInstallersAsync(), and LutrisSearchWorker::loadInstallers().
|
static |
Get available installers asynchronously.
| gameSlug | Game slug |
| callback | Called with results |
Definition at line 323 of file lutris_api_service.cpp.
References getInstallers().
|
static |
Get full installer script with all details.
| gameSlug | Game slug |
| installerSlug | Installer slug |
Definition at line 338 of file lutris_api_service.cpp.
References Logger::debug(), Logger::error(), LutrisInstallerScript::gameName, LutrisInstallerScript::gameSlug, and Logger::info().
Referenced by getInstallerScriptAsync(), and LutrisSearchWorker::loadInstallerScript().
|
static |
Get installer script asynchronously.
| gameSlug | Game slug |
| installerSlug | Installer slug |
| callback | Called with result |
Definition at line 428 of file lutris_api_service.cpp.
References getInstallerScript().
|
static |
Check if Lutris API is accessible.
Definition at line 465 of file lutris_api_service.cpp.
|
static |
Search for games by name.
| query | Search query |
| maxResults | Maximum number of results (default 20) |
Definition at line 135 of file lutris_api_service.cpp.
References Logger::debug(), Logger::error(), and Logger::info().
Referenced by LutrisSearchWorker::doSearch(), and searchGamesAsync().
|
static |
Search for games asynchronously.
| query | Search query |
| callback | Called with results |
| maxResults | Maximum number of results |
Definition at line 203 of file lutris_api_service.cpp.
References searchGames().