aboutsummaryrefslogtreecommitdiff
path: root/lib/connection.cpp
diff options
context:
space:
mode:
authorJosip Delic <delijati@googlemail.com>2018-08-25 13:33:24 +0200
committerJosip Delic <delijati@googlemail.com>2018-08-25 13:33:24 +0200
commit41b408334619a6e755fffbef1c40e7165ab0e0f7 (patch)
tree5b80abd7d64cf40dd566c7146d198323a3a32074 /lib/connection.cpp
parente507ca582b1b243ee4422a4a3e0b11b28697cb16 (diff)
downloadlibquotient-41b408334619a6e755fffbef1c40e7165ab0e0f7.tar.gz
libquotient-41b408334619a6e755fffbef1c40e7165ab0e0f7.zip
Update marius voip to new libqtmc
Diffstat (limited to 'lib/connection.cpp')
-rw-r--r--lib/connection.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp
index 017180c4..853b2a8a 100644
--- a/lib/connection.cpp
+++ b/lib/connection.cpp
@@ -34,6 +34,7 @@
#include "jobs/syncjob.h"
#include "jobs/mediathumbnailjob.h"
#include "jobs/downloadfilejob.h"
+#include "jobs/turnserverjob.h"
#include <QtNetwork/QDnsLookup>
#include <QtCore/QFile>
@@ -1189,3 +1190,12 @@ void Connection::setCacheState(bool newValue)
emit cacheStateChanged();
}
}
+
+void Connection::getTurnServers()
+{
+ auto job = callApi<TurnServerJob>();
+ connect( job, &TurnServerJob::success, [=] {
+ emit turnServersChanged(job->toJson());
+ });
+
+}