void SituareEngine::error(const QString &error)
{
qDebug() << __PRETTY_FUNCTION__;
+ qDebug() << "ERROR MESSAGE: " << error;
m_ui->buildInformationBox(error, true);
this, SLOT(requestUpdateLocation(QString,bool)));
connect(m_ui, SIGNAL(enableAutomaticLocationUpdate(bool, int)),
- this, SLOT(enableAutomaticLocationUpdate(bool, int)));
+ this, SLOT(enableAutomaticLocationUpdate(bool, int)));
// signals from user info tab
connect(m_ui, SIGNAL(refreshUserData()),
this, SLOT(refreshUserData()));
+ connect (m_ui, SIGNAL(notificateUpdateFailing(QString)),
+ this, SLOT(error(QString)));
+
connect(m_ui, SIGNAL(findUser(QPointF)),
m_mapEngine, SLOT(setViewLocation(QPointF)));
connect(m_situareService, SIGNAL(updateWasSuccessful()),
this, SLOT(updateWasSuccessful()));
+
+ connect(m_situareService, SIGNAL(updateWasSuccessful()),
+ m_ui, SIGNAL(updateWasSuccessful()));
+
+ connect(m_situareService, SIGNAL(error(QString)),
+ m_ui, SIGNAL(messageSendingFailed(QString)));
}
void SituareEngine::updateWasSuccessful()