mirror of
https://github.com/iDescriptor/iDescriptor.git
synced 2026-06-22 03:45:51 +08:00
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:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user