summaryrefslogtreecommitdiff
path: root/user.cxx
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-02-02 10:07:59 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-02-02 10:10:15 +0800
commit3d0ea61c7cf64f24db4af7cb8b82739673b06cdf (patch)
treed87f91b9d6c918d8dca668c5bab322cbef296b8b /user.cxx
parentecceeae78b0de144e22c1348b9580aaf8a9e1a25 (diff)
Reindent
Diffstat (limited to 'user.cxx')
-rw-r--r--user.cxx302
1 files changed, 150 insertions, 152 deletions
diff --git a/user.cxx b/user.cxx
index 8a54e5f..59229da 100644
--- a/user.cxx
+++ b/user.cxx
@@ -4,206 +4,203 @@
namespace RTClient {
- void User::setId(unsigned int id)
- {
- if (m_id != id) {
- m_id = id;
- emit idChanged();
- }
+void User::setId(unsigned int id)
+{
+ if (m_id != id) {
+ m_id = id;
+ emit idChanged();
}
+}
- void User::setName(QString const& name)
- {
- if (m_name != name) {
- m_name = name;
- emit nameChanged();
- }
+void User::setName(QString const& name)
+{
+ if (m_name != name) {
+ m_name = name;
+ emit nameChanged();
}
+}
- void User::setPassword(QString const& password)
- {
- if (m_password != password) {
- m_password = password;
- emit passwordChanged();
- }
+void User::setPassword(QString const& password)
+{
+ if (m_password != password) {
+ m_password = password;
+ emit passwordChanged();
}
+}
- void User::setEmailAddress(QString const& emailAddress)
- {
- if (m_emailAddress != emailAddress) {
- m_emailAddress = emailAddress;
- emit emailAddressChanged();
- }
+void User::setEmailAddress(QString const& emailAddress)
+{
+ if (m_emailAddress != emailAddress) {
+ m_emailAddress = emailAddress;
+ emit emailAddressChanged();
}
+}
- void User::setRealName(QString const& realName)
- {
- if (m_realName != realName) {
- m_realName = realName;
- emit realNameChanged();
- }
+void User::setRealName(QString const& realName)
+{
+ if (m_realName != realName) {
+ m_realName = realName;
+ emit realNameChanged();
}
+}
- void User::setNickName(QString const& nickName)
- {
- if (m_nickName != nickName) {
- m_nickName = nickName;
- emit nickNameChanged();
- }
- }
-
- void User::setOrganization(QString const& organization)
- {
- if (m_organization != organization) {
- m_organization = organization;
- emit organizationChanged();
- }
+void User::setNickName(QString const& nickName)
+{
+ if (m_nickName != nickName) {
+ m_nickName = nickName;
+ emit nickNameChanged();
}
+}
- void User::setAddress1(QString const& address1)
- {
- if (m_address1 != address1) {
- m_address1 = address1;
- emit address1Changed();
- }
+void User::setOrganization(QString const& organization)
+{
+ if (m_organization != organization) {
+ m_organization = organization;
+ emit organizationChanged();
}
+}
- void User::setAddress2(QString const& address2)
- {
- if (m_address2 != address2) {
- m_address2 = address2;
- emit address2Changed();
- }
+void User::setAddress1(QString const& address1)
+{
+ if (m_address1 != address1) {
+ m_address1 = address1;
+ emit address1Changed();
}
+}
- void User::setCity(QString const& city)
- {
- if (m_city != city) {
- m_city = city;
- emit cityChanged();
- }
+void User::setAddress2(QString const& address2)
+{
+ if (m_address2 != address2) {
+ m_address2 = address2;
+ emit address2Changed();
}
+}
- void User::setState(QString const& state)
- {
- if (m_state != state) {
- m_state = state;
- emit stateChanged();
- }
+void User::setCity(QString const& city)
+{
+ if (m_city != city) {
+ m_city = city;
+ emit cityChanged();
}
+}
- void User::setZip(QString const& zip)
- {
- if (m_zip != zip) {
- m_zip = zip;
- emit zipChanged();
- }
+void User::setState(QString const& state)
+{
+ if (m_state != state) {
+ m_state = state;
+ emit stateChanged();
}
+}
- void User::setCountry(QString const& country)
- {
- if (m_country != country) {
- m_country = country;
- emit countryChanged();
- }
+void User::setZip(QString const& zip)
+{
+ if (m_zip != zip) {
+ m_zip = zip;
+ emit zipChanged();
}
+}
- void User::setHomePhone(QString const& homePhone)
- {
- if (m_homePhone != homePhone) {
- m_homePhone = homePhone;
- emit homePhoneChanged();
- }
+void User::setCountry(QString const& country)
+{
+ if (m_country != country) {
+ m_country = country;
+ emit countryChanged();
}
+}
- void User::setWorkPhone(QString const& workPhone)
- {
- if (m_workPhone != workPhone) {
- m_workPhone = workPhone;
- emit workPhoneChanged();
- }
+void User::setHomePhone(QString const& homePhone)
+{
+ if (m_homePhone != homePhone) {
+ m_homePhone = homePhone;
+ emit homePhoneChanged();
}
+}
- void User::setMobilePhone(QString const& mobilePhone)
- {
- if (m_mobilePhone != mobilePhone) {
- m_mobilePhone = mobilePhone;
- emit mobilePhoneChanged();
- }
+void User::setWorkPhone(QString const& workPhone)
+{
+ if (m_workPhone != workPhone) {
+ m_workPhone = workPhone;
+ emit workPhoneChanged();
}
+}
- void User::setPagerPhone(QString const& pagerPhone)
- {
- if (m_pagerPhone != pagerPhone) {
- m_pagerPhone = pagerPhone;
- emit pagerPhoneChanged();
- }
+void User::setMobilePhone(QString const& mobilePhone)
+{
+ if (m_mobilePhone != mobilePhone) {
+ m_mobilePhone = mobilePhone;
+ emit mobilePhoneChanged();
}
+}
- void User::setContactInfo(QString const& contactInfo)
- {
- if (m_contactInfo != contactInfo) {
- m_contactInfo = contactInfo;
- emit contactInfoChanged();
- }
+void User::setPagerPhone(QString const& pagerPhone)
+{
+ if (m_pagerPhone != pagerPhone) {
+ m_pagerPhone = pagerPhone;
+ emit pagerPhoneChanged();
}
+}
- void User::setComments(QString const& comments)
- {
- if (m_comments != comments) {
- m_comments = comments;
- emit commentsChanged();
- }
+void User::setContactInfo(QString const& contactInfo)
+{
+ if (m_contactInfo != contactInfo) {
+ m_contactInfo = contactInfo;
+ emit contactInfoChanged();
}
+}
- void User::setSignature(QString const& signature)
- {
- if (m_signature != signature) {
- m_signature = signature;
- emit signatureChanged();
- }
+void User::setComments(QString const& comments)
+{
+ if (m_comments != comments) {
+ m_comments = comments;
+ emit commentsChanged();
}
+}
- void User::setGecos(QString const& gecos)
- {
- if (m_gecos != gecos) {
- m_gecos = gecos;
- emit gecosChanged();
- }
+void User::setSignature(QString const& signature)
+{
+ if (m_signature != signature) {
+ m_signature = signature;
+ emit signatureChanged();
}
+}
- void User::setLang(rtclient_user_lang lang)
- {
- if (m_lang != lang) {
- m_lang = lang;
- emit langChanged();
- }
+void User::setGecos(QString const& gecos)
+{
+ if (m_gecos != gecos) {
+ m_gecos = gecos;
+ emit gecosChanged();
}
+}
- void User::setTimeZone(rtclient_user_timezone timezone)
- {
- if (m_timezone != timezone) {
- m_timezone = timezone;
- emit timezoneChanged();
- }
+void User::setLang(rtclient_user_lang lang)
+{
+ if (m_lang != lang) {
+ m_lang = lang;
+ emit langChanged();
}
+}
- void User::setPrivileged(bool privileged)
- {
- if (m_privileged != privileged) {
- m_privileged = privileged;
- emit privilegedChanged();
- }
+void User::setTimeZone(rtclient_user_timezone timezone)
+{
+ if (m_timezone != timezone) {
+ m_timezone = timezone;
+ emit timezoneChanged();
}
+}
- void User::setDisabled(bool disabled)
- {
- if (m_disabled != disabled) {
- m_disabled = disabled;
- emit disabledChanged();
- }
+void User::setPrivileged(bool privileged)
+{
+ if (m_privileged != privileged) {
+ m_privileged = privileged;
+ emit privilegedChanged();
}
+}
+void User::setDisabled(bool disabled)
+{
+ if (m_disabled != disabled) {
+ m_disabled = disabled;
+ emit disabledChanged();
void User::update(rtclient_user* user)
{
if (user) {
@@ -316,5 +313,6 @@ namespace RTClient {
m_disabled = true;
}
}
+}
}