Added MeetPeoplePanel class.
[situare] / src / ui / meetpeoplepanel.h
1 #ifndef MEETPEOPLEPANEL_H
2 #define MEETPEOPLEPANEL_H
3
4 #include "panelbase.h"
5
6 class FriendListView;
7 class ImageButton;
8 class User;
9
10 class MeetPeoplePanel : public PanelBase
11 {
12     Q_OBJECT
13
14 public:
15     /**
16      * @brief Default constructor
17      *
18      * @param parent
19      */
20     MeetPeoplePanel(QWidget *parent = 0);
21
22 private slots:
23     /**
24      * @brief Slot to update friend item's image
25      *
26      * @param user Friend
27      */
28     void friendImageReady(User *user);
29
30     /**
31     * @brief Populates nearby friends list view.
32     *
33     * @param nearbyFriendList list of nearby friends
34     */
35     void populateNearbyFriendListView(QList<User *> &nearbyFriendList);
36
37     /**
38     * @brief Sets chat button disabled.
39     *
40     * Disabled if there isn't any list item selected.
41     */
42     void setChatButtonDisabled();
43
44 private:
45     ImageButton *m_chatButton;              ///< Chat button
46
47     FriendListView *m_nearbyFriendListView; ///< Nearby friend list view
48 };
49
50 #endif // MEETPEOPLEPANEL_H