org.virtualbox_7_0
Class IUSBDevice

java.lang.Object
  extended by org.virtualbox_7_0.IUnknown
      extended by org.virtualbox_7_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: {6DC83C2C-81A9-4005-9D52-FC45A78BF3F5}


Field Summary
 
Fields inherited from class org.virtualbox_7_0.IUnknown
obj, objMgr, port
 
Constructor Summary
IUSBDevice(java.lang.String wrapped, org.virtualbox_7_0.ObjectRefManager objMgr, org.virtualbox_7_0.jaxws.VboxPortType port)
           
 
Method Summary
 java.lang.String getAddress()
          Host-specific address of the device, uniquely identifying a physically connected device in the system.
 java.lang.String getBackend()
          The backend which will be used to communicate with this 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 on the hub the device is physically connected to.
 java.lang.String getPortPath()
          Host-specific identifier of the port (including hub) the USB device is physically connected to.
 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_7_0.IUnknown
getObjMgr, 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_7_0.ObjectRefManager objMgr,
                  org.virtualbox_7_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, uniquely identifying a physically connected device in the system. Note that the address of a USB device may change across device re-plugs and host suspend/resume cycles or reboots.

Returns:
String

getPort

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

Returns:
Integer

getPortPath

public java.lang.String getPortPath()
Host-specific identifier of the port (including hub) the USB device is physically connected to. Note that hubs may be dynamically added and removed, and that hub enumeration may not be consistent across host reboots.

Returns:
String

getVersion

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

Returns:
Integer

getSpeed

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

Returns:
org.virtualbox_7_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>

getBackend

public java.lang.String getBackend()
The backend which will be used to communicate with this device.

Returns:
String

queryInterface

public static IUSBDevice queryInterface(IUnknown obj)