Add cross-platform BLE transport and Bluetooth settings

Integrate shared C transport with desktop and Android frontends, add radio probes and detailed Windows diagnostics, and fix GUI build dependencies and early configuration startup errors.
This commit is contained in:
evgeny committed 2026-10-29 10:51:19 +01:00
1 parent 25cea8ca4c
commit f5bac950d1
82 files changed
+6608 -146

No files matched your search

+9
View File
@@ -2,6 +2,7 @@
// settingsdialog.cpp — Settings dialog with category list
#include "settingsdialog.h"
#include "networksettingspage.h"
#include "bluetoothsettingspage.h"
#include "databasesettingspage.h"
#include "statuspage.h"
#include "nodespage.h"
@@ -76,6 +77,7 @@ SettingsDialog::SettingsDialog(const QString& configPath, DbManager* db, UtunNod
m_categoryList->addItem(QCoreApplication::translate("ChatGui", "Audio"));
m_categoryList->addItem(QCoreApplication::translate("ChatGui", "Radio"));
m_categoryList->addItem(QCoreApplication::translate("ChatGui", "Broadcast"));
m_categoryList->addItem(QCoreApplication::translate("ChatGui", "Bluetooth"));
mainLayout->addWidget(m_categoryList);
// --- Right panel: stacked pages ---
@@ -264,6 +266,8 @@ SettingsDialog::SettingsDialog(const QString& configPath, DbManager* db, UtunNod
streamNote->setWordWrap(true);
streamForm->addRow(streamNote);
m_pages->addWidget(streamPage);
m_bluetoothPage = new BluetoothSettingsPage(m_configPath, node, m_pages);
m_pages->addWidget(m_bluetoothPage);
rightLayout->addWidget(m_pages, 1);
// --- Bottom buttons ---
@@ -342,6 +346,11 @@ void SettingsDialog::onCategoryChanged(int row) {
}
void SettingsDialog::onSave() {
if (!m_bluetoothPage->save()) {
QMessageBox::warning(this, QCoreApplication::translate("ChatGui", "Settings"),
QCoreApplication::translate("ChatGui", "Failed to save Bluetooth settings. Check the configuration file."));
return;
}
// Меняем только разрешение публикации, сохраняя остальные настройки входящих вызовов.
QSettings callConfig(m_configPath, QSettings::IniFormat);
int callPolicy = callConfig.value("chatserver/incoming_call_policy", CALL_POLICY_PUBLISH_PHONE).toInt();