From http://www.jwz.org/xscreensaver/xscreensaver-5.24.tar.gz
[xscreensaver] / OSX / Sparkle.framework / Versions / A / Headers / SUAppcast.h
1 //
2 //  SUAppcast.h
3 //  Sparkle
4 //
5 //  Created by Andy Matuschak on 3/12/06.
6 //  Copyright 2006 Andy Matuschak. All rights reserved.
7 //
8
9 #ifndef SUAPPCAST_H
10 #define SUAPPCAST_H
11
12 @class SUAppcastItem;
13 @interface SUAppcast : NSObject
14 {
15 @private
16         NSArray *items;
17         NSString *userAgentString;
18         id delegate;
19         NSString *downloadFilename;
20         NSURLDownload *download;
21 }
22
23 - (void)fetchAppcastFromURL:(NSURL *)url;
24 - (void)setDelegate:delegate;
25 - (void)setUserAgentString:(NSString *)userAgentString;
26
27 - (NSArray *)items;
28
29 @end
30
31 @interface NSObject (SUAppcastDelegate)
32 - (void)appcastDidFinishLoading:(SUAppcast *)appcast;
33 - (void)appcast:(SUAppcast *)appcast failedToLoadWithError:(NSError *)error;
34 @end
35
36 #endif