Added unit test for TagsDialog.
[situare] / src / user / user.h
index 0b0ca2e..cfb45f1 100644 (file)
@@ -45,7 +45,7 @@ public:
     User(const QString &address, const GeoCoordinate &coordinates, const QString &name,
          const QString &note, const QUrl &imageUrl, const QString &timestamp,
          const bool &type, const QString &userId, const QString &units = 0,
-         const double &value = 0, const QStringList &tags = QStringList());
+         const double &value = 0);
 
     /**
     * @brief Default constructor, initializes member data as NULL/0
@@ -112,7 +112,7 @@ public:
     *
     * @param tags user's tags
     */
-    void setTags(const QStringList &tags);
+    void setTags(const QHash<QString, QString> &tags);
 
     /**
     * @brief Sets user's tags.
@@ -190,7 +190,7 @@ public:
     *
     * @return QStringList list of tags
     */
-    const QStringList &tags() const;
+    const QHash<QString, QString> &tags() const;
 
     /**
     * @brief Get timestamp of last status update
@@ -223,7 +223,7 @@ private:
     QString m_name; ///< placeholder for name
     QString m_note; ///< placeholder for note
     QUrl m_profileImageUrl; ///< placeholder for image url
-    QStringList m_tags;     ///< placeholder for tags
+    QHash<QString, QString> m_tags;     ///< placeholder for tags
     QString m_timestamp; ///< placeholer for timestamp
     bool m_type; ///< placeholder for user type
     QString m_units; ///< placeholder for distance unit type