+void GpsMaemo5_changed(LocationGPSDevice *device, GpsMaemo5 *gps) {
+ if (device->fix) {
+ if (device->fix->fields & LOCATION_GPS_DEVICE_LATLONG_SET) {
+ g_print("lat = %f, long = %f, eph = %f\n", device->fix->latitude, device->fix->longitude, device->fix->eph/100.);
+ gps->latitude = device->fix->latitude;
+ gps->longitude = device->fix->longitude;
+ gps->accuracy = device->fix->eph/100.;
+
+ if ( gps->usegps == 0) {
+ emit gps->getOK_acwp();
+ } else if ( gps->usegps == 1 ) {
+ if ( gps->device->satellites_in_use > 0 ) {
+ emit gps->getOK_agnss();
+ }
+ } else {
+ emit gps->getOK();
+ }
+ }
+ }