navit 0.5.3-trunk
Loading...
Searching...
No Matches
corelocation.h
Go to the documentation of this file.
1
19#ifndef VEHICLE_IPHONE_CORELOCATION_H
20#define VEHICLE_IPHONE_CORELOCATION_H
21
22typedef void(*FT_LOCATION_CB)(void *, double , double , double , double, char *, double);
23void corelocation_update(double lat,
24 double lng,
25 double dir,
26 double spd,
27 char * time,
28 double radius);
29void corelocation_init(void * pv_arg, FT_LOCATION_CB pf_cb);
30void corelocation_exit(void);
31
32#ifdef VEHICLE_IPHONE_OBJC
33#import <CoreLocation/CoreLocation.h>
34
35
36@interface corelocation : NSObject <CLLocationManagerDelegate> {
37 CLLocationManager *locationManager;
38 NSDateFormatter *dateFormatter;
39 NSDate* eventDate;
40@public
41 FT_LOCATION_CB pf_cb;
42 void * pv_arg;
43}
44
45@property (nonatomic, retain) CLLocationManager *locationManager;
46@property (nonatomic, retain) NSDateFormatter *dateFormatter;
47@property (nonatomic, retain) NSDate* eventDate;
48@property (nonatomic) int first;
49@property (nonatomic) void * pv_arg;
50@property (nonatomic) FT_LOCATION_CB pf_cb;
51
52- (void)locationManager:(CLLocationManager *)manager
53 didUpdateToLocation:(CLLocation *)newLocation
54 fromLocation:(CLLocation *)oldLocation;
55
56- (void)locationManager:(CLLocationManager *)manager
57 didFailWithError:(NSError *)error;
58
59@end
60
61#endif
62#endif
Definition corelocation.m:54
void corelocation_init(void *pv_arg, FT_LOCATION_CB pf_cb)
Definition corelocation.m:37
void corelocation_update(double lat, double lng, double dir, double spd, char *time, double radius)
Definition corelocation.m:30
void corelocation_exit(void)
Definition corelocation.m:49
void(* FT_LOCATION_CB)(void *, double, double, double, double, char *, double)
Definition corelocation.h:22
struct triple lng lat
Definition garmin_img.c:0