mirror of
https://github.com/iDescriptor/iDescriptor.git
synced 2026-06-22 03:45:51 +08:00
Refactor network device management and SSH terminal integration
- Removed the old NetworkDeviceManager class and replaced it with a new NetworkDeviceProvider class to streamline network device handling. - Updated various widgets (NetworkDevicesToConnectWidget, NetworkDevicesWidget, SSHTerminalTool) to utilize the new NetworkDeviceProvider for device management. - Introduced a new SSHTerminalTool class to manage SSH connections, replacing the OpenSSHTerminalWidget. - Enhanced device selection UI to support both wired and wireless devices, including manual IP connection options. - Improved signal-slot connections for device addition and removal events. - Cleaned up unnecessary includes and code related to the old SSH terminal widget. - Added checks for device jailbreak status during SSH connection attempts.
This commit is contained in:
@@ -21,12 +21,7 @@
|
||||
#define NETWORKDEVICESTOCONNECTWIDGET_H
|
||||
|
||||
#include "iDescriptor-ui.h"
|
||||
|
||||
#ifdef __linux__
|
||||
#include "core/services/avahi/avahi_service.h"
|
||||
#else
|
||||
#include "core/services/dnssd/dnssd_service.h"
|
||||
#endif
|
||||
#include "networkdeviceprovider.h"
|
||||
|
||||
#include <QGroupBox>
|
||||
#include <QLabel>
|
||||
@@ -81,12 +76,6 @@ private:
|
||||
QVBoxLayout *m_deviceLayout = nullptr;
|
||||
QLabel *m_statusLabel = nullptr;
|
||||
|
||||
#ifdef __linux__
|
||||
AvahiService *m_networkProvider = nullptr;
|
||||
#else
|
||||
DnssdService *m_networkProvider = nullptr;
|
||||
#endif
|
||||
|
||||
QMap<QString, NetworkDeviceCard *> m_deviceCards;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user