00001 /* 00002 Situare - A location system for Facebook 00003 Copyright (C) 2010 Ixonos Plc. Authors: 00004 00005 Kaj Wallin - kaj.wallin@ixonos.com 00006 00007 Situare is free software; you can redistribute it and/or 00008 modify it under the terms of the GNU General Public License 00009 version 2 as published by the Free Software Foundation. 00010 00011 Situare is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with Situare; if not, write to the Free Software 00018 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 00019 USA. 00020 */ 00021 00022 #ifndef FRIENDLISTPANEL_H 00023 #define FRIENDLISTPANEL_H 00024 00025 #include <QtGui> 00026 #include "sidepanel.h" 00027 00028 class FriendListView; 00029 class User; 00030 class QLabel; 00031 class QWidget; 00032 00039 class FriendListPanel : public SidePanel 00040 { 00041 Q_OBJECT 00042 00043 public: 00049 FriendListPanel(QWidget *parent = 0); 00050 00051 /******************************************************************************* 00052 * MEMBER FUNCTIONS AND SLOTS 00053 ******************************************************************************/ 00054 public slots: 00060 void friendInfoReceived(QList<User *> &friendList); 00061 00062 private slots: 00066 void clearFriendListFilter(); 00067 00074 void showFriendsInList(const QList<QString> &userIDs); 00075 00076 /******************************************************************************* 00077 * SIGNALS 00078 ******************************************************************************/ 00079 signals: 00085 void findFriend(const QPointF &coordinates); 00086 00087 /******************************************************************************* 00088 * DATA MEMBERS 00089 ******************************************************************************/ 00090 private: 00091 QWidget *m_friendListHeaderWidget; 00092 QLabel *m_friendListLabel; 00093 QPushButton *m_clearFilterButton; 00094 FriendListView *m_friendListView; 00095 }; 00096 00097 #endif // FRIENDLISTPANEL_H