/*******************************************************************************
* 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.
*/
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
*
*/
void loginFailed();
+ /**
+ * @brief Slot for map location change.
+ */
+ void mapLocationChanged();
+
/**
* @brief Public slot, which open settings dialog
*/
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.
*
* @param enabled true if map should auto center to gps location
*/
- void enableAutoCentering(bool enabled);
+ void autoCentering(bool enabled);
/**
* @brief Signal for gps enabling.
*/
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.
*
* @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.