kodi
|
Classes | |
struct | RepositoryUpdated |
Public Types | |
enum | UpdateScheduleType { UpdateScheduleType::First, UpdateScheduleType::Regular } |
Public Member Functions | |
CRepositoryUpdater (CAddonMgr &addonMgr) | |
void | Start () |
void | CheckForUpdates (const ADDON::RepositoryPtr &repo, bool showProgress=false) |
Check a single repository for updates. | |
bool | CheckForUpdates (bool showProgress=false) |
Check all repositories for updates. | |
void | Await () |
Wait for any pending/in-progress updates to complete. | |
void | ScheduleUpdate (UpdateScheduleType scheduleType) |
Schedule an automatic update to run based on settings and previous update times. More... | |
CDateTime | LastUpdated () const |
Returns the time of the last check (oldest). More... | |
void | OnSettingChanged (const std::shared_ptr< const CSetting > &setting) override |
The value of the given setting has changed. More... | |
CEventStream< RepositoryUpdated > & | Events () |
![]() | |
virtual bool | OnSettingChanging (const std::shared_ptr< const CSetting > &setting) |
The value of the given setting is being changed. More... | |
virtual void | OnSettingAction (const std::shared_ptr< const CSetting > &setting) |
The given setting has been activated. More... | |
virtual bool | OnSettingUpdate (const std::shared_ptr< CSetting > &setting, const char *oldSettingId, const TiXmlNode *oldSettingNode) |
The given setting needs to be updated. More... | |
virtual void | OnSettingPropertyChanged (const std::shared_ptr< const CSetting > &setting, const char *propertyName) |
The given property of the given setting has changed. More... | |
|
strong |
CDateTime ADDON::CRepositoryUpdater::LastUpdated | ( | ) | const |
Returns the time of the last check (oldest).
Invalid time if never checked.
|
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.
setting | The setting whose value has been changed |
Reimplemented from ISettingCallback.
void ADDON::CRepositoryUpdater::ScheduleUpdate | ( | UpdateScheduleType | scheduleType | ) |
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.