summaryrefslogtreecommitdiff
path: root/user.cxx
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-10-01 06:49:48 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-10-01 06:49:48 +0800
commit117a8cf40b39d36fe2d5794c20fb6600e92f52e9 (patch)
tree9d46a4268c74ff1bfe1489064b2744348c98fba1 /user.cxx
parent8182f9b0bdf1c8ec53d6b0630bfd3be69d33cfba (diff)
parentbd0e74d11e666126c97c34c5b508dbe811b128c3 (diff)
Merge branch 'master' into cmake
Diffstat (limited to 'user.cxx')
-rw-r--r--user.cxx46
1 files changed, 23 insertions, 23 deletions
diff --git a/user.cxx b/user.cxx
index 1a50046..2f031e8 100644
--- a/user.cxx
+++ b/user.cxx
@@ -172,7 +172,7 @@ namespace RTClient {
}
}
- void User::setLang(rtclient_lang lang)
+ void User::setLang(rtclient_user_lang lang)
{
if (m_lang != lang) {
m_lang = lang;
@@ -180,11 +180,11 @@ namespace RTClient {
}
}
- void User::setTimeZone(rtclient_timezone timeZone)
+ void User::setTimeZone(rtclient_user_timezone timezone)
{
- if (m_timeZone != timeZone) {
- m_timeZone = timeZone;
- emit timeZoneChanged();
+ if (m_timezone != timezone) {
+ m_timezone = timezone;
+ emit timezoneChanged();
}
}
@@ -211,16 +211,16 @@ namespace RTClient {
m_id = user->id;
emit idChanged();
}
- if (user->emailaddress) {
- m_emailAddress = user->emailaddress;
+ if (user->email_address) {
+ m_emailAddress = user->email_address;
emit emailAddressChanged();
}
- if (user->realname) {
- m_realName = user->realname;
+ if (user->real_name) {
+ m_realName = user->real_name;
emit realNameChanged();
}
- if (user->nickname) {
- m_nickName = user->nickname;
+ if (user->nick_name) {
+ m_nickName = user->nick_name;
emit nickNameChanged();
}
if (user->organization) {
@@ -251,20 +251,20 @@ namespace RTClient {
m_country = user->country;
emit countryChanged();
}
- if (user->homephone) {
- m_homePhone = user->homephone;
+ if (user->home_phone) {
+ m_homePhone = user->home_phone;
emit homePhoneChanged();
}
- if (user->workphone) {
- m_workPhone = user->workphone;
+ if (user->work_phone) {
+ m_workPhone = user->work_phone;
emit workPhoneChanged();
}
- if (user->mobilephone) {
- m_mobilePhone = user->mobilephone;
+ if (user->mobile_phone) {
+ m_mobilePhone = user->mobile_phone;
emit mobilePhoneChanged();
}
- if (user->pagerphone) {
- m_pagerPhone = user->pagerphone;
+ if (user->pager_phone) {
+ m_pagerPhone = user->pager_phone;
emit pagerPhoneChanged();
}
if (user->gecos) {
@@ -272,8 +272,8 @@ namespace RTClient {
emit gecosChanged();
}
if (user->timezone) {
- m_timeZone = user->timezone;
- emit timeZoneChanged();
+ m_timezone = user->timezone;
+ emit timezoneChanged();
}
if (user->lang) {
m_lang = user->lang;
@@ -310,8 +310,8 @@ namespace RTClient {
m_comments = "";
m_signature = "";
m_gecos = "";
- m_lang = RTCLIENT_LANG_NONE;
- m_timeZone = RTCLIENT_TIMEZONE_NONE;
+ m_lang = RTCLIENT_USER_LANG_NONE;
+ m_timezone = RTCLIENT_USER_TIMEZONE_NONE;
m_privileged = false;
m_disabled = true;
}