diff options
Diffstat (limited to 'lib/connection.cpp')
-rw-r--r-- | lib/connection.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp index 8d55460d..e8c9a2dc 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> @@ -1188,3 +1189,12 @@ void Connection::setCacheState(bool newValue) emit cacheStateChanged(); } } + +void Connection::getTurnServers() +{ + auto job = callApi<GetTurnServerJob>(); + connect( job, &GetTurnServerJob::success, [=] { + emit turnServersChanged(job->data()); + }); + +} |