Upgrade to Sparkle 1.21.3.
[macgdbp.git] / Sparkle.framework / Versions / A / Headers / SUAppcast.h
1 //
2 // SUAppcast.h
3 // Sparkle
4 //
5 // Created by Andy Matuschak on 3/12/06.
6 // Copyright 2006 Andy Matuschak. All rights reserved.
7 //
8
9 #ifndef SUAPPCAST_H
10 #define SUAPPCAST_H
11
12 #if __has_feature(modules)
13 @import Foundation;
14 #else
15 #import <Foundation/Foundation.h>
16 #endif
17 #import "SUExport.h"
18
19 NS_ASSUME_NONNULL_BEGIN
20
21 @class SUAppcastItem;
22 SU_EXPORT @interface SUAppcast : NSObject
23
24 @property (copy, nullable) NSString *userAgentString;
25 @property (copy, nullable) NSDictionary<NSString *, NSString *> *httpHeaders;
26
27 - (void)fetchAppcastFromURL:(NSURL *)url inBackground:(BOOL)bg completionBlock:(void (^)(NSError *_Nullable))err;
28 - (SUAppcast *)copyWithoutDeltaUpdates;
29
30 @property (readonly, copy, nullable) NSArray *items;
31 @end
32
33 NS_ASSUME_NONNULL_END
34
35 #endif