|
|
@ -1014,16 +1014,21 @@ TDEDiskDeviceType::TDEDiskDeviceType classifyDiskType(udev_device* dev, const TQ
|
|
|
|
disktype = disktype | TDEDiskDeviceType::USB;
|
|
|
|
disktype = disktype | TDEDiskDeviceType::USB;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (disktypestring.upper() == "DISK") {
|
|
|
|
|
|
|
|
disktype = disktype | TDEDiskDeviceType::HDD;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ((disktypestring.upper() == "FLOPPY")
|
|
|
|
if ((disktypestring.upper() == "FLOPPY")
|
|
|
|
|| (TQString(udev_device_get_property_value(dev, "ID_DRIVE_FLOPPY")) == "1")) {
|
|
|
|
|| (TQString(udev_device_get_property_value(dev, "ID_DRIVE_FLOPPY")) == "1")) {
|
|
|
|
disktype = disktype | TDEDiskDeviceType::Floppy;
|
|
|
|
disktype = disktype | TDEDiskDeviceType::Floppy;
|
|
|
|
|
|
|
|
disktype = disktype & ~TDEDiskDeviceType::HDD;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (disktypestring.upper() == "ZIP") {
|
|
|
|
if ((disktypestring.upper() == "ZIP")
|
|
|
|
disktype = disktype | TDEDiskDeviceType::Zip;
|
|
|
|
|| (TQString(udev_device_get_property_value(dev, "ID_DRIVE_FLOPPY_ZIP")) == "1")
|
|
|
|
}
|
|
|
|
|| ((devicevendor.upper() == "IOMEGA") && (devicemodel.upper().contains("ZIP")))) {
|
|
|
|
if ((devicevendor.upper() == "IOMEGA") && (devicemodel.upper().contains("ZIP"))) {
|
|
|
|
|
|
|
|
disktype = disktype | TDEDiskDeviceType::Zip;
|
|
|
|
disktype = disktype | TDEDiskDeviceType::Zip;
|
|
|
|
|
|
|
|
disktype = disktype & ~TDEDiskDeviceType::HDD;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ((devicevendor.upper() == "APPLE") && (devicemodel.upper().contains("IPOD"))) {
|
|
|
|
if ((devicevendor.upper() == "APPLE") && (devicemodel.upper().contains("IPOD"))) {
|
|
|
@ -1077,10 +1082,6 @@ TDEDiskDeviceType::TDEDiskDeviceType classifyDiskType(udev_device* dev, const TQ
|
|
|
|
disktype = disktype | TDEDiskDeviceType::Jaz;
|
|
|
|
disktype = disktype | TDEDiskDeviceType::Jaz;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (disktypestring.upper() == "DISK") {
|
|
|
|
|
|
|
|
disktype = disktype | TDEDiskDeviceType::HDD;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (disktypestring.upper() == "CD") {
|
|
|
|
if (disktypestring.upper() == "CD") {
|
|
|
|
disktype = disktype | TDEDiskDeviceType::Optical;
|
|
|
|
disktype = disktype | TDEDiskDeviceType::Optical;
|
|
|
|
|
|
|
|
|
|
|
|