m_ui->buildInformationBox(tr("Data retrieval failed, please try again"), true);
break;
case SituareError::ADDRESS_RETRIEVAL_FAILED:
- case SituareError::ERROR_GEOLOCATION_REQUEST_FAIL:
- case SituareError::ERROR_GEOLOCATION_LONLAT_INVALID:
m_ui->toggleProgressIndicator(false);
m_ui->buildInformationBox(tr("Address retrieval failed"), true);
break;
m_ui->loggedIn(false);
m_facebookAuthenticator->clearAccountInformation(false); // clean all
break;
- case SituareError::ERROR_GEOLOCATION_SERVER_UNAVAILABLE:
- m_ui->toggleProgressIndicator(false);
- m_ui->buildInformationBox(tr("Address server not responding"), true);
- break;
case SituareError::ERROR_ROUTING_FAILED:
m_ui->toggleProgressIndicator(false);
m_ui->buildInformationBox(tr("Routing failed"), true);
break;
+ case SituareError::ERROR_LOCATION_SEARCH_FAILED:
+ m_ui->buildInformationBox(tr("No results found"), true);
+ break;
default:
m_ui->toggleProgressIndicator(false);
if(context == ErrorContext::NETWORK)
connect(m_geocodingService, SIGNAL(locationDataParsed(const QList<Location>&)),
m_ui, SIGNAL(locationDataParsed(const QList<Location>&)));
+
+ connect(m_geocodingService, SIGNAL(error(int, int)),
+ this, SLOT(error(int, int)));
}
void SituareEngine::signalsFromGPS()