Moved location update logic to new class called UpdateLocation.
[situare] / src / ui / updatelocation / updatelocationdialog.h
index 2731061..4bb2987 100644 (file)
@@ -29,6 +29,8 @@
 #include <QAbstractKineticScroller>\r
 #endif // Q_WS_MAEMO_5\r
 \r
+class UpdateLocation;\r
+\r
 #include "texteditautoresizer.h"\r
 \r
 class QCheckBox;\r
@@ -53,13 +55,18 @@ public:
     /**\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
@@ -76,35 +83,20 @@ public slots:
 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
@@ -112,6 +104,8 @@ private:
     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