// Copyright 2006 Andy Matuschak. All rights reserved.
//
-#import <Cocoa/Cocoa.h>
+#ifndef SUAPPCAST_H
+#define SUAPPCAST_H
-@class RSS, SUAppcastItem;
+@class SUAppcastItem;
@interface SUAppcast : NSObject {
NSArray *items;
+ NSString *userAgentString;
id delegate;
+ NSMutableData *incrementalData;
}
- (void)fetchAppcastFromURL:(NSURL *)url;
- (void)setDelegate:delegate;
+- (void)setUserAgentString:(NSString *)userAgentString;
-- (SUAppcastItem *)newestItem;
- (NSArray *)items;
@end
@interface NSObject (SUAppcastDelegate)
-- appcastDidFinishLoading:(SUAppcast *)appcast;
-@end
\ No newline at end of file
+- (void)appcastDidFinishLoading:(SUAppcast *)appcast;
+- (void)appcast:(SUAppcast *)appcast failedToLoadWithError:(NSError *)error;
+@end
+
+#endif