Files
smcFanControl/Sparkle.framework/Versions/A/Headers/SUAppcast.h

38 lines
778 B
C
Raw Normal View History

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.
//
#ifndef SUAPPCAST_H
#define SUAPPCAST_H
2012-08-20 21:34:54 +02:00
@protocol SUAppcastDelegate;
@class SUAppcastItem;
@interface SUAppcast : NSObject<NSURLDownloadDelegate>
{
@private
2012-08-20 21:34:54 +02:00
NSArray *items;
NSString *userAgentString;
id<SUAppcastDelegate> delegate;
NSString *downloadFilename;
NSURLDownload *download;
2012-08-20 21:34:54 +02:00
}
@property (assign) id<SUAppcastDelegate> delegate;
@property (copy) NSString *userAgentString;
2012-08-20 21:34:54 +02:00
- (void)fetchAppcastFromURL:(NSURL *)url;
- (NSArray *)items;
@end
2012-08-20 21:34:54 +02:00
@protocol SUAppcastDelegate <NSObject>
- (void)appcastDidFinishLoading:(SUAppcast *)appcast;
- (void)appcast:(SUAppcast *)appcast failedToLoadWithError:(NSError *)error;
2012-08-20 21:34:54 +02:00
@end
#endif