1 #include "gpscontroller.h"
2 #include "gpscontroller_p.h"
5 #include <QGeoPositionInfo>
6 #include <QGeoPositionInfoSource>
9 GpsController::GpsController() :
10 q( new GpsControllerPrivate() )
16 GpsController::GpsController( GpsControllerPrivate *gpsControllerPrivate ) :
17 q( gpsControllerPrivate )
23 GpsController::~GpsController()
28 void GpsController::getGps()
30 if ( q->currentLocation() != 0 ) {
31 emit locationChanged( q->currentLocation() );
35 void GpsController::useLiveGps()
37 q->setUseFakeLocation( false );
38 q->setCurrentLocation(0);
42 void GpsController::useFakeGps( Location *fakeLocation )
45 q->setUseFakeLocation( true );
46 q->setCurrentLocation( fakeLocation );
47 emit locationChanged( q->currentLocation() );