Navit SVN

/work/compile/navit/src/navit/vehicle/iphone/corelocation.h

00001 
00019 #ifndef VEHICLE_IPHONE_CORELOCATION_H
00020 #define VEHICLE_IPHONE_CORELOCATION_H
00021 
00022 typedef void(*FT_LOCATION_CB)(void *, double , double , double , double, char *, double);
00023 void corelocation_update(double lat, 
00024                 double lng,
00025                 double dir,
00026                 double spd,
00027                 char * time,
00028                 double radius);
00029 void corelocation_init(void * pv_arg, FT_LOCATION_CB pf_cb);
00030 void corelocation_exit(void);
00031 
00032 #ifdef VEHICLE_IPHONE_OBJC
00033 #import <CoreLocation/CoreLocation.h>
00034 
00035 
00036 @interface corelocation : NSObject <CLLocationManagerDelegate> {
00037         CLLocationManager *locationManager;
00038         NSDateFormatter *dateFormatter;
00039         NSDate* eventDate;
00040 @public
00041         FT_LOCATION_CB pf_cb;
00042         void * pv_arg;
00043 }
00044 
00045 @property (nonatomic, retain) CLLocationManager *locationManager;
00046 @property (nonatomic, retain) NSDateFormatter *dateFormatter;
00047 @property (nonatomic, retain) NSDate* eventDate;
00048 @property (nonatomic) int first;
00049 @property (nonatomic) void * pv_arg;
00050 @property (nonatomic) FT_LOCATION_CB pf_cb;
00051 
00052 - (void)locationManager:(CLLocationManager *)manager
00053         didUpdateToLocation:(CLLocation *)newLocation
00054                    fromLocation:(CLLocation *)oldLocation;
00055 
00056 - (void)locationManager:(CLLocationManager *)manager
00057            didFailWithError:(NSError *)error;
00058 
00059 @end
00060 
00061 #endif
00062 #endif