connect(m_situareService, SIGNAL(updateWasSuccessful()),
this, SLOT(updateWasSuccessful()));
+
+ connect(m_situareService, SIGNAL(updateWasSuccessful()),
+ this, SIGNAL(messageUpdatedToSituare()));
+
+ connect(this, SIGNAL(messageUpdatedToSituare()),
+ m_ui, SIGNAL(messageUpdatedToSituare()));
}
void SituareEngine::updateWasSuccessful()
* @param friendList List of User instances (friends)
*/
void friendsLocationsReady(QList<User *> &friendList);
+ void messageUpdatedToSituare();
/**
* @brief Signals when new user data is ready
network/networkreply.h
QT += network \
webkit
-DEFINES += QT_NO_DEBUG_OUTPUT
+#DEFINES += QT_NO_DEBUG_OUTPUT
maemo5 | simulator {
armel {
connect(m_mapView, SIGNAL(viewResized(QSize)),
m_userPanel, SLOT(screenResized(QSize)));
+
+ connect(this, SIGNAL(messageUpdatedToSituare()),
+ m_userPanel, SIGNAL(messageUpdatedToSituare()));
}
void MainWindow::buildWebView()
*/
void updateCredentials(const QUrl &url);
+ void messageUpdatedToSituare();
+
/**
* @brief MapView has finished zooming
*/
UpdateLocationDialog::~UpdateLocationDialog()
{
qDebug() << __PRETTY_FUNCTION__;
+
+ // emit m_textEdit sisältö userInfo luokalle talteen
}
void UpdateLocationDialog::setAddress(const QString &address)
void UpdateLocationDialog::sendUpdate()
{
- qDebug() << __PRETTY_FUNCTION__;
+ qDebug() << __PRETTY_FUNCTION__;
// coordinates for this call will be get from somewhere, map etc...
- emit statusUpdate(m_textEdit->toPlainText(), m_checkBox->isChecked());
+ emit statusUpdate(m_textEdit->toPlainText(), m_checkBox->isChecked());
- this->close();
+ //this->close();
}
*
* @param address Street address, result from SituareService's reverseGeo
*/
- void setAddress(const QString &address);
+ void setAddress(const QString &address);
private slots:
******************************************************************************/
signals:
+ void saveMessage(const QString &message);
/**
* @brief Signal Signal for requestLocationUpdate from SituareEngine via MainWindow class
******************************************************************************/
private:
+ //bool m_messageReceivedOnSituareServer; ///< Indicates when message is received on Situare server
QCheckBox *m_checkBox; ///< Pointer to CheckBox
QLabel *m_locationLabel; ///< Pointer to locationLabel
&updateLocationDialog, SLOT(setAddress(QString)));
connect(&updateLocationDialog, SIGNAL(statusUpdate(QString, bool)),
this, SIGNAL(statusUpdate(QString, bool)));
+ connect(this, SIGNAL(messageUpdatedToSituare()),
+ &updateLocationDialog, SLOT(close()));
updateLocationDialog.exec();
}
-
* @param publish Publish on Facebook
*/
void statusUpdate(const QString &status, const bool &publish);
+ void messageUpdatedToSituare();
/******************************************************************************
* DATA MEMBERS
connect(m_userInfo, SIGNAL(refreshUserData()),
this, SIGNAL(refreshUserData()));
+
+ connect(this, SIGNAL(messageUpdatedToSituare()),
+ m_userInfo, SIGNAL(messageUpdatedToSituare()));
}
void UserInfoPanel::userDataReceived(User *user)
* @param publish Publish on Facebook
*/
void statusUpdate(const QString &status, const bool &publish);
+ void messageUpdatedToSituare();
/*******************************************************************************
* DATA MEMBERS