| 771 | } |
| 772 | |
| 773 | void |
| 774 | ProfileConfigTab::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 | |
| 791 | ProfileConfigTab::ProfileConfigTab(QWidget *parent) : ConfigTab(parent, "Source"), |
| 792 | profile(SUSCAN_SOURCE_TYPE_FILE, SUSCAN_SOURCE_FORMAT_AUTO) |
no test coverage detected