| 32 | } |
| 33 | |
| 34 | void |
| 35 | QuickConnectDialog::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 | |
| 49 | QString |
| 50 | QuickConnectDialog::getHost(void) const |
nothing calls this directly
no test coverage detected