org.virtualbox_6_0
Class IUSBDeviceStateChangedEvent

java.lang.Object
  extended by org.virtualbox_6_0.IUnknown
      extended by org.virtualbox_6_0.IEvent
          extended by org.virtualbox_6_0.IUSBDeviceStateChangedEvent

public class IUSBDeviceStateChangedEvent
extends IEvent

Notification when a USB device is attached to or detached from the virtual USB controller. This notification is sent as a result of the indirect request to attach the device because it matches one of the machine USB filters, or as a result of the direct request issued byIConsole.attachUSBDevice(String,String)orIConsole.detachUSBDevice(String). This notification is sent in case of both a succeeded and a failed request completion. When the request succeeds, the error parameter is null, and the given device has been already added to (when attached is true) or removed from (when attached is false) the collection represented byIConsole.getUSBDevices(). On failure, the collection doesn't change and the error parameter represents the error message describing the failure. Interface ID: {806DA61B-6679-422A-B629-51B06B0C6D93}


Field Summary
 
Fields inherited from class org.virtualbox_6_0.IUnknown
obj, objMgr, port
 
Constructor Summary
IUSBDeviceStateChangedEvent(java.lang.String wrapped, org.virtualbox_6_0.ObjectRefManager objMgr, org.virtualbox_6_0.jaxws.VboxPortType port)
           
 
Method Summary
 java.lang.Boolean getAttached()
          true if the device was attached and false otherwise.
 IUSBDevice getDevice()
          Device that is subject to state change.
 IVirtualBoxErrorInfo getError()
          null on success or an error message object on failure.
static IUSBDeviceStateChangedEvent queryInterface(IUnknown obj)
           
 
Methods inherited from class org.virtualbox_6_0.IEvent
getSource, getType, getWaitable, setProcessed, waitProcessed
 
Methods inherited from class org.virtualbox_6_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

IUSBDeviceStateChangedEvent

public IUSBDeviceStateChangedEvent(java.lang.String wrapped,
                                   org.virtualbox_6_0.ObjectRefManager objMgr,
                                   org.virtualbox_6_0.jaxws.VboxPortType port)
Method Detail

getDevice

public IUSBDevice getDevice()
Device that is subject to state change.

Returns:
org.virtualbox_6_0.IUSBDevice

getAttached

public java.lang.Boolean getAttached()
true if the device was attached and false otherwise.

Returns:
Boolean

getError

public IVirtualBoxErrorInfo getError()
null on success or an error message object on failure.

Returns:
org.virtualbox_6_0.IVirtualBoxErrorInfo

queryInterface

public static IUSBDeviceStateChangedEvent queryInterface(IUnknown obj)