Added unit test for TagsDialog.
[situare] / src / ui / userinfo.h
index 4b9e3eb..8d48f7b 100644 (file)
@@ -119,7 +119,7 @@ public:
     *
     * @param tags list of tags
     */
-    void setTags(const QStringList &tags);
+    void setTags(const QHash<QString, QString> &tags);
 
     /**
      * @brief Sets the time of updated message
@@ -206,6 +206,13 @@ private slots:
 ******************************************************************************/
 signals:
     /**
+    * @brief Signal for adding tags.
+    *
+    * @param tags tags to add
+    */
+    void addTags(const QStringList &tags);
+
+    /**
      * @brief Signal for finding user.
      *
      * @param coordinates user geo coordinates
@@ -227,6 +234,13 @@ signals:
     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
@@ -264,6 +278,9 @@ private:
     QPixmap m_backgroundBottomImage;        ///< Bottom background image
     QPixmap m_backgroundMiddleImage;        ///< Middle background image
     QPixmap m_backgroundTopImage;           ///< Top background image
+    QPixmap m_backgroundBottomSelectedImage;   ///< Selected bottom background image
+    QPixmap m_backgroundMiddleSelectedImage;   ///< Selected middle background image
+    QPixmap m_backgroundTopSelectedImage;      ///< Selected top background image
 
     QPoint m_mousePosition;                 ///< Current mouse press position
 
@@ -272,7 +289,7 @@ private:
     QString m_messageText;                  ///< User's message
     QString m_userName;                     ///< User's name
 
-    QStringList m_userTags;                 ///< User's tags
+    QHash<QString, QString> m_userTags;                 ///< User's tags
 
     GeoCoordinate m_coordinates;            ///< User current coordinates
     ImageButton *m_avatar;                  ///< User find button