From 1bd2637e3133d895d1e73931f8b3466a5761d9ef Mon Sep 17 00:00:00 2001 From: "kali kaneko (leap communications)" Date: Fri, 28 May 2021 12:26:11 +0200 Subject: [feat] expose set transport webapi mainly for tests, but it's usable too --- gui/handlers.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'gui/handlers.cpp') diff --git a/gui/handlers.cpp b/gui/handlers.cpp index 9f68834..cec43ca 100644 --- a/gui/handlers.cpp +++ b/gui/handlers.cpp @@ -52,6 +52,16 @@ void Backend::useAutomaticGateway() UseAutomaticGateway(); } +void Backend::useTransport(QString transport) +{ + UseTransport(toGoStr(transport)); +} + +QString Backend::getTransport() +{ + return QString(GetTransport()); +} + void Backend::login(QString username, QString password) { Login(toGoStr(username), toGoStr(password)); -- cgit v1.2.3