Add support for authentication and encryption

This commit is contained in:
Guillaume Meunier
2024-11-26 23:59:35 +01:00
committed by Patrick Nicolas
parent 447b77c35c
commit c6e773fd22
45 changed files with 1516 additions and 455 deletions
+12
View File
@@ -138,6 +138,9 @@ main_window::main_window()
connect(server_interface, &wivrn_server::supportedCodecsChanged, this, &main_window::on_supported_codecs_changed);
connect(server_interface, &wivrn_server::steamCommandChanged, this, &main_window::on_steam_command_changed);
connect(server_interface, &wivrn_server::pinChanged, this, &main_window::on_pin_changed);
on_pin_changed(server_interface->pin());
connect(ui->button_start, &QPushButton::clicked, this, &main_window::start_server);
connect(ui->button_stop, &QPushButton::clicked, this, &main_window::stop_server);
connect(ui->button_settings, &QPushButton::clicked, this, &main_window::on_action_settings);
@@ -168,6 +171,9 @@ main_window::main_window()
ui->banner_capsysnice->hide();
#endif
// TODO implement this
ui->button_known_headsets->hide();
retranslate();
}
@@ -528,6 +534,12 @@ void main_window::on_steam_command_changed(QString value)
ui->label_steam_command->setText(value);
}
void main_window::on_pin_changed(QString value)
{
ui->widget_authentication->setVisible(value != "");
ui->label_pin->setText(value);
}
void main_window::on_server_finished(int exit_code, QProcess::ExitStatus status)
{
qDebug() << "Server exited with code" << exit_code << ", status" << status;