#include <RepositoryUpdater.h>
◆ UpdateScheduleType
Enumerator |
---|
First | Update should be scheduled as the first update after application start or setting change.
|
Regular | Update should be scheduled as a regular update during application runtime.
|
◆ CRepositoryUpdater()
ADDON::CRepositoryUpdater::CRepositoryUpdater |
( |
CAddonMgr & | addonMgr | ) |
|
|
explicit |
◆ ~CRepositoryUpdater()
ADDON::CRepositoryUpdater::~CRepositoryUpdater |
( |
| ) |
|
|
override |
◆ Await()
void ADDON::CRepositoryUpdater::Await |
( |
| ) |
|
Wait for any pending/in-progress updates to complete.
◆ CheckForUpdates() [1/2]
bool ADDON::CRepositoryUpdater::CheckForUpdates |
( |
bool | showProgress = false | ) |
|
Check all repositories for updates.
◆ CheckForUpdates() [2/2]
Check a single repository for updates.
◆ Events()
◆ LastUpdated()
CDateTime ADDON::CRepositoryUpdater::LastUpdated |
( |
| ) |
const |
Returns the time of the last check (oldest). Invalid time if never checked.
◆ OnSettingChanged()
void ADDON::CRepositoryUpdater::OnSettingChanged |
( |
const std::shared_ptr< const CSetting > & | setting | ) |
|
|
overridevirtual |
The value of the given setting has changed.
This callback is triggered whenever the value of a setting has been successfully changed (i.e. none of the OnSettingChanging() handlers) has reverted the change.
- Parameters
-
setting | The setting whose value has been changed |
Reimplemented from ISettingCallback.
◆ ScheduleUpdate()
Schedule an automatic update to run based on settings and previous update times. May be called when there are external changes this updater must know about. Any previously scheduled update will be cancelled.
◆ Start()
void ADDON::CRepositoryUpdater::Start |
( |
| ) |
|
The documentation for this class was generated from the following files: