aboutsummaryrefslogtreecommitdiff
path: root/examples/qmc-example.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2017-10-19 19:36:10 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2017-10-19 19:40:47 +0900
commit76438ba95d16c7d007fc16ffc194889f937a19f7 (patch)
treee0c578596254532310b7f0d8f4a37236bfa0670b /examples/qmc-example.cpp
parent756e716886036447915a10992189774991f4dd8d (diff)
downloadlibquotient-76438ba95d16c7d007fc16ffc194889f937a19f7.tar.gz
libquotient-76438ba95d16c7d007fc16ffc194889f937a19f7.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/qmc-example.cpp')
-rw-r--r--examples/qmc-example.cpp2
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();