/**
* @brief Populates location list view.
*
- * @param result list of Location objects
+ * @param locations list of Location objects
*/
- void populateLocationListView(QList<Location> &locations);
+ void populateLocationListView(const QList<Location> &locations);
+
+ /**
+ * @brief Routes to selected location.
+ *
+ * Emits routeToLocation if location is selected from list.
+ */
+ void routeToSelectedLocation();
/*******************************************************************************
* SIGNALS
* @param swBound south-west bound GeoCoordinate
* @param neBound north-east bound GeoCoordinate
*/
- void locationItemClicked(GeoCoordinate &swBound, GeoCoordinate &neBound);
+ void locationItemClicked(const GeoCoordinate &swBound, const GeoCoordinate &neBound);
+
+ /**
+ * @brief Signal for routing to location.
+ *
+ * @param coordinates location's geo coordinates
+ */
+ void routeToLocation(const GeoCoordinate &coordinates);
/*******************************************************************************
* DATA MEMBERS
******************************************************************************/
private:
- QLabel *m_locationListLabel; ///< Location list label
- QWidget *m_locationListHeaderWidget; ///< Location list header widget
+ QLabel *m_locationListLabel; ///< Location list label
+
+ QPushButton *m_routeButton; ///< Route to location button
+
+ QWidget *m_locationListHeaderWidget; ///< Location list header widget
LocationListView *m_locationListView; ///< Location list view
};