Merge branch 'list_panel'
[situare] / src / ui / mainwindow.h
index 7c13fb4..dfa4e04 100644 (file)
@@ -64,6 +64,28 @@ public:
 /*******************************************************************************
  * MEMBER FUNCTIONS AND SLOTS
  ******************************************************************************/
+public:
+    /**
+    * @brief Set auto centering button enabled.
+    *
+    * @param enabled true if enabled, false otherwise
+    */
+    void setAutoCenteringButton(bool enabled);
+
+    /**
+    * @brief Notify for auto centering enabling.
+    *
+    * @param enabled true if enabled, false otherwise
+    */
+    void autoCenteringEnabled(bool enabled);
+
+    /**
+    * @brief Set GPS button enabled.
+    *
+    * @param enabled true if enabled, false otherwise
+    */
+    void setGPSButton(bool enabled);
+
 public slots:
     /**
     * @brief Slot for auto centering enabling.
@@ -72,6 +94,13 @@ public slots:
     */
     void autoCenteringToggled(bool checked);
 
+       /**
+    * @brief Slot for gps enabling.
+    *
+    * @param checked true if button state is checked, false otherwise
+    */
+    void gpsToggled(bool checked);
+
     /**
     * @brief Slot to intercept signal when user has pressed connect button from loginDialog
     *
@@ -86,6 +115,11 @@ public slots:
     */
     void loginFailed();
 
+       /**
+    * @brief Slot for map location change.
+    */
+    void mapLocationChanged();
+
     /**
     * @brief Public slot, which open settings dialog
     */
@@ -121,13 +155,6 @@ private:
 
 private slots:
     /**
-    * @brief Slot for gps enabling.
-    *
-    * @param checked true if button state is checked, false otherwise
-    */
-    void gpsActionToggled(bool checked);
-
-    /**
     * @brief Slot for gps timeout.
     *
     * Called when request timeout occurs.
@@ -163,7 +190,7 @@ signals:
     *
     * @param enabled true if map should auto center to gps location
     */
-    void enableAutoCentering(bool enabled);
+    void autoCentering(bool enabled);
 
     /**
     * @brief Signal for gps enabling.
@@ -172,6 +199,13 @@ signals:
     */
     void enableGPS(bool enabled);
 
+       /**
+    * @brief Signal for auto centering enabling.
+    *
+    * @param enabled if auto centering should be enabled
+    */
+    void enableAutoCentering(bool enabled);
+
     /**
     * @brief Signal for friend location ready.
     *
@@ -183,8 +217,9 @@ signals:
     * @brief Signal for gps position.
     *
     * @param position longitude and latitude values
+    * @param accuracy coordinate accuracy in metres
     */
-    void positionReceived(QPointF position);
+    void positionReceived(QPointF position, qreal accuracy);
 
     /**
     * @brief Signal for refreshing user data.