X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=zouba%2Fgpscontroller.cpp;fp=zouba%2Fgpscontroller.cpp;h=33ba7e67ad95fb71b0152b5cdc13663a7310616a;hb=c53e123868aa50539e6a513836d9922b99ea8e9a;hp=c8226acfe4a640512c6d58dad3e9e149053a08fd;hpb=d74ef6b41b59eef3192a30a77c552b9dcc400234;p=ptas diff --git a/zouba/gpscontroller.cpp b/zouba/gpscontroller.cpp index c8226ac..33ba7e6 100644 --- a/zouba/gpscontroller.cpp +++ b/zouba/gpscontroller.cpp @@ -11,8 +11,6 @@ GpsController::GpsController() : m_location( QGeoPositionInfoSource::createDefaultSource(this) ), currentLocation(0) { - m_location->setUpdateInterval( 1*60*1000 ); - connect( m_location, SIGNAL( positionUpdated( QGeoPositionInfo ) ), this, SLOT( updateLocation( QGeoPositionInfo ) ) @@ -31,16 +29,11 @@ GpsController::~GpsController() void GpsController::updateLocation( QGeoPositionInfo positionInfo ) { - qDebug() << "new GPS position"; - delete currentLocation; currentLocation = new Location( positionInfo ); - - qDebug() << "from location changed"; - emit locationChanged( currentLocation ); } -void GpsController::startGps() +void GpsController::getGps() { if ( currentLocation != 0 ) { emit locationChanged( currentLocation );