diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-10-19 19:36:10 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-10-19 19:36:10 +0900 |
commit | ba620ee07989aff134fec6b5d6f058cab3377ecc (patch) | |
tree | c9e6f0e434acf36efb61d5a28824f583f2c048e2 /examples | |
parent | e4fabf6e618b5045efec2629cb5d7b5bf73677e8 (diff) | |
download | libquotient-ba620ee07989aff134fec6b5d6f058cab3377ecc.tar.gz libquotient-ba620ee07989aff134fec6b5d6f058cab3377ecc.zip |
Introduce device_id and initial_device_name support; switch to generated LoginJob
This is _almost_ a backwards-compatible change, except that connect*()
and other relevant methods in Connection are no more virtual (that
wasn't much useful anyway). Otherwise it's a matter of passing
initial_device_name to connectToServer(), saving device_id (along with
access_token) from the result of LoginJob and then passing device_id
(along with access_token, again) to connectWithToken() upon the next run.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/qmc-example.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/qmc-example.cpp b/examples/qmc-example.cpp index a6da6aba..dc0c94e4 100644 --- a/examples/qmc-example.cpp +++ b/examples/qmc-example.cpp @@ -35,7 +35,7 @@ int main(int argc, char* argv[]) return -1; auto conn = new Connection(QUrl("https://matrix.org")); - conn->connectToServer(argv[1], argv[2]); + conn->connectToServer(argv[1], argv[2], "QMatrixClient example application"); QObject::connect(conn, &Connection::connected, [=] { cout << "Connected" << endl; conn->sync(); |