/* * Copyright (c) 2016 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include #import #import namespace Swift { class SparkleAutoUpdater; } @interface SparkleAutoUpdaterDelegate : NSObject @property (atomic) std::function< void ()> updateDownloadFinished; - (void)updater:(SUUpdater *)updater didFinishLoadingAppcast:(SUAppcast *)appcast; - (void)updater:(SUUpdater *)updater didFindValidUpdate:(SUAppcastItem *)update; - (id )versionComparatorForUpdater:(SUUpdater *)updater; - (void)updaterDidNotFindUpdate:(SUUpdater *)update; - (void)updater:(SUUpdater *)updater willInstallUpdate:(SUAppcastItem *)update; - (void)updater:(SUUpdater *)updater willInstallUpdateOnQuit:(SUAppcastItem *)item immediateInstallationInvocation:(NSInvocation *)invocation; - (void)updater:(SUUpdater *)updater didAbortWithError:(NSError *)error; @end