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  
    1717#include "serial.h"
    1818#include "parallel.h"
    1919#include "usb_port.h"
    20 #include "hid_port.h"
    2120
    2221//-----------------------------------------------------------------------------
    2322void getTime(int &sec, int &usec)
     
    6059const PortType::Data PortType::DATA[Nb_Types] = {
    6160  { I18N_NOOP("Serial Port"),   "serial",   true  },
    6261  { 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 }
    6563};
    6664
    6765const char * const Port::IO_DIR_NAMES[3] = { "no_io", "in", "out" };
     
    7371    case PortType::Serial:   return Serial::probedDeviceList();
    7472    case PortType::Parallel: return Parallel::probedDeviceList();
    7573    case PortType::USB:      return USB::probedDeviceList();
    76     case PortType::HID:      return HID::probedDeviceList();
    7774    case PortType::Nb_Types: break;
    7875  }
    7976  return QStringList();
     
    8582    case PortType::Serial:   return Serial::isAvailable();
    8683    case PortType::Parallel: return Parallel::isAvailable();
    8784    case PortType::USB:      return USB::isAvailable();
    88     case PortType::HID:      return HID::isAvailable();
    8985    case PortType::Nb_Types: break;
    9086  }
    9187  return false;