aboutsummaryrefslogtreecommitdiff
path: root/lib/connection.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-09-17 19:31:10 +0900
committerGitHub <noreply@github.com>2018-09-17 19:31:10 +0900
commit9fb5fd1181fc74a040630df333a20ddd29cd7b28 (patch)
tree9039428087b19dab2553e23818b04222d79ff3e2 /lib/connection.cpp
parenteac9bfcb9aaf4426d16b47d7b2128a9fad68de70 (diff)
parentc1a3dd719b735f7f77306d92baf5923df4fb0b10 (diff)
downloadlibquotient-9fb5fd1181fc74a040630df333a20ddd29cd7b28.tar.gz
libquotient-9fb5fd1181fc74a040630df333a20ddd29cd7b28.zip
Merge pull request #244 from delijati/master
Updated voip pull request #110
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 a1fbd903..3d635a7e 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 "csapi/voip.h"
#include <QtNetwork/QDnsLookup>
#include <QtCore/QFile>
@@ -1206,3 +1207,12 @@ void Connection::setCacheState(bool newValue)
emit cacheStateChanged();
}
}
+
+void Connection::getTurnServers()
+{
+ auto job = callApi<GetTurnServerJob>();
+ connect( job, &GetTurnServerJob::success, [=] {
+ emit turnServersChanged(job->data());
+ });
+
+}