-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDocumentController.h
59 lines (49 loc) · 1.79 KB
/
DocumentController.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
57
58
59
//
// DocumentController.h
// Prokope
//
// DocumentController mangages the main display of the document/text, commentary,
// vocabulary, and the sidebar.
//
// Created by D. Robert Adams on 5/10/11.
// Copyright 2011 Grand Valley State University. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface DocumentController : UIViewController <UIWebViewDelegate, NSXMLParserDelegate>
{
UIWebView
*document, // where the document/text is displayed
*commentary, // where the commentary is displayed
*vocabulary, // where the vocabulary is displayed
*sidebar; // the sidebar
NSString *URL;
NSString *Title;
NSString *UserName;
NSMutableArray *EventsArray;
NSMutableArray *ErrorArray;
NSTimer *MyTimer;
int TimerCount;
NSMutableData *recievedData;
NSMutableString *localData;
}
@property (nonatomic, retain) IBOutlet UIWebView *document;
@property (nonatomic, retain) IBOutlet UIWebView *commentary;
@property (nonatomic, retain) IBOutlet UIWebView *vocabulary;
@property (nonatomic, retain) IBOutlet UIWebView *sidebar;
@property (nonatomic, retain) NSString *URL;
@property (nonatomic, retain) NSString *Title;
@property (nonatomic, retain) NSString *UserName;
@property (nonatomic, retain) NSMutableArray *EventsArray;
-(void)fetchDocumentData;
-(void)stripUrl;
-(void)MakeRestCall;
-(NSMutableString *)getCurrentEntries;
-(void)PopulateErrorArray:(NSString *)dataString;
-(void)clearEventsFromDisk;
-(NSString *)getDate;
-(void)captureURL:(UIWebView *)webView RequestMade:(NSString *)request;
// Called by DocumentVieweerDelegate when the user clicks on a word in the document.
-(void)wordClicked:(NSString *)id;
// Utility method to extract an XML element from a string.
- (NSString *) getXMLElement:(NSString *)startElement endElement:(NSString *)endElement fromData:(NSString *)data;
@end