Merge branch 'new_panels' into locationlistview
[situare] / src / ui / friendlistpanel.h
index a3e6c6c..dc83e0b 100644 (file)
@@ -5,6 +5,7 @@
         Kaj Wallin - kaj.wallin@ixonos.com
         Henri Lampela - henri.lampela@ixonos.com
         Pekka Nissinen - pekka.nissinen@ixonos.com
+        Jussi Laitinen - jussi.laitinen@ixonos.com
 
     Situare is free software; you can redistribute it and/or
     modify it under the terms of the GNU General Public License
@@ -31,7 +32,7 @@ class QPushButton;
 
 class FriendListItemDelegate;
 class GeoCoordinate;
-class ListView;
+class FriendListView;
 class User;
 
 /**
@@ -40,6 +41,7 @@ class User;
  * @author Kaj Wallin - kaj.wallin (at) ixonos.com
  * @author Henri Lampela - henri.lampela (at) ixonos.com
  * @author Pekka Nissinen - pekka.nissinen (at) ixonos.com
+ * @author Jussi Laitinen - jussi.laitinen (at) ixonos.com
  */
 class FriendListPanel : public QWidget
 {
@@ -78,6 +80,13 @@ private slots:
     void clearFriendListFilter();
 
     /**
+    * @brief Routes to selected friend.
+    *
+    * Emits routeToFriend if friend is selected from list.
+    */
+    void routeToSelectedFriend();
+
+    /**
      * @brief Slot to show friends in list.
      *
      * Shows only friends that are on userIDs list.
@@ -96,6 +105,13 @@ signals:
      */
     void findFriend(const GeoCoordinate &coordinates);
 
+    /**
+    * @brief Signal for routing to friend.
+    *
+    * @param coordinates friend's geo coordinates
+    */
+    void routeToFriend(const GeoCoordinate &coordinates);
+
 /*******************************************************************************
  * DATA MEMBERS
  ******************************************************************************/
@@ -103,11 +119,11 @@ private:
     QLabel *m_friendListLabel;          ///< Friend list label
 
     QPushButton *m_clearFilterButton;   ///< Button to clear list filtering
+    QPushButton *m_routeButton;         ///< Button to route to friend
 
     QWidget *m_friendListHeaderWidget;  ///< Friend list header widget
 
-    FriendListItemDelegate *m_friendListItemDelegate;   ///< Friend list item delegate
-    ListView *m_friendListView;                         ///< Friend list view
+    FriendListView *m_friendListView;   ///< Friend list view
 };
 
 #endif // FRIENDLISTPANEL_H