summaryrefslogtreecommitdiffstats
blob: 8f408de1a8b834a678b7f0c4c13808c5d16514a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * Copyright (c) 2016 Isode Limited.
 * All rights reserved.
 * See the COPYING file for more information.
 */

#pragma once

#include <functional>

#import <Cocoa/Cocoa.h>

#import <Sparkle/Sparkle.h>

namespace Swift {
    class SparkleAutoUpdater;
}

@interface SparkleAutoUpdaterDelegate : NSObject<SUUpdaterDelegate>
@property (atomic)  std::function< void ()> updateDownloadFinished;

- (void)updater:(SUUpdater *)updater didFinishLoadingAppcast:(SUAppcast *)appcast;

- (void)updater:(SUUpdater *)updater didFindValidUpdate:(SUAppcastItem *)update;

- (id <SUVersionComparison>)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