Location *GpsControllerPrivate::liveLocation()
{
+ m_mostRecentlyReportedLocation = m_liveLocation;
return m_liveLocation;
}
Location *GpsControllerPrivate::fakeLocation()
{
- Locations *locations = Locations::instance();
- Location *location = locations->location( fakeLocationLabel() );
+ Locations locations;
+ Location *location = locations.location( fakeLocationLabel() );
+ m_mostRecentlyReportedLocation = location;
return location;
}
m_liveLocation->setLocation( positionInfo );
}
+Location *GpsControllerPrivate::mostRecentlyReportedLocation()
+{
+ return m_mostRecentlyReportedLocation;
+}