X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=zouba%2Flocation.cpp;h=4a4a1a7139ef181320589bb47f3a1e8df06a7e01;hb=4397917b7035735b4e9adf5df1a8e79ccf5e9ab9;hp=3b289ca8d08daef88049cc5780cf02e5fbbb174a;hpb=1813f83c17c45d31039487a7612db00e5870008c;p=ptas diff --git a/zouba/location.cpp b/zouba/location.cpp index 3b289ca..4a4a1a7 100644 --- a/zouba/location.cpp +++ b/zouba/location.cpp @@ -33,6 +33,7 @@ Location::Location( const QString &x, const QString &y, const QString &label ) : q( new LocationPrivate( x, y, label ) ), manager( new QNetworkAccessManager(this) ) { + qDebug() << "Location::Location(" << x << "," << y << "," << label <<")"; connect( manager, SIGNAL( finished(QNetworkReply*) ), this, SLOT( replyFinished(QNetworkReply*) ) @@ -109,6 +110,7 @@ void Location::resolveAddress( const QString &address ) qDebug() << address; q->setAddress( address ); + q->setValid( false ); QUrl fullUrl( Ytv::Url ); @@ -126,7 +128,7 @@ void Location::replyFinished( QNetworkReply * reply ) q->parseReply( reply->readAll() ); if ( isValid() ) { - qDebug() << label() << "becomeValid" << this; + qDebug() << label() << "becomeValid"; emit( becomeValid() ); } } @@ -153,6 +155,7 @@ QString Location::label() const void Location::setAddress( const QString &address ) const { + qDebug() << "setting address to" << address; q->setAddress( address ); } @@ -166,7 +169,6 @@ bool Location::isValid() const return q->isValid(); } - // Degrees to radians double Location::radians(double deg) {