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
8 Situare is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License
10 version 2 as published by the Free Software Foundation.
12 Situare is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with Situare; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
23 #ifndef FRIENDLISTPANEL_H
24 #define FRIENDLISTPANEL_H
26 #include "sidepanel.h"
32 class FriendListItemDelegate;
38 * @brief Class for sliding friends list panel
40 * @author Kaj Wallin - kaj.wallin (at) ixonos.com
41 * @class FriendListPanel friendlistpanel.h "ui/friendlistpanel.h"
43 class FriendListPanel : public SidePanel
49 * @brief Default constructor
53 FriendListPanel(QWidget *parent = 0);
55 /*******************************************************************************
56 * MEMBER FUNCTIONS AND SLOTS
57 ******************************************************************************/
60 * @brief Slot to update friend item's image
64 void friendImageReady(User *user);
67 * @brief Slot to refresh friends list
71 void friendInfoReceived(QList<User *> &friendList);
75 * @brief Slot to clear friend list filter.
77 void clearFriendListFilter();
80 * @brief Slot to show friends in list.
82 * Shows only friends that are on userIDs list.
83 * @param userIDs list of user ID's
85 void showFriendsInList(const QList<QString> &userIDs);
87 /*******************************************************************************
89 ******************************************************************************/
92 * @brief Signal for friend finding.
94 * @param coordinates Target coordinate
96 void findFriend(const GeoCoordinate &coordinates);
98 /*******************************************************************************
100 ******************************************************************************/
102 QWidget *m_friendListHeaderWidget; ///< Friend list header widget
103 QLabel *m_friendListLabel; ///< Friend list label
104 QPushButton *m_clearFilterButton; ///< Button to clear list filtering
105 ListView *m_friendListView; ///< Friend list view
106 FriendListItemDelegate *m_friendListItemDelegate; ///< Friend list item delegate
109 #endif // FRIENDLISTPANEL_H