22 #include <QNetworkReply>
45 static QString defaultServiceUrl();
48 static QString queryFromRect(
const QgsRectangle& rect );
53 void setServiceUrl(
const QString& serviceUrl ) { mServiceUrl = serviceUrl; }
56 void setQuery(
const QString& query ) { mQuery = query; }
57 QString
query()
const {
return mQuery; }
59 void setOutputFileName(
const QString& outputFileName ) { mFile.setFileName( outputFileName ); }
62 bool hasError()
const {
return !mError.isNull(); }
82 bool isFinished()
const;
86 void downloadProgress( qint64, qint64 );
91 void onError( QNetworkReply::NetworkError err );
98 QNetworkReply* mReply;
102 #endif // OSMDOWNLOAD_H