void DataProvider::onStationScheduleReady()
{
disconnect(stationQueryReply, SIGNAL(finished()),
- this, SLOT(downloadFinished()));
+ this, SLOT(onStationScheduleReady()));
// TODO implement parsing or data returning...
- emit stationScheduleReady(stationQueryReply->readAll());
+ emit stationScheduleReady(QString::fromUtf8(stationQueryReply->readAll()),
+ stationQueryReply->url());
stationQueryReply->deleteLater();
stationQueryReply = 0;
}
class QNetworkAccessManager;
class QNetworkReply;
+class QUrl;
class DataProvider : public QObject
{
explicit DataProvider(QObject *parent = 0);
signals:
- void stationScheduleReady(const QByteArray &result);
+ void stationScheduleReady(const QString &result, const QUrl &url);
public slots:
void stationSchedule(const QString &station);