-
Notifications
You must be signed in to change notification settings - Fork 0
/
TiVoHTTPClient.h
56 lines (49 loc) · 1.07 KB
/
TiVoHTTPClient.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#import "HttpClient.h"
#include <libxml/parser.h>
#include <libxml/tree.h>
@interface TiVoItem : NSObject
{
@public
NSString *contentType;
NSString *sourceFormat;
NSString *title;
NSString *sourceSize;
NSString *duration;
NSString *captureDate;
NSString *episodeTitle;
NSString *description;
NSString *sourceChannel;
NSString *sourceStation;
BOOL highDef;
NSString *programId;
NSString *seriesId;
NSString *url;
}
@end
@interface TiVoContainer : NSObject
{
@public
NSString *title;
int totalItems;
NSMutableArray *items;
NSString *contentType;
}
@end
@interface TiVoHTTPClient : NSObject
{
NSString *host;
int port;
NSString *user, *password;
BOOL secure;
HttpClient *httpClient;
int errorCode;
}
static int ERROR_XML_PARSE = 30;
static int ERROR_XML_XPATH = 31;
static int ERROR_XML_NO_TITLE = 32;
static int ERROR_XML_NO_ITEMS = 33;
-(void)initialize: (NSString *)host port:(int)port secure:(BOOL)s
user:(NSString*)u password:(NSString*)p;
-(TiVoContainer *) QueryContainer: (NSString *)container;
-(int) GetErrorCode;
@end