various enhancements

- add helper function declarations to iDescriptor.h
- remove unnessery mountDevImage
- single instance lock for devdiskimages (may be removed in future)
-  implement  safe_afc_read_directory to make sure client is long lived ( for now ony for  afc_read_directory needs to be wrapped)
- remove some cleanup code for testing (init_device.cpp)
- clean leave label for mount_dev_image.cpp
This commit is contained in:
uncor3
2025-08-24 01:46:49 +00:00
parent f46627ab81
commit c84276eabc
14 changed files with 1222 additions and 449 deletions
+6
View File
@@ -106,6 +106,7 @@ void AppContext::addDevice(QString udid, idevice_connection_type conn_type,
.conn_type = conn_type,
.device = initResult.device,
.deviceInfo = initResult.deviceInfo,
.afcClient = initResult.afcClient,
};
m_devices[device->udid] = device;
if (addType == AddType::Regular)
@@ -178,6 +179,11 @@ QList<iDescriptorDevice *> AppContext::getAllDevices()
return m_devices.values();
}
QList<RecoveryDeviceInfo *> AppContext::getAllRecoveryDevices()
{
return m_recoveryDevices.values();
}
// Returns whether there are any devices connected (regular or recovery)
bool AppContext::noDevicesConnected()
{