181 std::function<
void(
bool success, std::
string path)> callback);
211 std::unique_ptr<Impl> impl_;
size_t importAllGames()
Import all detected Steam games.
std::vector< SteamLibraryInfo > getLibraries() const
Get all Steam library paths.
SteamController(const SteamController &)=delete
void setOnScanComplete(OnScanComplete callback)
std::function< void(const SteamScanCompleteEvent &)> OnScanComplete
void setOnScanProgress(OnScanProgress callback)
std::optional< ProtonVersionInfo > getRecommendedProton(uint32_t appId) const
Get recommended Proton for a game.
void cancelScan()
Cancel ongoing async scan.
std::string getGameName(uint32_t appId) const
Get game name from AppID (uses Steam's app list cache).
std::optional< std::string > getConfiguredProton(uint32_t appId) const
Get the Proton version currently configured for a game.
SteamController & operator=(const SteamController &)=delete
SteamController(SteamController &&) noexcept
std::vector< SteamGameInfo > scanLibraries()
Scan all Steam libraries for installed games This is a synchronous operation - use scanLibrariesAsync...
size_t importGames(const std::vector< uint32_t > &appIds)
Import multiple Steam games Returns number of successfully imported games.
std::optional< std::string > getCoverArtPath(uint32_t appId) const
Get path to Steam's cached cover art for a game.
void downloadCoverArt(uint32_t appId, std::function< void(bool success, std::string path)> callback)
Download cover art from Steam CDN (async).
bool isSteamRunning() const
Check if Steam is currently running.
void setOnGameImported(OnGameImported callback)
void scanLibrariesAsync()
Start async library scan Progress and completion are reported via callbacks.
std::optional< std::string > getHeaderImagePath(uint32_t appId) const
Get path to Steam's header image for a game.
std::vector< SteamGameInfo > findGamesByName(const std::string &query) const
Find a Steam game by name (fuzzy match).
bool isScanInProgress() const
Check if a scan is in progress.
std::function< void(const SteamScanProgressEvent &)> OnScanProgress
const std::vector< SteamGameInfo > & getLastScanResults() const
Get results from last scan.
std::function< void(const SteamGameImportedEvent &)> OnGameImported
std::optional< SteamGameInfo > getGameInfo(uint32_t appId) const
Get info for a specific Steam game by AppID.
bool isSteamInstalled() const
Check if Steam is installed.
bool isGameImported(uint32_t appId) const
Check if a Steam game is already in our library.
std::string importGame(uint32_t appId)
Import a single Steam game to our library Returns the assigned game ID, or empty string on failure.
std::string getSteamPath() const
Get Steam installation path.
std::vector< ProtonVersionInfo > getAvailableProtonVersions() const
Get all available Proton versions.
std::string assignedGameId
std::string protonVersion
std::vector< std::string > genres