diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-20 10:40:47 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-20 10:40:47 +0800 |
commit | c45c7b8eae9ade41b6c9bfa02a4b7d6ff329e860 (patch) | |
tree | 6a605813698bb8f9055ae59b20607ef9f3330042 /qrtclient/user.hxx | |
parent | 323c8d0d1d39032f4a5716708279134a65ccd3f2 (diff) |
User ID type is changed to unsigned integer
Diffstat (limited to 'qrtclient/user.hxx')
-rw-r--r-- | qrtclient/user.hxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/qrtclient/user.hxx b/qrtclient/user.hxx index 8b8f911..0d2b6ac 100644 --- a/qrtclient/user.hxx +++ b/qrtclient/user.hxx @@ -11,7 +11,7 @@ namespace RTClient { class User : public QObject { Q_OBJECT - Q_PROPERTY(QString id READ id WRITE setId NOTIFY idChanged) + Q_PROPERTY(unsigned int id READ id WRITE setId NOTIFY idChanged) Q_PROPERTY(QString name READ name WRITE setName NOTIFY nameChanged) Q_PROPERTY(QString password READ password WRITE setPassword NOTIFY passwordChanged) Q_PROPERTY(QString emailAddress READ emailAddress WRITE setEmailAddress NOTIFY emailAddressChanged) @@ -40,7 +40,7 @@ namespace RTClient { public: explicit User(QObject* parent = nullptr) : QObject{parent} - , m_id{""} + , m_id{0} , m_name{""} , m_password{""} , m_emailAddress{""} @@ -68,7 +68,7 @@ namespace RTClient { {} ~User() {} - QString const& id() const { return m_id; } + unsigned int id() const { return m_id; } QString const& name() const { return m_name; } QString const& password() const { return m_password; } QString const& emailAddress() const { return m_emailAddress; } @@ -94,7 +94,7 @@ namespace RTClient { bool privileged() const { return m_privileged; } bool disabled() const { return m_disabled; } - void setId(QString const& id); + void setId(unsigned int id); void setName(QString const& name); void setPassword(QString const& password); void setEmailAddress(QString const& emailAddress); @@ -151,7 +151,7 @@ namespace RTClient { void update(rtclient_user* user); private: - QString m_id; + unsigned int m_id; QString m_name; QString m_password; QString m_emailAddress; |