-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTVDBShowSearch.h
32 lines (26 loc) · 1000 Bytes
/
TVDBShowSearch.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
//
// TVDB API.h
// VideoMatic
//
// Created by James Reuss on 18/01/2012.
// Copyright (c) 2012 James Reuss. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "TVDBShow.h"
@interface TVDBShowSearch : NSObject {
NSMutableArray *foundShows;
TVDBShow *currentShow;
NSMutableString *dataBuffer;
}
#pragma mark Initialisation
- (id)init;
#pragma mark Search Methods
- (void)searchForShowWithName:(NSString*)searchTerm;
- (NSMutableArray*)getFoundShows;
- (TVDBShow*)getShowElement:(NSUInteger)element;
- (TVDBShow*)firstShow;
#pragma mark Internal Methods
- (void)parser:(NSXMLParser*)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName attributes:(NSDictionary *)attributeDict;
- (void)parser:(NSXMLParser*)parser foundCharacters:(NSString *)string;
- (void)parser:(NSXMLParser*)parser didEndElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName;
@end