blob: 7b5c80b80a5a5f643528750407f244b18e1355d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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
|