From 22b14860e6b2bda990a05167ae61d8d7f24a2427 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Sat, 21 Jul 2018 22:59:17 +0900 Subject: csapi: add definitions/auth_data.* and optimise out trivial files with the latest GTAD --- lib/csapi/registration.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/csapi/registration.h') diff --git a/lib/csapi/registration.h b/lib/csapi/registration.h index 53b2de9d..0709f71b 100644 --- a/lib/csapi/registration.h +++ b/lib/csapi/registration.h @@ -7,7 +7,7 @@ #include "jobs/basejob.h" #include "converters.h" -#include +#include "csapi/definitions/auth_data.h" namespace QMatrixClient { @@ -75,7 +75,7 @@ namespace QMatrixClient * A display name to assign to the newly-created device. Ignored * if ``device_id`` corresponds to a known device. */ - explicit RegisterJob(const QString& kind = QStringLiteral("user"), const QJsonObject& auth = {}, bool bindEmail = false, const QString& username = {}, const QString& password = {}, const QString& deviceId = {}, const QString& initialDeviceDisplayName = {}); + explicit RegisterJob(const QString& kind = QStringLiteral("user"), const Omittable& auth = none, bool bindEmail = false, const QString& username = {}, const QString& password = {}, const QString& deviceId = {}, const QString& initialDeviceDisplayName = {}); ~RegisterJob() override; // Result properties @@ -151,7 +151,7 @@ namespace QMatrixClient * \param auth * Additional authentication information for the user-interactive authentication API. */ - explicit ChangePasswordJob(const QString& newPassword, const QJsonObject& auth = {}); + explicit ChangePasswordJob(const QString& newPassword, const Omittable& auth = none); }; /// Requests a validation token be sent to the given email address for the purpose of resetting a user's password @@ -204,7 +204,7 @@ namespace QMatrixClient * \param auth * Additional authentication information for the user-interactive authentication API. */ - explicit DeactivateAccountJob(const QJsonObject& auth = {}); + explicit DeactivateAccountJob(const Omittable& auth = none); }; /// Checks to see if a username is available on the server. -- cgit v1.2.3