diff options
author | Simon Rettberg | 2019-02-18 11:55:41 +0100 |
---|---|---|
committer | Simon Rettberg | 2019-02-18 11:55:41 +0100 |
commit | ae69a754244c4e475c8d2591772ca8e005071d83 (patch) | |
tree | 58b3fa7abc2dcfe3c23e1c0ce108950c720826ab /OSX/Sparkle.framework/Versions/A/Headers/SUAppcast.h | |
parent | Update gitignore (diff) | |
download | xscreensaver-ae69a754244c4e475c8d2591772ca8e005071d83.tar.gz xscreensaver-ae69a754244c4e475c8d2591772ca8e005071d83.tar.xz xscreensaver-ae69a754244c4e475c8d2591772ca8e005071d83.zip |
Update to 5.42
Diffstat (limited to 'OSX/Sparkle.framework/Versions/A/Headers/SUAppcast.h')
-rw-r--r--[-rwxr-xr-x] | OSX/Sparkle.framework/Versions/A/Headers/SUAppcast.h | 37 |
1 files changed, 18 insertions, 19 deletions
diff --git a/OSX/Sparkle.framework/Versions/A/Headers/SUAppcast.h b/OSX/Sparkle.framework/Versions/A/Headers/SUAppcast.h index 5a60d2f..34276b7 100755..100644 --- a/OSX/Sparkle.framework/Versions/A/Headers/SUAppcast.h +++ b/OSX/Sparkle.framework/Versions/A/Headers/SUAppcast.h @@ -9,28 +9,27 @@ #ifndef SUAPPCAST_H #define SUAPPCAST_H +#if __has_feature(modules) +@import Foundation; +#else +#import <Foundation/Foundation.h> +#endif +#import "SUExport.h" + +NS_ASSUME_NONNULL_BEGIN + @class SUAppcastItem; -@interface SUAppcast : NSObject -{ -@private - NSArray *items; - NSString *userAgentString; - id delegate; - NSString *downloadFilename; - NSURLDownload *download; -} - -- (void)fetchAppcastFromURL:(NSURL *)url; -- (void)setDelegate:delegate; -- (void)setUserAgentString:(NSString *)userAgentString; - -- (NSArray *)items; +SU_EXPORT @interface SUAppcast : NSObject -@end +@property (copy, nullable) NSString *userAgentString; +@property (copy, nullable) NSDictionary<NSString *, NSString *> *httpHeaders; + +- (void)fetchAppcastFromURL:(NSURL *)url inBackground:(BOOL)bg completionBlock:(void (^)(NSError *_Nullable))err; +- (SUAppcast *)copyWithoutDeltaUpdates; -@interface NSObject (SUAppcastDelegate) -- (void)appcastDidFinishLoading:(SUAppcast *)appcast; -- (void)appcast:(SUAppcast *)appcast failedToLoadWithError:(NSError *)error; +@property (readonly, copy, nullable) NSArray *items; @end +NS_ASSUME_NONNULL_END + #endif |