aboutsummaryrefslogtreecommitdiff
path: root/lib/connection.cpp
diff options
context:
space:
mode:
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());
+ });
+
+}