Id Class
class QUsb::IdDevice Ids structure. More...
Public Functions
Id(const Id &other) | |
Id(quint16 _pid = 0, quint16 _vid = 0, quint8 _bus = busAny, quint8 _port = portAny, quint8 _class = 0, quint8 _subclass = 0) | |
Id & | operator=(Id other) |
bool | operator==(const Id &other) const |
Public Variables
Detailed Description
If some properties are equal to 0, they won't be taken into account for filtering. You only need PID and VID, or class and subclass to identify a device, but can be more specific if multiple devices using the same IDs are connected.
Member Function Documentation
Id::Id(const Id &other)
Copy constructor.
Id::Id(quint16 _pid = 0, quint16 _vid = 0, quint8 _bus = busAny, quint8 _port = portAny, quint8 _class = 0, quint8 _subclass = 0)
Default constructor.
Id &Id::operator=(Id other)
Copy operator.
bool Id::operator==(const Id &other) const
Comparision operator.
Returns true
if all other attributes match.
Member Variable Documentation
quint8 Id::bus
This variable holds the USB bus number.
Default is QUsbDevice::busAny, which matches all buses.
quint8 Id::dClass
This variable holds the USB class.
quint8 Id::dSubClass
This variable holds the USB Sub-class.
quint16 Id::pid
This variable holds the product ID.
quint8 Id::port
This variable holds the USB port number.
Default is QUsbDevice::portAny, which matches all ports.
quint16 Id::vid
This variable holds the vendor ID.