summaryrefslogtreecommitdiffstats
path: root/OSX/Sparkle.framework/Versions/A/Headers/SUAppcast.h
diff options
context:
space:
mode:
Diffstat (limited to 'OSX/Sparkle.framework/Versions/A/Headers/SUAppcast.h')
-rw-r--r--[-rwxr-xr-x]OSX/Sparkle.framework/Versions/A/Headers/SUAppcast.h37
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