Get user tags from server instead of temp db
[situare] / src / ui / userinfopanel.h
index fe752e1..5d5253e 100644 (file)
@@ -53,6 +53,13 @@ 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
@@ -66,11 +73,37 @@ public slots:
      */
     void userDataReceived(User *user);
 
+    /**
+    * @brief Slot to populate user tags
+    *
+    * @param userTags list of user tags
+    */
+    void userTagsReceived(QHash<QString, QString> &userTags);
+
+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 adding tags.
+    *
+    * @param tags tags to add
+    */
+    void addTags(const QStringList &tags);
+
+    /**
      * @brief Signal for collapse user info
      */
     void collapse();
@@ -98,32 +131,21 @@ signals:
     void refreshUserData();
 
     /**
-     * @brief Signal for requesting reverseGeo from SituareEngine
-     */
-    void requestReverseGeo();
+    * @brief Signal for removing tags.
+    *
+    * @param tags tags to add
+    */
+    void removeTags(const QStringList &tags);
 
     /**
-     * @brief Signals, when address data is ready
-     *
-     * @param address Street address
-     */
-    void reverseGeoReady(const QString &address);
+    * @brief Signal for requesting popular tags
+    */
+    void requestPopularTags();
 
     /**
-     * @brief Signal Signal for requestLocationUpdate from SituareEngine via MainWindow class
-     *
-     * @param status Status message
-     * @param publish Publish on Facebook
-     */
-    void statusUpdate(const QString &status, const bool &publish);
-
-    /**
-     * @brief Signals when updateLocationDialog's data must be cleared
-     */
-    void clearUpdateLocationDialogData();
-
-private slots:
-    void showTagsDialog();
+      * @brief Notify that update location message button was clicked
+      */
+    void updateLocationMessageButtonClicked();
 
 /*******************************************************************************
  * DATA MEMBERS