2 Situare - A location system for Facebook
3 Copyright (C) 2010 Ixonos Plc. Authors:
5 Kaj Wallin - kaj.wallin@ixonos.com
6 Henri Lampela - henri.lampela@ixonos.com
7 Pekka Nissinen - pekka.nissinen@ixonos.com
8 Jussi Laitinen - jussi.laitinen@ixonos.com
10 Situare is free software; you can redistribute it and/or
11 modify it under the terms of the GNU General Public License
12 version 2 as published by the Free Software Foundation.
14 Situare is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with Situare; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
25 #ifndef FRIENDLISTPANEL_H
26 #define FRIENDLISTPANEL_H
33 class FriendListItemDelegate;
39 * @brief Class for sliding friends list panel
41 * @author Kaj Wallin - kaj.wallin (at) ixonos.com
42 * @author Henri Lampela - henri.lampela (at) ixonos.com
43 * @author Pekka Nissinen - pekka.nissinen (at) ixonos.com
44 * @author Jussi Laitinen - jussi.laitinen (at) ixonos.com
46 class FriendListPanel : public QWidget
52 * @brief Default constructor
56 FriendListPanel(QWidget *parent = 0);
58 /*******************************************************************************
59 * MEMBER FUNCTIONS AND SLOTS
60 ******************************************************************************/
63 * @brief Slot to update friend item's image
67 void friendImageReady(User *user);
70 * @brief Slot to refresh friends list
74 void friendInfoReceived(QList<User *> &friendList);
78 * @brief Slot to clear friend list filter.
80 void clearFriendListFilter();
83 * @brief Routes to selected friend.
85 * Emits routeToFriend if friend is selected from list.
87 void routeToSelectedFriend();
90 * @brief Slot to show friends in list.
92 * Shows only friends that are on userIDs list.
93 * @param userIDs list of user ID's
95 void showFriendsInList(const QList<QString> &userIDs);
97 /*******************************************************************************
99 ******************************************************************************/
102 * @brief Signal for friend finding.
104 * @param coordinates Target coordinate
106 void findFriend(const GeoCoordinate &coordinates);
109 * @brief Signal for routing to friend.
111 * @param coordinates friend's geo coordinates
113 void routeToFriend(const GeoCoordinate &coordinates);
115 /*******************************************************************************
117 ******************************************************************************/
119 QWidget *m_friendListHeaderWidget; ///< Friend list header widget
121 QLabel *m_friendListLabel; ///< Friend list label
123 QPushButton *m_clearFilterButton; ///< Button to clear list filtering
124 QPushButton *m_routeButton; ///< Button to route to friend
126 FriendListView *m_friendListView; ///< Friend list view
129 #endif // FRIENDLISTPANEL_H