Bump version to 0.9.0
[quandoparte] / application / app.cpp
index 8c950c4..26f0076 100644 (file)
@@ -54,11 +54,11 @@ App::App(QObject *parent) :
 {
     stationListModel->load("stations:stations.qpl");
 
-    connect(dataProvider, SIGNAL(queryStationCompleted(QByteArray)),
+    connect(dataProvider, SIGNAL(stationScheduleReady(QByteArray, QUrl)),
             SLOT(downloadFinished(QByteArray)));
 
-    connect(stationListView, SIGNAL(stationSelected(const QString &)),
-            SLOT(queryStation(const QString &)));
+    connect(stationListView, SIGNAL(stationSelected(QString)),
+            SLOT(queryStation(QString)));
 
     connect(stationListView, SIGNAL(aboutTriggered()),
             SLOT(showAboutDialog()));
@@ -105,7 +105,7 @@ void App::downloadFinished(const QByteArray &data)
 
 void App::queryStation(const QString &station)
 {
-    dataProvider->queryStation(station);
+    dataProvider->stationSchedule(station);
 #ifdef Q_WS_MAEMO_5
     stationListView->setAttribute(Qt::WA_Maemo5ShowProgressIndicator, true);
 #endif
@@ -158,7 +158,7 @@ void App::showStationSelectView(void)
 void App::readSettings(void)
 {
     Settings *settings = Settings::instance();
-    stationView->setBaseUrl(settings->queryBaseUrl());
+    stationView->setBaseUrl(settings->queryBaseUrl() + "stazione");
 
     /*
        I would use > 0 here, but people may have an old settings file with a 2