lachie / cheepcheep

my very own twitter client

This URL has Read+Write access

cheepcheep / MGTwitterXMLParser.h
100644 43 lines (35 sloc) 1.19 kb
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
43
//
// MGTwitterXMLParser.h
// MGTwitterEngine
//
// Created by Matt Gemmell on 18/02/2008.
// Copyright 2008 Magic Aubergine.
//
 
#if TARGET_OS_ASPEN
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#else
#import <Cocoa/Cocoa.h>
#endif
 
#import "MGTwitterParserDelegate.h"
 
@interface MGTwitterXMLParser : NSObject {
    __weak NSObject <MGTwitterParserDelegate> *delegate; // weak ref
    NSString *identifier;
    MGTwitterRequestType requestType;
    MGTwitterResponseType responseType;
    NSData *xml;
    NSMutableArray *parsedObjects;
    NSXMLParser *parser;
    __weak NSMutableDictionary *currentNode;
    NSString *lastOpenedElement;
}
 
+ (id)parserWithXML:(NSData *)theXML delegate:(NSObject *)theDelegate
connectionIdentifier:(NSString *)identifier requestType:(MGTwitterRequestType)reqType
       responseType:(MGTwitterResponseType)respType;
- (id)initWithXML:(NSData *)theXML delegate:(NSObject *)theDelegate
connectionIdentifier:(NSString *)identifier requestType:(MGTwitterRequestType)reqType
     responseType:(MGTwitterResponseType)respType;
 
- (NSString *)lastOpenedElement;
- (void)setLastOpenedElement:(NSString *)value;
 
- (void)addSource;
 
@end