aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/login.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2019-02-11 21:07:21 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2019-02-11 21:07:21 +0900
commit63e2c0338e07cbc1939a5ad0f8047a9edab9b97c (patch)
treeb34779450d848ad431f1c82f50df77c38e37b56a /lib/csapi/login.h
parente98ec84ab31b2dc656597ac5c87a8299b6c8aed8 (diff)
parent7337876aac42552da6d926b38d7466cf2e51b7d8 (diff)
downloadlibquotient-63e2c0338e07cbc1939a5ad0f8047a9edab9b97c.tar.gz
libquotient-63e2c0338e07cbc1939a5ad0f8047a9edab9b97c.zip
Merge branch 'kitsune-update-matrix-api'
Diffstat (limited to 'lib/csapi/login.h')
-rw-r--r--lib/csapi/login.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/csapi/login.h b/lib/csapi/login.h
index 957d8881..648316df 100644
--- a/lib/csapi/login.h
+++ b/lib/csapi/login.h
@@ -7,6 +7,7 @@
#include "jobs/basejob.h"
#include <QtCore/QVector>
+#include "csapi/definitions/wellknown/full.h"
#include "csapi/definitions/user_identifier.h"
#include "converters.h"
@@ -118,6 +119,11 @@ namespace QMatrixClient
/// ID of the logged-in device. Will be the same as the
/// corresponding parameter in the request, if one was specified.
const QString& deviceId() const;
+ /// Optional client configuration provided by the server. If present,
+ /// clients SHOULD use the provided object to reconfigure themselves,
+ /// optionally validating the URLs within. This object takes the same
+ /// form as the one returned from .well-known autodiscovery.
+ const Omittable<DiscoveryInformation>& wellKnown() const;
protected:
Status parseJson(const QJsonDocument& data) override;