Frameworks/Sparkle.framework/Versions/A/Headers/SUAppcast.h
branchadium-1.5.10.4
changeset 5985 5883c460b8cb
parent 5924 f0f2d246891c
equal deleted inserted replaced
5984:c42b73c02750 5985:5883c460b8cb
     7 //
     7 //
     8 
     8 
     9 #ifndef SUAPPCAST_H
     9 #ifndef SUAPPCAST_H
    10 #define SUAPPCAST_H
    10 #define SUAPPCAST_H
    11 
    11 
       
    12 #if __has_feature(modules)
       
    13 @import Foundation;
       
    14 #else
    12 #import <Foundation/Foundation.h>
    15 #import <Foundation/Foundation.h>
       
    16 #endif
    13 #import "SUExport.h"
    17 #import "SUExport.h"
       
    18 
       
    19 NS_ASSUME_NONNULL_BEGIN
    14 
    20 
    15 @class SUAppcastItem;
    21 @class SUAppcastItem;
    16 SU_EXPORT @interface SUAppcast : NSObject<NSURLDownloadDelegate>
    22 SU_EXPORT @interface SUAppcast : NSObject<NSURLDownloadDelegate>
    17 
    23 
    18 @property (copy) NSString *userAgentString;
    24 @property (copy, nullable) NSString *userAgentString;
    19 @property (copy) NSDictionary *httpHeaders;
       
    20 
    25 
    21 - (void)fetchAppcastFromURL:(NSURL *)url completionBlock:(void (^)(NSError *))err;
    26 #if __has_feature(objc_generics)
       
    27 @property (copy, nullable) NSDictionary<NSString *, NSString *> *httpHeaders;
       
    28 #else
       
    29 @property (copy, nullable) NSDictionary *httpHeaders;
       
    30 #endif
    22 
    31 
    23 @property (readonly, copy) NSArray *items;
    32 - (void)fetchAppcastFromURL:(NSURL *)url inBackground:(BOOL)bg completionBlock:(void (^)(NSError *_Nullable))err;
       
    33 - (SUAppcast *)copyWithoutDeltaUpdates;
       
    34 
       
    35 @property (readonly, copy, nullable) NSArray *items;
    24 @end
    36 @end
    25 
    37 
       
    38 NS_ASSUME_NONNULL_END
       
    39 
    26 #endif
    40 #endif