navit
0.5.3-trunk
|
The Vehicle to gain position data from iPhone. More...
Data Structures | |
struct | vehicle_priv |
Functions | |
static void | vehicle_iphone_destroy (struct vehicle_priv *priv) |
static int | vehicle_iphone_position_attr_get (struct vehicle_priv *priv, enum attr_type type, struct attr *attr) |
static int | vehicle_iphone_set_attr (struct vehicle_priv *priv, struct attr *attr) |
void | vehicle_iphone_update (void *arg, double lat, double lng, double dir, double spd, char *str_time, double radius) |
static struct vehicle_priv * | vehicle_iphone_new (struct vehicle_methods *meth, struct callback_list *cbl, struct attr **attrs) |
void | plugin_init (void) |
The plugin entry point. More... | |
static void | vehicle_maemo_callback (LocationGPSDevice *device, gpointer user_data) |
static void | vehicle_maemo_error (LocationGPSDControl *control, LocationGPSDControlError error, gpointer user_data) |
static void | vehicle_maemo_open (struct vehicle_priv *priv) |
static void | vehicle_maemo_destroy (struct vehicle_priv *priv) |
static int | vehicle_maemo_position_attr_get (struct vehicle_priv *priv, enum attr_type type, struct attr *attr) |
static struct vehicle_priv * | vehicle_maemo_new_maemo (struct vehicle_methods *meth, struct callback_list *cbl, struct attr **attrs) |
Variables | |
int | vehicle_priv::interval |
int | vehicle_priv::position_set |
struct navit * | vehicle_priv::navit |
struct coord | vehicle_priv::last |
double | vehicle_priv::config_speed |
double | vehicle_priv::radius |
struct callback * | vehicle_priv::timer_callback |
struct event_timeout * | vehicle_priv::timer |
char | vehicle_priv::str_time [200] |
struct vehicle_methods | vehicle_iphone_methods |
LocationGPSDControl * | vehicle_priv::control |
LocationGPSDevice * | vehicle_priv::device |
struct vehicle_methods | vehicle_maemo_methods |
The Vehicle to gain position data from iPhone.
The Vehicle to gain position data from Maemo.
Plugin for new Maemo's liblocation API. <vehicle source="maemo://any" retry_interval="1"> source cound be on of "any","cwp","acwp","gnss","agnss" retry_interval could be one of "1","2","5","10","20","30","60","120" measured in seconds
void plugin_init | ( | void | ) |
The plugin entry point.
The plugin entry point
The plugin entry point.
This function is called once on startup.
The plugin entry point.
The plugin entry point.
Navit, a modular navigation system. Copyright (C) 2005-2008 Navit Team
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
References dbg, lvl_debug, and vehicle_iphone_new().
|
static |
References corelocation_exit().
|
static |
Initialize corelocation
References attr_search(), vehicle_priv::cbl, vehicle_priv::config_speed, attr::coord_geo, corelocation_init(), dbg, vehicle_priv::geo, vehicle_priv::interval, coord_geo::lat, coord_geo::lng, lvl_debug, attr::num, vehicle_priv::position_set, vehicle_priv::speed, vehicle_priv::str_time, attr::u, vehicle_iphone_methods, and vehicle_iphone_update().
Referenced by plugin_init().
|
static |
|
static |
References vehicle_priv::navit, attr::navit, attr::type, and attr::u.
void vehicle_iphone_update | ( | void * | arg, |
double | lat, | ||
double | lng, | ||
double | dir, | ||
double | spd, | ||
char * | str_time, | ||
double | radius | ||
) |
References callback_list_call_attr_0, vehicle_priv::cbl, dbg, vehicle_priv::direction, vehicle_priv::geo, coord_geo::lat, lat, coord_geo::lng, lvl_debug, vehicle_priv::radius, vehicle_priv::speed, and vehicle_priv::str_time.
Referenced by vehicle_iphone_new().
|
static |
References callback_list_call_attr_0, vehicle_priv::cbl, dbg, vehicle_priv::direction, vehicle_priv::fix_time, vehicle_priv::fix_type, vehicle_priv::geo, vehicle_priv::hdop, vehicle_priv::height, coord_geo::lat, coord_geo::lng, lvl_debug, vehicle_priv::sats, vehicle_priv::sats_used, and vehicle_priv::speed.
Referenced by vehicle_maemo_open().
|
static |
References vehicle_priv::control, and vehicle_priv::device.
|
static |
References dbg, and lvl_error.
Referenced by vehicle_maemo_open().
|
static |
|
static |
Instantiate liblocation objects
References vehicle_priv::control, dbg, vehicle_priv::device, lvl_debug, vehicle_priv::retry_interval, vehicle_priv::source, vehicle_maemo_callback(), and vehicle_maemo_error().
Referenced by vehicle_maemo_new_maemo().
|
static |
References active, attr_search(), vehicle_priv::attrs, attr::coord_geo, dbg, vehicle_priv::direction, vehicle_priv::fix_time, vehicle_priv::fix_type, vehicle_priv::fixiso8601, vehicle_priv::geo, vehicle_priv::hdop, vehicle_priv::height, lvl_debug, attr::num, attr::numd, vehicle_priv::sats, vehicle_priv::sats_used, vehicle_priv::speed, attr::str, type, attr::type, and attr::u.
double vehicle_priv::config_speed |
Referenced by vehicle_demo_new(), vehicle_demo_set_attr_do(), vehicle_demo_timer(), and vehicle_iphone_new().
LocationGPSDControl* vehicle_priv::control |
LocationGPSDevice* vehicle_priv::device |
int vehicle_priv::interval |
Referenced by vehicle_demo_new(), vehicle_demo_set_attr_do(), vehicle_demo_timer(), and vehicle_iphone_new().
struct coord vehicle_priv::last |
Referenced by vehicle_demo_timer().
struct navit * vehicle_priv::navit |
Referenced by vehicle_demo_set_attr_do(), vehicle_demo_timer(), and vehicle_iphone_set_attr().
int vehicle_priv::position_set |
Referenced by vehicle_demo_set_attr_do(), vehicle_demo_timer(), and vehicle_iphone_new().
double vehicle_priv::radius |
Position accuracy in meters
Referenced by QNavitGeoReceiver::positionUpdated(), vehicle_android_position_attr_get(), vehicle_android_position_callback(), vehicle_iphone_position_attr_get(), vehicle_iphone_update(), vehicle_null_position_attr_get(), vehicle_qt5_position_attr_get(), vehicle_webos_gps_update(), and vehicle_webos_position_attr_get().
char vehicle_priv::str_time[200] |
Referenced by vehicle_iphone_new(), vehicle_iphone_position_attr_get(), and vehicle_iphone_update().
struct event_timeout * vehicle_priv::timer |
Referenced by vehicle_demo_destroy(), vehicle_demo_new(), and vehicle_demo_set_attr_do().
struct callback * vehicle_priv::timer_callback |
Referenced by vehicle_demo_destroy(), vehicle_demo_new(), and vehicle_demo_set_attr_do().
struct vehicle_methods vehicle_iphone_methods |
Referenced by vehicle_iphone_new().
struct vehicle_methods vehicle_maemo_methods |
Referenced by vehicle_maemo_new_maemo().