diff options
author | matt handler <matt.handler@gmail.com> | 2011-04-20 14:39:20 -0400 |
---|---|---|
committer | matt handler <matt.handler@gmail.com> | 2011-04-20 14:39:20 -0400 |
commit | 9d52266f823daf5cb83e3eebe1b9f57594bc9d4a (patch) | |
tree | 38402f7ddbb0f3a40ebc7c88d673756701f47510 /Classes/AcidCowFeedburnerParser.h | |
download | piccast-app-9d52266f823daf5cb83e3eebe1b9f57594bc9d4a.tar.gz piccast-app-9d52266f823daf5cb83e3eebe1b9f57594bc9d4a.zip |
first commit
Diffstat (limited to 'Classes/AcidCowFeedburnerParser.h')
-rw-r--r-- | Classes/AcidCowFeedburnerParser.h | 38 |
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 |