|
game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
|
#include <steam_controller.h>
Public Types | |
| using | OnGameImported = std::function<void(const SteamGameImportedEvent&)> |
| using | OnScanComplete = std::function<void(const SteamScanCompleteEvent&)> |
| using | OnScanProgress = std::function<void(const SteamScanProgressEvent&)> |
Public Member Functions | |
| SteamController () | |
| SteamController (const SteamController &)=delete | |
| SteamController (SteamController &&) noexcept | |
| ~SteamController () | |
| void | cancelScan () |
| Cancel ongoing async scan. | |
| void | downloadCoverArt (uint32_t appId, std::function< void(bool success, std::string path)> callback) |
| Download cover art from Steam CDN (async). | |
| std::vector< SteamGameInfo > | findGamesByName (const std::string &query) const |
| Find a Steam game by name (fuzzy match). | |
| std::vector< ProtonVersionInfo > | getAvailableProtonVersions () const |
| Get all available Proton versions. | |
| std::optional< std::string > | getConfiguredProton (uint32_t appId) const |
| Get the Proton version currently configured for a game. | |
| std::optional< std::string > | getCoverArtPath (uint32_t appId) const |
| Get path to Steam's cached cover art for a game. | |
| std::optional< SteamGameInfo > | getGameInfo (uint32_t appId) const |
| Get info for a specific Steam game by AppID. | |
| std::string | getGameName (uint32_t appId) const |
| Get game name from AppID (uses Steam's app list cache). | |
| std::optional< std::string > | getHeaderImagePath (uint32_t appId) const |
| Get path to Steam's header image for a game. | |
| const std::vector< SteamGameInfo > & | getLastScanResults () const |
| Get results from last scan. | |
| std::vector< SteamLibraryInfo > | getLibraries () const |
| Get all Steam library paths. | |
| std::optional< ProtonVersionInfo > | getRecommendedProton (uint32_t appId) const |
| Get recommended Proton for a game. | |
| std::string | getSteamPath () const |
| Get Steam installation path. | |
| size_t | importAllGames () |
| Import all detected Steam games. | |
| std::string | importGame (uint32_t appId) |
| Import a single Steam game to our library Returns the assigned game ID, or empty string on failure. | |
| size_t | importGames (const std::vector< uint32_t > &appIds) |
| Import multiple Steam games Returns number of successfully imported games. | |
| bool | isGameImported (uint32_t appId) const |
| Check if a Steam game is already in our library. | |
| bool | isScanInProgress () const |
| Check if a scan is in progress. | |
| bool | isSteamInstalled () const |
| Check if Steam is installed. | |
| bool | isSteamRunning () const |
| Check if Steam is currently running. | |
| SteamController & | operator= (const SteamController &)=delete |
| SteamController & | operator= (SteamController &&) noexcept |
| std::vector< SteamGameInfo > | scanLibraries () |
| Scan all Steam libraries for installed games This is a synchronous operation - use scanLibrariesAsync for background scanning. | |
| void | scanLibrariesAsync () |
| Start async library scan Progress and completion are reported via callbacks. | |
| void | setOnGameImported (OnGameImported callback) |
| void | setOnScanComplete (OnScanComplete callback) |
| void | setOnScanProgress (OnScanProgress callback) |
Definition at line 89 of file steam_controller.h.
| using core::SteamController::OnGameImported = std::function<void(const SteamGameImportedEvent&)> |
Definition at line 95 of file steam_controller.h.
| using core::SteamController::OnScanComplete = std::function<void(const SteamScanCompleteEvent&)> |
Definition at line 94 of file steam_controller.h.
| using core::SteamController::OnScanProgress = std::function<void(const SteamScanProgressEvent&)> |
Definition at line 93 of file steam_controller.h.
| core::SteamController::SteamController | ( | ) |
Referenced by SteamController(), SteamController(), operator=(), and operator=().
| core::SteamController::~SteamController | ( | ) |
|
delete |
References SteamController().
|
noexcept |
References SteamController().
| void core::SteamController::cancelScan | ( | ) |
| void core::SteamController::downloadCoverArt | ( | uint32_t | appId, |
| std::function< void(bool success, std::string path)> | callback ) |
Download cover art from Steam CDN (async).
References downloadCoverArt().
Referenced by downloadCoverArt().
| std::vector< SteamGameInfo > core::SteamController::findGamesByName | ( | const std::string & | query | ) | const |
Find a Steam game by name (fuzzy match).
References findGamesByName().
Referenced by findGamesByName().
| std::vector< ProtonVersionInfo > core::SteamController::getAvailableProtonVersions | ( | ) | const |
Get all available Proton versions.
References getAvailableProtonVersions().
Referenced by getAvailableProtonVersions().
| std::optional< std::string > core::SteamController::getConfiguredProton | ( | uint32_t | appId | ) | const |
Get the Proton version currently configured for a game.
References getConfiguredProton().
Referenced by getConfiguredProton().
| std::optional< std::string > core::SteamController::getCoverArtPath | ( | uint32_t | appId | ) | const |
Get path to Steam's cached cover art for a game.
References getCoverArtPath().
Referenced by getCoverArtPath().
| std::optional< SteamGameInfo > core::SteamController::getGameInfo | ( | uint32_t | appId | ) | const |
| std::string core::SteamController::getGameName | ( | uint32_t | appId | ) | const |
Get game name from AppID (uses Steam's app list cache).
References getGameName().
Referenced by getGameName().
| std::optional< std::string > core::SteamController::getHeaderImagePath | ( | uint32_t | appId | ) | const |
Get path to Steam's header image for a game.
References getHeaderImagePath().
Referenced by getHeaderImagePath().
| const std::vector< SteamGameInfo > & core::SteamController::getLastScanResults | ( | ) | const |
| std::vector< SteamLibraryInfo > core::SteamController::getLibraries | ( | ) | const |
| std::optional< ProtonVersionInfo > core::SteamController::getRecommendedProton | ( | uint32_t | appId | ) | const |
Get recommended Proton for a game.
References getRecommendedProton().
Referenced by getRecommendedProton().
| std::string core::SteamController::getSteamPath | ( | ) | const |
| size_t core::SteamController::importAllGames | ( | ) |
| std::string core::SteamController::importGame | ( | uint32_t | appId | ) |
Import a single Steam game to our library Returns the assigned game ID, or empty string on failure.
References importGame().
Referenced by importGame().
| size_t core::SteamController::importGames | ( | const std::vector< uint32_t > & | appIds | ) |
Import multiple Steam games Returns number of successfully imported games.
References importGames().
Referenced by importGames().
| bool core::SteamController::isGameImported | ( | uint32_t | appId | ) | const |
Check if a Steam game is already in our library.
References isGameImported().
Referenced by isGameImported().
| bool core::SteamController::isScanInProgress | ( | ) | const |
| bool core::SteamController::isSteamInstalled | ( | ) | const |
| bool core::SteamController::isSteamRunning | ( | ) | const |
|
delete |
References SteamController().
|
noexcept |
References SteamController().
| std::vector< SteamGameInfo > core::SteamController::scanLibraries | ( | ) |
Scan all Steam libraries for installed games This is a synchronous operation - use scanLibrariesAsync for background scanning.
References scanLibraries().
Referenced by scanLibraries().
| void core::SteamController::scanLibrariesAsync | ( | ) |
Start async library scan Progress and completion are reported via callbacks.
References scanLibrariesAsync().
Referenced by scanLibrariesAsync().
| void core::SteamController::setOnGameImported | ( | OnGameImported | callback | ) |
References setOnGameImported().
Referenced by setOnGameImported().
| void core::SteamController::setOnScanComplete | ( | OnScanComplete | callback | ) |
References setOnScanComplete().
Referenced by setOnScanComplete().
| void core::SteamController::setOnScanProgress | ( | OnScanProgress | callback | ) |
References setOnScanProgress().
Referenced by setOnScanProgress().