Merge branch 'master' into friendlist
[situare] / src / ui / friendlistpanel.h
index 53f3894..29e01ba 100644 (file)
@@ -65,10 +65,29 @@ public slots:
     */
     void reDrawFriendsPanel(int width, int height);
 
+private slots:
+    /**
+    * @brief Slot to clear friend list filter.
+    */
+    void clearFriendListFilter();
+
+    /**
+    * @brief Slot to show friends in list.
+    *
+    * Shows only friends that are on userIDs list.
+    * @param userIDs list of user ID's
+    */
+    void showFriendsInList(const QList<QString> &userIDs);
+
 /*******************************************************************************
  * SIGNALS
  ******************************************************************************/
 signals:
+    /**
+    * @brief Signal for friend finding.
+    *
+    * @param coordinates longitude and latitude values
+    */
     void findFriend(const QPointF &coordinates);
 
 /*******************************************************************************
@@ -76,14 +95,15 @@ signals:
  ******************************************************************************/
 private:
     FriendListView *m_friendListView; ///< Friend list view
-    QVBoxLayout *m_friendsPanelVBox; ///< Vertical layout inside the panel
     PanelSliderBar *m_friendsPanelSlidingBar; ///< Widget for sidebar tab item
-
-    QStateMachine *m_friendsPanelStateMachine; ///< State machine for sliding the panel
+    QPushButton *m_clearFilterButton;   ///< Button to clear list filtering
     QState *m_friendsPanelStateClosed; ///< State of the closed panel
+    QStateMachine *m_friendsPanelStateMachine; ///< State machine for sliding the panel
     QState *m_friendsPanelStateOpened; ///< State of the opened panel
     QSignalTransition *m_friendsPanelTransitionClose; ///< Transition signal for closing the panel
     QSignalTransition *m_friendsPanelTransitionOpen; ///< Transition signal for opening the panel
+    QVBoxLayout *m_friendsPanelVBox; ///< Vertical layout inside the panel
+    QWidget *m_panelBase; ///< Widget for panel base
 };
 
 #endif // FRIENDLISTPANEL_H