Added routing feature to friend and location list.
[situare] / src / ui / routingpanel.h
index 1877c6e..0857a23 100644 (file)
@@ -57,6 +57,13 @@ private slots:
     */
     void populateLocationListView(const QList<Location> &locations);
 
+    /**
+    * @brief Routes to selected location.
+    *
+    * Emits routeToLocation if location is selected from list.
+    */
+    void routeToSelectedLocation();
+
 /*******************************************************************************
  * SIGNALS
  ******************************************************************************/
@@ -69,12 +76,22 @@ signals:
     */
     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
 };