|
game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
|
Monitors all Steam games for update availability. More...
#include <steam_integration.h>
Classes | |
| class | Impl |
Public Types | |
| using | UpdateAvailableCallback = std::function<void(const SteamGameUpdateInfo& info)> |
| using | UpdateCompletedCallback |
| using | UpdateStartedCallback = std::function<void(const SteamGameUpdateInfo& info)> |
Public Member Functions | |
| SteamUpdateMonitor (const SteamUpdateMonitor &)=delete | |
| void | clearCache () |
| Clear cached update states (force fresh detection). | |
| std::vector< SteamGameUpdateInfo > | getGamesNeedingUpdate () const |
| Get all games currently needing updates. | |
| size_t | getUpdateCount () const |
| Get count of games needing updates. | |
| bool | isRunning () const |
| Check if monitor is running. | |
| SteamUpdateMonitor & | operator= (const SteamUpdateMonitor &)=delete |
| std::vector< SteamGameUpdateInfo > | scanNow () |
| Force an immediate scan for updates. | |
| void | setOnUpdateAvailable (UpdateAvailableCallback callback) |
| Set callback for when a new update is detected. | |
| void | setOnUpdateCompleted (UpdateCompletedCallback callback) |
| Set callback for when an update completes. | |
| void | setOnUpdateStarted (UpdateStartedCallback callback) |
| Set callback for when an update starts downloading. | |
| void | start (int scanIntervalSeconds=300) |
| Start monitoring for updates. | |
| void | stop () |
| Stop monitoring. | |
Static Public Member Functions | |
| static SteamUpdateMonitor & | instance () |
Monitors all Steam games for update availability.
This class provides library-wide monitoring for game updates by:
Unlike SteamDownloadMonitor which watches specific games, this monitors ALL installed games for update status changes.
Usage:
Definition at line 1113 of file steam_integration.h.
| using SteamUpdateMonitor::UpdateAvailableCallback = std::function<void(const SteamGameUpdateInfo& info)> |
Definition at line 1116 of file steam_integration.h.
Definition at line 1118 of file steam_integration.h.
| using SteamUpdateMonitor::UpdateStartedCallback = std::function<void(const SteamGameUpdateInfo& info)> |
Definition at line 1117 of file steam_integration.h.
|
delete |
References SteamUpdateMonitor().
Referenced by SteamUpdateMonitor(), instance(), and operator=().
| void SteamUpdateMonitor::clearCache | ( | ) |
Clear cached update states (force fresh detection).
Definition at line 5760 of file steam_integration.cpp.
References Logger::info().
Referenced by operator=().
| std::vector< SteamGameUpdateInfo > SteamUpdateMonitor::getGamesNeedingUpdate | ( | ) | const |
Get all games currently needing updates.
Definition at line 5728 of file steam_integration.cpp.
Referenced by operator=(), and scanNow().
| size_t SteamUpdateMonitor::getUpdateCount | ( | ) | const |
Get count of games needing updates.
Definition at line 5744 of file steam_integration.cpp.
Referenced by operator=().
|
static |
Definition at line 5667 of file steam_integration.cpp.
References SteamUpdateMonitor(), and instance().
Referenced by instance(), and main().
| bool SteamUpdateMonitor::isRunning | ( | ) | const |
Check if monitor is running.
Definition at line 5717 of file steam_integration.cpp.
Referenced by operator=().
|
delete |
| std::vector< SteamGameUpdateInfo > SteamUpdateMonitor::scanNow | ( | ) |
Force an immediate scan for updates.
Definition at line 5722 of file steam_integration.cpp.
References getGamesNeedingUpdate().
Referenced by operator=().
| void SteamUpdateMonitor::setOnUpdateAvailable | ( | UpdateAvailableCallback | callback | ) |
Set callback for when a new update is detected.
Definition at line 5770 of file steam_integration.cpp.
Referenced by operator=().
| void SteamUpdateMonitor::setOnUpdateCompleted | ( | UpdateCompletedCallback | callback | ) |
Set callback for when an update completes.
Definition at line 5782 of file steam_integration.cpp.
Referenced by operator=().
| void SteamUpdateMonitor::setOnUpdateStarted | ( | UpdateStartedCallback | callback | ) |
Set callback for when an update starts downloading.
Definition at line 5776 of file steam_integration.cpp.
Referenced by operator=().
| void SteamUpdateMonitor::start | ( | int | scanIntervalSeconds = 300 | ) |
Start monitoring for updates.
| scanIntervalSeconds | How often to scan for updates (default: 300s = 5 min) |
Definition at line 5680 of file steam_integration.cpp.
References Logger::info(), SteamUpdateMonitor::Impl::monitorLoop(), and Logger::warn().
Referenced by operator=().
| void SteamUpdateMonitor::stop | ( | ) |
Stop monitoring.
Definition at line 5700 of file steam_integration.cpp.
References Logger::info().
Referenced by operator=().