Ticket #37590: patch-src-common-port-port.cpp.diff
File patch-src-common-port-port.cpp.diff, 1.4 KB (added by alexgrach, 12 years ago) |
---|
-
src/common/port/port.cpp
old new 17 17 #include "serial.h" 18 18 #include "parallel.h" 19 19 #include "usb_port.h" 20 #include "hid_port.h"21 20 22 21 //----------------------------------------------------------------------------- 23 22 void getTime(int &sec, int &usec) … … 60 59 const PortType::Data PortType::DATA[Nb_Types] = { 61 60 { I18N_NOOP("Serial Port"), "serial", true }, 62 61 { I18N_NOOP("Parallel Port"), "parallel", true }, 63 { I18N_NOOP("USB Port"), "usb", false }, 64 { I18N_NOOP("HID Port"), "hid", false } 62 { I18N_NOOP("USB Port"), "usb", false } 65 63 }; 66 64 67 65 const char * const Port::IO_DIR_NAMES[3] = { "no_io", "in", "out" }; … … 73 71 case PortType::Serial: return Serial::probedDeviceList(); 74 72 case PortType::Parallel: return Parallel::probedDeviceList(); 75 73 case PortType::USB: return USB::probedDeviceList(); 76 case PortType::HID: return HID::probedDeviceList();77 74 case PortType::Nb_Types: break; 78 75 } 79 76 return QStringList(); … … 85 82 case PortType::Serial: return Serial::isAvailable(); 86 83 case PortType::Parallel: return Parallel::isAvailable(); 87 84 case PortType::USB: return USB::isAvailable(); 88 case PortType::HID: return HID::isAvailable();89 85 case PortType::Nb_Types: break; 90 86 } 91 87 return false;