#include <QAbstractKineticScroller>\r
#endif // Q_WS_MAEMO_5\r
\r
+class UpdateLocation;\r
+\r
#include "texteditautoresizer.h"\r
\r
class QCheckBox;\r
/**\r
* @brief Default constructor\r
*\r
- * @param userMessage update location dialog message\r
- * @param publishOnFacebook update location dialog Facebook publish policity\r
+ * Is deleted automatically when closed.\r
+ *\r
+ * @param controller Controller for location update\r
* @param parent\r
*/\r
- UpdateLocationDialog(const QString &userMessage = "", bool publishOnFacebook = false,\r
- QWidget *parent = 0);\r
+ UpdateLocationDialog(UpdateLocation *controller, QWidget *parent = 0);\r
\r
+ /**\r
+ * @brief Destructor\r
+ *\r
+ * Does nothing.\r
+ */\r
~UpdateLocationDialog();\r
\r
/*******************************************************************************\r
private slots:\r
/**\r
* @brief Used to connect send button\r
- *\r
*/\r
void sendUpdate();\r
\r
/**\r
* @brief Used to get changes in messagetext\r
- *\r
*/\r
void textChanged();\r
\r
/**\r
* @brief Used to clear default messagetext\r
- *\r
*/\r
void textSelectionChanged();\r
\r
/*******************************************************************************\r
- * SIGNALS\r
- ******************************************************************************/\r
-signals:\r
- /**\r
- * @brief Routing signal for requestLocationUpdate to SituareEngine via MainWindow class\r
- *\r
- * @param status Status message\r
- * @param publish Publish on Facebook\r
- */\r
- void statusUpdate(const QString &status, const bool &publish);\r
-\r
-/*******************************************************************************\r
* DATA MEMBERS\r
******************************************************************************/\r
private:\r
QLabel *m_charCountLabel; ///< Pointer to character counter label\r
QLabel *m_locationLabel; ///< Pointer to locationLabel\r
QTextEdit *m_textEdit; ///< Pointer to TextEdit\r
+\r
+ UpdateLocation *m_controller; ///< Controller for location update dialog\r
};\r
\r
#endif // UPDATELOCATIONDIALOG_H\r