MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / updateRemoteParams

Method updateRemoteParams

Settings/ProfileConfigTab.cpp:773–789  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

771}
772
773void
774ProfileConfigTab::updateRemoteParams(void)
775{
776 this->profile.clearParams();
777
778 this->profile.setParam("host", this->ui->hostEdit->text().toStdString());
779 this->profile.setParam("port", std::to_string(this->ui->portEdit->value()));
780 this->profile.setParam("user", this->ui->userEdit->text().toStdString());
781 this->profile.setParam("password", this->ui->passEdit->text().toStdString());
782
783 if (this->ui->mcCheck->isChecked())
784 this->profile.setParam(
785 "mc_if",
786 this->ui->mcInterfaceEdit->text().toStdString());
787
788 this->profile.setParam("label", "User-defined remote profile");
789}
790
791ProfileConfigTab::ProfileConfigTab(QWidget *parent) : ConfigTab(parent, "Source"),
792 profile(SUSCAN_SOURCE_TYPE_FILE, SUSCAN_SOURCE_FORMAT_AUTO)

Callers 1

onRemoteParamsChangedMethod · 0.95

Calls 3

clearParamsMethod · 0.80
setParamMethod · 0.80
valueMethod · 0.80

Tested by

no test coverage detected