Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Goetz <markus@woboq.com>2014-02-04 21:43:49 +0400
committerMarkus Goetz <markus@woboq.com>2014-02-04 21:43:49 +0400
commit1471e15674f58f72ea4c94604ac5a8ec2a5c92fc (patch)
tree84760b4b87c03c57e2c336f85181e6d5217b0401 /src/updater
parent034c3ae017357331c1fe21d5f0bcf2903ed1f845 (diff)
Sparkle: Add more delegate methods
Diffstat (limited to 'src/updater')
-rw-r--r--src/updater/sparkleupdater_mac.mm21
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