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
class FriendListItemDelegate;
class GeoCoordinate;
-class ListView;
+class FriendListView;
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
{
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.
*/
void findFriend(const GeoCoordinate &coordinates);
+ /**
+ * @brief Signal for routing to friend.
+ *
+ * @param coordinates friend's geo coordinates
+ */
+ void routeToFriend(const GeoCoordinate &coordinates);
+
/*******************************************************************************
* DATA MEMBERS
******************************************************************************/
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