forked from rodvand/GeoEvents
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSearchViewController.h
More file actions
62 lines (59 loc) · 2.26 KB
/
SearchViewController.h
File metadata and controls
62 lines (59 loc) · 2.26 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
//
// SearchViewViewController.h
// GeoEvents_final
//
// Created by Martin Roedvand on 08/12/2009.
// Copyright 2009 Redwater Software. All rights reserved.
//
#import "GlobalHeader.h"
#import <UIKit/UIKit.h>
#import "DetailedViewViewController.h"
#import "MapViewController.h"
#import "Event.h"
@interface SearchViewController : UITableViewController {
DetailedViewViewController * detailedViewController;
MapViewController * mapViewController;
NSString * searchString;
bool locationBasedSearch;
NSString * url;
NSString * apiKey;
NSNumber * latitude;
NSNumber * longitude;
NSNumber * range;
NSMutableArray * events;
NSMutableArray * sections;
NSMutableArray * aDates;
NSNumber * currentPage;
NSNumber * totalNumberOfPages;
NSNumber * noOfPages;
NSNumber * nextPageLimit;
int sectionCounter;
int eventCounter;
bool error; //If something went wrong with our search
NSString * errorMessage; //Message when something goes wrong
bool more; // if there is more pages to be fetched
bool currentlyLoading;
}
- (void) loadMap;
- (void) loadXml:(bool)increment recursive:(bool)again;
- (NSString*) createUrl:(NSString*)api latitude:(NSNumber*)lat longitude:(NSNumber*)lang searchString:(NSString*)searchQuery page:(NSNumber*)pageNumber range:(NSNumber*)distance;
- (NSString*) createDate:(NSString*)rawDate;
- (void) addDate:(Event*)event;
- (Event*) getEvent:(NSIndexPath *)indexPath;
@property (nonatomic, retain) NSMutableArray * aDates;
@property (nonatomic, retain) NSMutableArray * sections;
@property (nonatomic, retain) DetailedViewViewController * detailedViewController;
@property (nonatomic, retain) MapViewController * mapViewController;
@property (nonatomic, retain) NSString * searchString;
@property (nonatomic, retain) NSString * url;
@property (nonatomic, retain) NSString * apiKey;
@property (nonatomic, retain) NSString * errorMessage;
@property (nonatomic, retain) NSNumber * latitude;
@property (nonatomic, retain) NSNumber * longitude;
@property (nonatomic, retain) NSMutableArray * events;
@property (nonatomic, retain) NSNumber * currentPage;
@property (nonatomic, retain) NSNumber * totalNumberOfPages;
@property (nonatomic, retain) NSNumber * noOfPages;
@property (nonatomic, retain) NSNumber * nextPageLimit;
@property (nonatomic, retain) NSNumber * range;
@end