MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / TestConnection

Method TestConnection

plugins/base/utils/connection-manager.cpp:566–579  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

564}
565
566void WSConnectionSettingsDialog::TestConnection()
567{
568 _testConnection.UseOBSWebsocketProtocol(_useOBSWSProtocol->isChecked());
569 _testConnection.Disconnect();
570 std::string uri = _useCustomURI->isChecked()
571 ? _customUri->text().toStdString()
572 : constructUri(_address->text().toStdString(),
573 _port->value());
574 _testConnection.Connect(uri, _password->text().toStdString(), false);
575 _statusTimer.setInterval(1000);
576 QWidget::connect(&_statusTimer, &QTimer::timeout, this,
577 &WSConnectionSettingsDialog::SetStatus);
578 _statusTimer.start();
579}
580
581bool WSConnectionSettingsDialog::AskForSettings(QWidget *parent,
582 WSConnection &settings)

Callers

nothing calls this directly

Calls 7

constructUriFunction · 0.85
isCheckedMethod · 0.80
DisconnectMethod · 0.45
valueMethod · 0.45
ConnectMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected