Added unit tests.
[situare] / src / ui / userinfopanel.h
index 2d10d6d..b26a94e 100644 (file)
@@ -53,22 +53,48 @@ public:
  ******************************************************************************/
 public slots:
     /**
+    * @brief Populates popular tags list
+    *
+    * @param popularTags list of popular tags
+    */
+    void populatePopularTags(QHash<QString, QString> &popularTags);
+
+    /**
+     * @brief show / hide user information
+     *
+     * @param show true if userinfo should be shown
+     */
+    void showUserInfo(bool show);
+
+    /**
      * @brief Slot to capture returning user data from situareService
      *
      * @param user
      */
     void userDataReceived(User *user);
 
+private slots:
+    /**
+    * @brief Sets user's image.
+    *
+    * @param id image ID
+    * @param image image pixmap
+    */
+    void setImage(const QString &id, const QPixmap &image);
+
+    void showTagsDialog();
+
+
 /*******************************************************************************
  * SIGNALS
  ******************************************************************************/
 signals:
     /**
-     * @brief Signal for finding user.
-     *
-     * @param coordinates user geo coordinates
-     */
-    void findUser(const GeoCoordinate &coordinates);
+    * @brief Signal for adding tags.
+    *
+    * @param tags tags to add
+    */
+    void addTags(const QStringList &tags);
 
     /**
      * @brief Signal for collapse user info
@@ -76,6 +102,13 @@ signals:
     void collapse();
 
     /**
+     * @brief Signal for finding user.
+     *
+     * @param coordinates user geo coordinates
+     */
+    void findUser(const GeoCoordinate &coordinates);
+
+    /**
      * @brief Signal that used to inform user that his message/location update tp Situare server
      *        was failed.
      *        This signal is originally sended from UserInfo
@@ -91,6 +124,18 @@ signals:
     void refreshUserData();
 
     /**
+    * @brief Signal for removing tags.
+    *
+    * @param tags tags to add
+    */
+    void removeTags(const QStringList &tags);
+
+    /**
+    * @brief Signal for requesting popular tags
+    */
+    void requestPopularTags();
+
+    /**
      * @brief Signal for requesting reverseGeo from SituareEngine
      */
     void requestReverseGeo();
@@ -115,8 +160,6 @@ signals:
      */
     void clearUpdateLocationDialogData();
 
-private slots:
-    void showTagsDialog();
 
 /*******************************************************************************
  * DATA MEMBERS