org.virtualbox_4_2
Class IUSBDeviceStateChangedEvent
java.lang.Object
org.virtualbox_4_2.IUnknown
org.virtualbox_4_2.IEvent
org.virtualbox_4_2.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 by IConsole.attachUSBDevice(String)
or
IConsole.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 by
IConsole.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}
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IUSBDeviceStateChangedEvent
public IUSBDeviceStateChangedEvent(java.lang.String wrapped,
org.virtualbox_4_2.jaxws.VboxPortType port)
getDevice
public IUSBDevice getDevice()
- Device that is subject to state change.
- Returns:
- org.virtualbox_4_2.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_4_2.IVirtualBoxErrorInfo
queryInterface
public static IUSBDeviceStateChangedEvent queryInterface(IUnknown obj)