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(userDataChanged(User*, QList<User*>&)));
connect(m_situareService, SIGNAL(updateWasSuccessful()),
- this, SLOT(updateWasSuccessful()));
+ this, SLOT(updateWasSuccessful()));
+ // signals to mainwindow
connect(m_situareService, SIGNAL(updateWasSuccessful()),
- this, SIGNAL(messageUpdatedToSituare()));
-
- connect(this, SIGNAL(messageUpdatedToSituare()),
m_ui, SIGNAL(messageUpdatedToSituare()));
+
+ connect(m_situareService, SIGNAL(error(QString)),
+ m_ui, SIGNAL(messageSendingFailed(QString)));
}
void SituareEngine::updateWasSuccessful()
*/
void friendsLocationsReady(QList<User *> &friendList);
void messageUpdatedToSituare();
+ void messageSendingFailed(const QString &error);
/**
* @brief Signals when new user data is ready
connect(this, SIGNAL(messageUpdatedToSituare()),
m_userPanel, SIGNAL(messageUpdatedToSituare()));
+
+ connect(this, SIGNAL(messageSendingFailed(QString)),
+ m_userPanel, SIGNAL(messageSendingFailed(QString)));
}
void MainWindow::buildWebView()
void updateCredentials(const QUrl &url);
void messageUpdatedToSituare();
+ void messageSendingFailed(const QString &error);
/**
* @brief MapView has finished zooming
// emit m_textEdit sisältö userInfo luokalle talteen
}
+void UpdateLocationDialog::saveMessageAndClose()
+{
+ qDebug() << __PRETTY_FUNCTION__ << "NONIIN NONIIN";
+
+
+}
+
void UpdateLocationDialog::setAddress(const QString &address)
{
qDebug() << __PRETTY_FUNCTION__;
*
* @param address Street address, result from SituareService's reverseGeo
*/
- void setAddress(const QString &address);
+ void setAddress(const QString &address);
+ void saveMessageAndClose();
private slots:
this, SIGNAL(statusUpdate(QString, bool)));
connect(this, SIGNAL(messageUpdatedToSituare()),
&updateLocationDialog, SLOT(close()));
+ connect(this, SIGNAL(messageSendingFailed(QString)),
+ &updateLocationDialog, SLOT(saveMessageAndClose()));
updateLocationDialog.exec();
}
* @brief Slot function to forward messageUpdate launch signal
*
*/
- void messageUpdate();
+ void messageUpdate();
/******************************************************************************
* SIGNALS
*/
void statusUpdate(const QString &status, const bool &publish);
void messageUpdatedToSituare();
+ void messageSendingFailed(const QString &error);
/******************************************************************************
* DATA MEMBERS
connect(this, SIGNAL(messageUpdatedToSituare()),
m_userInfo, SIGNAL(messageUpdatedToSituare()));
+
+ connect(this, SIGNAL(messageSendingFailed(QString)),
+ m_userInfo, SIGNAL(messageSendingFailed(QString)));
}
void UserInfoPanel::userDataReceived(User *user)
*/
void statusUpdate(const QString &status, const bool &publish);
void messageUpdatedToSituare();
+ void messageSendingFailed(const QString &error);
/*******************************************************************************
* DATA MEMBERS