summaryrefslogtreecommitdiffstats
path: root/Classes/AcidCowFeedburnerParser.h
diff options
context:
space:
mode:
Diffstat (limited to 'Classes/AcidCowFeedburnerParser.h')
-rw-r--r--Classes/AcidCowFeedburnerParser.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/Classes/AcidCowFeedburnerParser.h b/Classes/AcidCowFeedburnerParser.h
new file mode 100644
index 0000000..7b5c80b
--- /dev/null
+++ b/Classes/AcidCowFeedburnerParser.h
@@ -0,0 +1,38 @@
+//
+// AcidCowFeedburnerParser.h
+// PicCast
+//
+// Created by Matthew Handler on 4/15/11.
+// Copyright 2011 Earl Industries. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+#import "XMLParser.h"
+
+@class Topic;
+
+@interface AcidCowFeedburnerParser : XMLParser <NSXMLParserDelegate> {
+ NSMutableString *currentString;
+ Topic *currentTopic;
+ BOOL storingCharacters;
+ NSDateFormatter *parseFormatter;
+ NSMutableData *xmlData;
+ BOOL done;
+ NSURLConnection *rssConnection;
+ // The number of parsed songs is tracked so that the autorelease pool for the parsing thread can be periodically
+ // emptied to keep the memory footprint under control.
+ NSUInteger countOfParsedTopics;
+ NSAutoreleasePool *downloadAndParsePool;
+}
+
+@property (nonatomic, retain) NSMutableString *currentString;
+@property (nonatomic, retain) Topic *currentTopic;
+@property (nonatomic, retain) NSDateFormatter *parseFormatter;
+@property (nonatomic, retain) NSMutableData *xmlData;
+@property (nonatomic, retain) NSURLConnection *rssConnection;
+// The autorelease pool property is assign because autorelease pools cannot be retained.
+@property (nonatomic, assign) NSAutoreleasePool *downloadAndParsePool;
+
+- (void)downloadAndParse:(NSURL *)url;
+
+@end