diff options
author | Markus Goetz <markus@woboq.com> | 2014-02-04 21:43:49 +0400 |
---|---|---|
committer | Markus Goetz <markus@woboq.com> | 2014-02-04 21:43:49 +0400 |
commit | 1471e15674f58f72ea4c94604ac5a8ec2a5c92fc (patch) | |
tree | 84760b4b87c03c57e2c336f85181e6d5217b0401 /src/updater | |
parent | 034c3ae017357331c1fe21d5f0bcf2903ed1f845 (diff) |
Sparkle: Add more delegate methods
Diffstat (limited to 'src/updater')
-rw-r--r-- | src/updater/sparkleupdater_mac.mm | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/updater/sparkleupdater_mac.mm b/src/updater/sparkleupdater_mac.mm index 8f26e323b..e1dea1ce6 100644 --- a/src/updater/sparkleupdater_mac.mm +++ b/src/updater/sparkleupdater_mac.mm @@ -27,11 +27,32 @@ - (BOOL)updaterMayCheckForUpdates:(SUUpdater *)bundle; @end @implementation DelegateObject //(SUUpdaterDelegateInformalProtocol) + +// Only possible in later versions, we're not up to date here. - (BOOL)updaterMayCheckForUpdates:(SUUpdater *)bundle { qDebug() << Q_FUNC_INFO << "may check: YES"; return YES; } + +// Sent when a valid update is found by the update driver. +- (void)updater:(SUUpdater *)updater didFindValidUpdate:(SUAppcastItem *)update +{ + qDebug() << Q_FUNC_INFO; +} + +// Sent when a valid update is not found. +- (void)updaterDidNotFindUpdate:(SUUpdater *)update +{ + qDebug() << Q_FUNC_INFO; +} + +// Sent immediately before installing the specified update. +- (void)updater:(SUUpdater *)updater willInstallUpdate:(SUAppcastItem *)update +{ + qDebug() << Q_FUNC_INFO; +} + @end |