Added routing feature to friend and location list.
[situare] / src / ui / routingpanel.h
index 66bbcfa..0857a23 100644 (file)
@@ -53,9 +53,16 @@ private slots:
     /**
     * @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
@@ -67,14 +74,24 @@ 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
 };