summaryrefslogtreecommitdiff
path: root/client.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'client.cxx')
-rw-r--r--client.cxx51
1 files changed, 51 insertions, 0 deletions
diff --git a/client.cxx b/client.cxx
index 2f30b49..b4c9b97 100644
--- a/client.cxx
+++ b/client.cxx
@@ -16,6 +16,57 @@ namespace RTClient {
if (user) emit logged(user);
}
+ void Client::userNew(QString const& name
+ , 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
+ , QString const& city
+ , QString const& state
+ , QString const& zip
+ , QString const& country
+ , QString const& homePhone
+ , QString const& workPhone
+ , QString const& mobilePhone
+ , QString const& pagerPhone)
+ {
+ rtclient_user_new(name.toLatin1().constData()
+ , emailAddress.toLatin1().constData()
+ , realName.toLatin1().constData()
+ , nickName.toLatin1().constData()
+ , gecos.toLatin1().constData()
+ , static_cast<enum rt_lang>(lang)
+ , static_cast<enum rt_timezone>(timeZone)
+ , contactInfo.toLatin1().constData()
+ , enabled
+ , privileged
+ , password.toLatin1().constData()
+ , comments.toLatin1().constData()
+ , signature.toLatin1().constData()
+ , organization.toLatin1().constData()
+ , address1.toLatin1().constData()
+ , address2.toLatin1().constData()
+ , city.toLatin1().constData()
+ , state.toLatin1().constData()
+ , zip.toLatin1().constData()
+ , country.toLatin1().constData()
+ , homePhone.toLatin1().constData()
+ , workPhone.toLatin1().constData()
+ , mobilePhone.toLatin1().constData()
+ , pagerPhone.toLatin1().constData());
+ }
+
void Client::search(QString const& owner)
{
QString query{"Owner='"};