summaryrefslogtreecommitdiff
path: root/client.cxx
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-17 21:20:34 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-17 21:20:34 +0800
commit97ea7f4d59f454a7a9b44a44b2513a4a3138c57c (patch)
tree9c95775d1d7f55206b4e0d5c51bddb16a960ca9a /client.cxx
parent54ea1894dcfaed86478bab8d00385ae7b5cb2f03 (diff)
Reorder parameters according to the most commonly used ones
Diffstat (limited to 'client.cxx')
-rw-r--r--client.cxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/client.cxx b/client.cxx
index b4c9b97..f462475 100644
--- a/client.cxx
+++ b/client.cxx
@@ -17,18 +17,10 @@ namespace RTClient {
}
void Client::userNew(QString const& name
+ , QString const& password
, QString const& emailAddress
, QString const& realName
, QString const& nickName
- , QString const& gecos
- , int lang
- , int timeZone
- , QString const& contactInfo
- , bool enabled
- , bool privileged
- , QString const& password
- , QString const& comments
- , QString const& signature
, QString const& organization
, QString const& address1
, QString const& address2
@@ -39,7 +31,15 @@ namespace RTClient {
, QString const& homePhone
, QString const& workPhone
, QString const& mobilePhone
- , QString const& pagerPhone)
+ , QString const& pagerPhone
+ , QString const& contactInfo
+ , QString const& comments
+ , QString const& signature
+ , QString const& gecos
+ , int lang
+ , int timeZone
+ , bool disabled
+ , bool privileged)
{
rtclient_user_new(name.toLatin1().constData()
, emailAddress.toLatin1().constData()
@@ -49,7 +49,7 @@ namespace RTClient {
, static_cast<enum rt_lang>(lang)
, static_cast<enum rt_timezone>(timeZone)
, contactInfo.toLatin1().constData()
- , enabled
+ , disabled
, privileged
, password.toLatin1().constData()
, comments.toLatin1().constData()