aboutsummaryrefslogtreecommitdiffstats
path: root/iphone/FixMyStreet/Classes/InputTableViewController.h
blob: f902c40177e64c5ca99c18816d56ab8793a858ae (plain)
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
//
//  InputTableViewController.h
//  FixMyStreet
//
//  Created by Matthew on 26/09/2008.
//  Copyright 2008 UK Citizens Online Democracy. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MyCLController.h"

@interface InputTableViewController : UIViewController <UINavigationControllerDelegate,UIImagePickerControllerDelegate,MyCLControllerDelegate> {
	IBOutlet UIImageView* imageView;
	IBOutlet UITableView* actionsToDoView;
	IBOutlet UIButton* settingsButton;
	UIBarButtonItem* backButton;

	// Not sure what I made these for
	UITableViewCell* actionTakePhotoCell;
	UITableViewCell* actionFetchLocationCell;
	UITableViewCell* actionSubjectCell;
	
	UILabel* subjectLabel;
	UILabel* subjectContent;
}

-(void)enableSubmissionButton;
-(void)uploadReport;
-(void)reportUploaded:(BOOL)success;

-(IBAction)addPhoto:(id) sender;
-(IBAction)gotoSettings:(id)sender firstTime:(BOOL)firstTime;
-(IBAction)gotoAbout:(id)sender;

// UIImagePickerControllerDelegate
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary *)editingInfo;
- (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker;

-(BOOL)startLocation;

//MyCLControllerDelegate
-(void)newLocationUpdate:(CLLocation *)location;
-(void)newLocationError:(NSString *)text;

@end