2012-08-20 21:34:54 +02:00
|
|
|
//
|
|
|
|
|
// SUAppcast.h
|
|
|
|
|
// Sparkle
|
|
|
|
|
//
|
|
|
|
|
// Created by Andy Matuschak on 3/12/06.
|
|
|
|
|
// Copyright 2006 Andy Matuschak. All rights reserved.
|
|
|
|
|
//
|
|
|
|
|
|
2014-10-21 17:57:58 +02:00
|
|
|
#ifndef SUAPPCAST_H
|
|
|
|
|
#define SUAPPCAST_H
|
2012-08-20 21:34:54 +02:00
|
|
|
|
2016-03-21 14:34:34 +01:00
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
#import "SUExport.h"
|
2014-10-21 17:57:58 +02:00
|
|
|
|
|
|
|
|
@class SUAppcastItem;
|
2016-03-21 14:34:34 +01:00
|
|
|
SU_EXPORT @interface SUAppcast : NSObject<NSURLDownloadDelegate>
|
2012-08-20 21:34:54 +02:00
|
|
|
|
2016-03-21 14:34:34 +01:00
|
|
|
@property (copy) NSString *userAgentString;
|
|
|
|
|
@property (copy) NSDictionary *httpHeaders;
|
2012-08-20 21:34:54 +02:00
|
|
|
|
2016-03-21 14:34:34 +01:00
|
|
|
- (void)fetchAppcastFromURL:(NSURL *)url completionBlock:(void (^)(NSError *))err;
|
|
|
|
|
- (SUAppcast *)copyWithoutDeltaUpdates;
|
2012-08-20 21:34:54 +02:00
|
|
|
|
2016-03-21 14:34:34 +01:00
|
|
|
@property (readonly, copy) NSArray *items;
|
2012-08-20 21:34:54 +02:00
|
|
|
@end
|
|
|
|
|
|
2014-10-21 17:57:58 +02:00
|
|
|
#endif
|