diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-03-26 19:14:34 +0100 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-03-26 22:52:01 +0100 |
commit | 123d58fc3c29d8e9adbb5b654df53d5cbb0a32fa (patch) | |
tree | b395f17139b0e7de576670e347138059600e4440 /lib/connection.h | |
parent | 1b5d6216beddd17c820240dd4bdeaf9c47624cf6 (diff) | |
download | libquotient-123d58fc3c29d8e9adbb5b654df53d5cbb0a32fa.tar.gz libquotient-123d58fc3c29d8e9adbb5b654df53d5cbb0a32fa.zip |
SsoSession and Connection::prepareForSso()
Final part of #388 backport.
Diffstat (limited to 'lib/connection.h')
-rw-r--r-- | lib/connection.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/connection.h b/lib/connection.h index 782ffd2c..33f9bfba 100644 --- a/lib/connection.h +++ b/lib/connection.h @@ -19,6 +19,7 @@ #pragma once #include "csapi/login.h" +#include "ssosession.h" #include "csapi/create_room.h" #include "joinstate.h" #include "events/accountdataevents.h" @@ -415,6 +416,9 @@ namespace QMatrixClient std::forward<JobArgTs>(jobArgs)...); } + Q_INVOKABLE SsoSession* prepareForSso( + const QString& initialDeviceName, const QString& deviceId = {}); + /** Generate a new transaction id. Transaction id's are unique within * a single Connection object */ |