WIP: refactor remaining code

- Initial fixes for the error "peer closed connection without sending TLS close_notify"
- ServiceManager still need a lot work
- Not prod ready still experimental
This commit is contained in:
uncor3
2025-12-29 21:31:42 +00:00
parent c0995006af
commit 9b2cc67b9c
21 changed files with 757 additions and 555 deletions
+10 -10
View File
@@ -450,16 +450,16 @@ MainWindow::MainWindow(QWidget *parent)
connect(NetworkDeviceManager::sharedInstance(),
&NetworkDeviceManager::deviceAdded, this,
[this](const NetworkDevice &device) {
// const iDescriptorDevice *idevice =
// AppContext::sharedInstance()->getDeviceByMacAddress(
// device.macAddress);
// if (idevice) {
// qDebug() << "Network device matched to connected device:"
// << QString::fromStdString(
// idevice->deviceInfo.deviceName)
// << "MAC:" << device.macAddress;
// // You can now use 'idevice' as needed
// }
const iDescriptorDevice *idevice =
AppContext::sharedInstance()->getDeviceByMacAddress(
device.macAddress);
if (idevice) {
qDebug() << "Network device matched to connected device:"
<< QString::fromStdString(
idevice->deviceInfo.deviceName)
<< "MAC:" << device.macAddress;
// You can now use 'idevice' as needed
}
// FIXME: both macAddress and udid can be used to get pairing
// file