-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainController.h
More file actions
29 lines (25 loc) · 794 Bytes
/
MainController.h
File metadata and controls
29 lines (25 loc) · 794 Bytes
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
//
// MainController.h
// LocationWatcher
//
// Created by EMM on 24/07/16.
// Copyright © 2016 EMM. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "Location.h"
@interface MainController : NSObject
+(MainController *) sharedInstance;
-(BOOL) addLocation:(Location *)newLocation;
-(NSInteger) numberOfCheckPoints;
-(Location *) getACheckPointAtIndex :(NSInteger)index;
-(Location *) getCurrentCellLocation;
-(void) setCurrentCellLocation :(Location *)currentCellLocation :(NSInteger )currentIndex;
-(BOOL) getEditFlag;
-(void) setEditflag:(BOOL) flag;
-(void) updateLocation:(NSUInteger )oldIndex :(Location *)newLocation;
-(NSInteger )getCurrentIndex;
-(void) loadData;
-(void) saveData;
-(void) removeLocation:(NSUInteger )index;
-(void) didIReachAnyLocation;
@end