[Pkg-owncloud-commits] [owncloud-client] 03/47: Sparkle: Add more delegate methods
Sandro Knauß
hefee-guest at moszumanska.debian.org
Mon Feb 17 18:06:32 UTC 2014
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit 1471e15674f58f72ea4c94604ac5a8ec2a5c92fc
Author: Markus Goetz <markus at woboq.com>
Date: Tue Feb 4 18:43:49 2014 +0100
Sparkle: Add more delegate methods
---
src/updater/sparkleupdater_mac.mm | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/src/updater/sparkleupdater_mac.mm b/src/updater/sparkleupdater_mac.mm
index 8f26e32..e1dea1c 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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list