Subversion Repository Public Repository

Nextrek

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
63
64
65
66
67
//
//  DataManager.h
//  bigBangProject
//
//  Created by Fabrizio on 29/01/13.
//  Copyright (c) 2012 Odyssey. All rights reserved.
//


#import <Foundation/Foundation.h>
#import "SFAUser.h"
#import "CustomIOSAlertView.h"
#import "SFAPercorso.h"
#import "Reachability.h"


@interface DataManager : NSObject <CustomIOSAlertViewDelegate>

+(DataManager *) getInstance;
- (id) init;

@property (nonatomic, strong) SFAUser *user;
@property (nonatomic, strong) NSNumber *secondsCount;
@property (nonatomic, strong) NSURL *menuWebViewURL;
@property (nonatomic, strong) NSMutableArray *orderedArray;
- (void)saveUser;
- (void)loadUser;

- (NSString*) defineLanguageWeb;
- (void) defineLanguage;

- (NSError *)errorInside:(NSDictionary *)response;

- (void) showMessageWithAlert:(id)delegate message:(NSString*)message tag:(NSInteger)tag;
- (void) showErrorAlert:(id)delegate message:(NSString*)message tag:(NSInteger)tag;
- (void) showErrorAlert2Btns:(id)delegate message:(NSString*)message tag:(NSInteger)tag;
- (void) showGPSAlert:(id)delegate message:(NSString*)message tag:(NSInteger)tag;
- (void) showAlert:(id)delegate withTitle:(NSString*)title message:(NSString*)message tag:(NSInteger)tag;

- (NSArray *) setDurationRoutes:(NSString *)duration;
- (NSArray *) setRouteLength:(NSString *)length;
- (NSArray *) setDistanceToMe:(NSString *)distanceToMe;


- (void) savePOIforRoute:(SFAPercorso*)route poiIndex:(NSNumber*)poiIndex;
- (void) clearPOIforRoute:(SFAPercorso*)route;
- (NSNumber*) poiForRoute:(SFAPercorso*)route;

//Timer methods
- (BOOL) saveTimerForRouteID:(SFAPercorso*)route;

-(BOOL) resetTimerForRouteID:(SFAPercorso*)route;

- (NSString *)getTime;
- (NSString *)getTimeForRoute:(SFAPercorso*)route;
-(BOOL) saveClues:(SFAPercorso*)route ;

-(UIImage*)imageWithImage: (UIImage*) sourceImage scaledToWidth: (float) i_width;


- (void) timeInc;
- (void)setCellColorforTableview:(UITableView*)tableview withColor:(UIColor *)color forIndexPath:(NSIndexPath*)indexPath andDuration:(int)duration;
- (BOOL)testInternetConnection;

-(void) resetPoisForRoute:(SFAPercorso*)route;

@end

Commits for Nextrek/iOS/SafariArte/trunk/SafariArte/Commodities/DataManager.h

Diff revisions: vs.
Revision Author Commited Message
770 Diff Diff FAquili picture FAquili Tue 22 Sep, 2015 14:53:34 +0000

ios9 fixes

595 Diff Diff FAquili picture FAquili Thu 27 Aug, 2015 15:20:48 +0000

FOLDER UPDATE AFTER CRASHLYTHICS UPDATE

588 Diff Diff PBonamassa picture PBonamassa Thu 27 Aug, 2015 13:39:33 +0000

fixed bug

568 Diff Diff PBonamassa picture PBonamassa Wed 26 Aug, 2015 09:47:30 +0000

fixed bug timer & image final quiz

536 Diff Diff PBonamassa picture PBonamassa Mon 24 Aug, 2015 13:48:30 +0000

Bug fixing

534 Diff Diff FAquili picture FAquili Mon 24 Aug, 2015 13:15:05 +0000

Bug fixing

453 Diff Diff PBonamassa picture PBonamassa Thu 30 Jul, 2015 15:25:09 +0000

added sound Frocix

451 Diff Diff FPompili picture FPompili Thu 30 Jul, 2015 13:34:10 +0000

added orderByServer (geo order) for routes dict

444 Diff Diff FPompili picture FPompili Tue 28 Jul, 2015 14:26:36 +0000

added customAlertView

426 FPompili picture FPompili Wed 22 Jul, 2015 15:17:52 +0000

fixed bugs