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

Method setProfile

Components/QuickConnectDialog.cpp:34–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34void
35QuickConnectDialog::setProfile(Suscan::Source::Config const &prof)
36{
37 if (prof.getInterface() == SUSCAN_SOURCE_REMOTE_INTERFACE) {
38 this->ui->hostEdit->setText(
39 QString::fromStdString(prof.getParam("host")));
40 this->ui->userEdit->setText(
41 QString::fromStdString(prof.getParam("user")));
42 this->ui->passwordEdit->setText(
43 QString::fromStdString(prof.getParam("password")));
44 this->ui->portSpin->setValue(
45 QString::fromStdString(prof.getParam("port")).toInt());
46 }
47}
48
49QString
50QuickConnectDialog::getHost(void) const

Callers

nothing calls this directly

Calls 3

getInterfaceMethod · 0.80
setValueMethod · 0.80
getParamMethod · 0.45

Tested by

no test coverage detected