| 579 | } |
| 580 | |
| 581 | bool WSConnectionSettingsDialog::AskForSettings(QWidget *parent, |
| 582 | WSConnection &settings) |
| 583 | { |
| 584 | WSConnectionSettingsDialog dialog(parent, settings); |
| 585 | dialog.setWindowTitle(obs_module_text("AdvSceneSwitcher.windowTitle")); |
| 586 | if (dialog.exec() != DialogCode::Accepted) { |
| 587 | return false; |
| 588 | } |
| 589 | |
| 590 | settings._name = dialog._name->text().toStdString(); |
| 591 | settings._useCustomURI = dialog._useCustomURI->isChecked(); |
| 592 | settings._customURI = dialog._customUri->text().toStdString(); |
| 593 | settings._address = dialog._address->text().toStdString(); |
| 594 | settings._port = dialog._port->value(); |
| 595 | settings._password = dialog._password->text().toStdString(); |
| 596 | settings._connectOnStart = dialog._connectOnStart->isChecked(); |
| 597 | settings._reconnect = dialog._reconnect->isChecked(); |
| 598 | settings._reconnectDelay = dialog._reconnectDelay->value(); |
| 599 | settings.UseOBSWebsocketProtocol(dialog._useOBSWSProtocol->isChecked()); |
| 600 | settings.Reconnect(); |
| 601 | return true; |
| 602 | } |
| 603 | |
| 604 | ConnectionSelectionSignalManager::ConnectionSelectionSignalManager( |
| 605 | QObject *parent) |
nothing calls this directly
no test coverage detected