+zouba (0.9) unstable; urgency=low
+
+ * added notification for address resolution failure and no route
+ * fixed issue with multiple route requests for a single button click
+
+ -- Max Waterman <davidmaxwaterman@fastmail.co.uk> Sun, 25 Apr 2010 06:12:00 +0200
+
zouba (0.8) unstable; urgency=low
* Fixed problem when changing the address of a location to something invalid.
void GpsController::getGps()
{
Location *location;
+ Location *previousLocation = q->mostRecentlyReportedLocation();
if ( q->useFakeLocation() ) {
location = q->fakeLocation();
location = q->liveLocation();
}
- emit locationChanged( location );
+ if ( location != previousLocation ) {
+ emit locationChanged( location );
+ }
}
void GpsController::useLiveGps()
Location *GpsControllerPrivate::liveLocation()
{
+ m_mostRecentlyReportedLocation = m_liveLocation;
return m_liveLocation;
}
{
Locations *locations = Locations::instance();
Location *location = locations->location( fakeLocationLabel() );
+ m_mostRecentlyReportedLocation = location;
return location;
}
m_liveLocation->setLocation( positionInfo );
}
+Location *GpsControllerPrivate::mostRecentlyReportedLocation()
+{
+ return m_mostRecentlyReportedLocation;
+}
virtual QGeoPositionInfoSource *gps();
virtual Location *liveLocation();
virtual Location *fakeLocation();
+ virtual Location *mostRecentlyReportedLocation();
virtual QString fakeLocationLabel();
virtual bool useFakeLocation();
Location *m_liveLocation;
QString m_fakeLocationLabel;
bool m_useFakeLocation;
+ Location *m_mostRecentlyReportedLocation;
};
#endif //GPSCONTROLLER_P_H
#include <QXmlStreamReader>
#include <QByteArray>
#include <QDebug>
+#include <QMaemo5InformationBox>
LocationPrivate::LocationPrivate( const QString &x, const QString &y, const QString &label ) :
m_label(label),
}
if ( xml.hasError() || responseHasError ) {
+ QMaemo5InformationBox::information( 0, "address resolution error - please check address" );
qDebug() << "xml error";
m_valid = false;
} else {
#include <QList>
#include <QFile>
#include <QStringList>
+#include <QMaemo5InformationBox>
RoutePrivate::RoutePrivate( QObject *parent ) :
m_fromValid(false),
if ( retVal.isEmpty() ) {
qDebug() << "no routes found";
+ QMaemo5InformationBox::information( 0, "no routes found" );
}
return retVal;
if ( destinationHasChanged ) {
qDebug() << "Emitting destination changed (" << m_destination[id]->label() << ")";
emit destinationChanged( m_destination[id] );
+ m_currentDestination = id;
}
- // always want to emit this so that the gps position is update
+ // always want to emit this so that the gps position is updated
// and the user gets new information
emit buttonClicked();
}
CONFIG -=
CONFIG += debug qt mobility
MOBILITY += location bearer
-QT=core gui network
+QT=core gui network maemo5
INSTALLS += target
target.path = /usr/bin/