Get user tags from server instead of temp db
[situare] / src / ui / userinfopanel.h
index 5aee4c8..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,6 +73,25 @@ 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
  ******************************************************************************/
@@ -112,42 +138,14 @@ signals:
     void removeTags(const QStringList &tags);
 
     /**
-     * @brief Signal for requesting reverseGeo from SituareEngine
-     */
-    void requestReverseGeo();
-
-    /**
-     * @brief Signals, when address data is ready
-     *
-     * @param address Street address
-     */
-    void reverseGeoReady(const QString &address);
-
-    /**
-     * @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:
-    /**
-    * @brief Sets user's image.
-    *
-    * @param id image ID
-    * @param image image pixmap
+    * @brief Signal for requesting popular tags
     */
-    void setImage(const QString &id, const QPixmap &image);
-
-    void showTagsDialog();
-
+    void requestPopularTags();
 
+    /**
+      * @brief Notify that update location message button was clicked
+      */
+    void updateLocationMessageButtonClicked();
 
 /*******************************************************************************
  * DATA MEMBERS