org.virtualbox_5_0
Class IUSBDevice

java.lang.Object
  extended by org.virtualbox_5_0.IUnknown
      extended by org.virtualbox_5_0.IUSBDevice
Direct Known Subclasses:
IHostUSBDevice

public class IUSBDevice
extends IUnknown

The IUSBDevice interface represents a virtual USB device attached to the virtual machine. A collection of objects implementing this interface is stored in theIConsole.getUSBDevices()attribute which lists all USB devices attached to a running virtual machine's USB controller. Interface ID: {5915D179-83C7-4F2B-A323-9A97F46F4E29}


Field Summary
 
Fields inherited from class org.virtualbox_5_0.IUnknown
obj, port
 
Constructor Summary
IUSBDevice(java.lang.String wrapped, org.virtualbox_5_0.jaxws.VboxPortType port)
           
 
Method Summary
 java.lang.String getAddress()
          Host specific address of the device.
 java.util.List<java.lang.String> getDeviceInfo()
          Array of device attributes as single strings.
 java.lang.String getId()
          Unique USB device ID.
 java.lang.String getManufacturer()
          Manufacturer string.
 java.lang.Integer getPort()
          Host USB port number the device is physically connected to.
 java.lang.Integer getPortVersion()
          The major USB version of the host USB port the device is physically connected to - 1, 2 or 3.
 java.lang.String getProduct()
          Product string.
 java.lang.Integer getProductId()
          Product ID.
 java.lang.Boolean getRemote()
          Whether the device is physically connected to a remote VRDE client or to a local host machine.
 java.lang.Integer getRevision()
          Product revision number.
 java.lang.String getSerialNumber()
          Serial number string.
 USBConnectionSpeed getSpeed()
          The speed at which the device is currently communicating.
 java.lang.Integer getVendorId()
          Vendor ID.
 java.lang.Integer getVersion()
          The major USB version of the device - 1, 2 or 3.
static IUSBDevice queryInterface(IUnknown obj)
           
 
Methods inherited from class org.virtualbox_5_0.IUnknown
getRemoteWSPort, getWrapped, releaseRemote
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IUSBDevice

public IUSBDevice(java.lang.String wrapped,
                  org.virtualbox_5_0.jaxws.VboxPortType port)
Method Detail

getId

public java.lang.String getId()
Unique USB device ID. This ID is built from #vendorId, #productId, #revision and #serialNumber.

Returns:
String

getVendorId

public java.lang.Integer getVendorId()
Vendor ID.

Returns:
Integer

getProductId

public java.lang.Integer getProductId()
Product ID.

Returns:
Integer

getRevision

public java.lang.Integer getRevision()
Product revision number. This is a packed BCD represented as unsigned short. The high byte is the integer part and the low byte is the decimal.

Returns:
Integer

getManufacturer

public java.lang.String getManufacturer()
Manufacturer string.

Returns:
String

getProduct

public java.lang.String getProduct()
Product string.

Returns:
String

getSerialNumber

public java.lang.String getSerialNumber()
Serial number string.

Returns:
String

getAddress

public java.lang.String getAddress()
Host specific address of the device.

Returns:
String

getPort

public java.lang.Integer getPort()
Host USB port number the device is physically connected to.

Returns:
Integer

getVersion

public java.lang.Integer getVersion()
The major USB version of the device - 1, 2 or 3.

Returns:
Integer

getPortVersion

public java.lang.Integer getPortVersion()
The major USB version of the host USB port the device is physically connected to - 1, 2 or 3. For devices not connected to anything this will have the same value as the version attribute.

Returns:
Integer

getSpeed

public USBConnectionSpeed getSpeed()
The speed at which the device is currently communicating.

Returns:
org.virtualbox_5_0.USBConnectionSpeed

getRemote

public java.lang.Boolean getRemote()
Whether the device is physically connected to a remote VRDE client or to a local host machine.

Returns:
Boolean

getDeviceInfo

public java.util.List<java.lang.String> getDeviceInfo()
Array of device attributes as single strings. So far the following are used: 0: The manufacturer string, if the device doesn't expose the ID one is taken from an internal database or an empty string if none is found. 1: The product string, if the device doesn't expose the ID one is taken from an internal database or an empty string if none is found.

Returns:
List<String>

queryInterface

public static IUSBDevice queryInterface(IUnknown obj)