forked from H2CO3/RSSKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RSSParser.h
executable file
·43 lines (33 loc) · 954 Bytes
/
RSSParser.h
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
39
40
41
42
//
// RSSParser.h
// RSSKit
//
// Created by Árpád Goretity on 01/11/2011.
// Licensed under a CreativeCommons Attribution 3.0 Unported License
//
#import <Foundation/Foundation.h>
#import "RSSDefines.h"
#import "RSSFeed.h"
#import "RSSEntry.h"
@protocol RSSParserDelegate;
@interface RSSParser: NSObject {
NSString *url;
NSXMLParser *xmlParser;
NSMutableArray *tagStack;
NSMutableString *tagPath;
RSSFeed *feed;
RSSEntry *entry;
id <RSSParserDelegate> delegate;
}
@property (nonatomic, assign) id <RSSParserDelegate> delegate;
@property (nonatomic, retain) NSString *url;
@property (nonatomic, assign) BOOL synchronous;
- (id) initWithUrl:(NSString *)theUrl synchronous:(BOOL)sync;
- (id) initWithUrl:(NSString *)theUrl;
- (void) parse;
@end
@protocol RSSParserDelegate <NSObject>
@optional
- (void) rssParser:(RSSParser *)parser parsedFeed:(RSSFeed *)feed;
- (void) rssParser:(RSSParser *)parser errorOccurred:(NSError *)error;
@end