|
VirtualBox Main API
|
Notification when a USB device is attached to or detached from the virtual USB controller. More...
Public Attributes | |
| readonly attribute IUSBDevice | device |
| Device that is subject to state change. | |
| readonly attribute boolean | attached |
true if the device was attached and false otherwise. | |
| readonly attribute IVirtualBoxErrorInfo | error |
null on success or an error message object on failure. | |
Public Attributes inherited from IEvent | |
| readonly attribute VBoxEventType | type |
| Event type. | |
| readonly attribute IEventSource | source |
| Source of this event. | |
| readonly attribute boolean | waitable |
| If we can wait for this event being processed. | |
Additional Inherited Members | |
Public Member Functions inherited from IEvent | |
| void | setProcessed () |
| Internal method called by the system when all listeners of a particular event have called IEventSource::eventProcessed. | |
| void | waitProcessed (in long timeout,[retval] out boolean result) |
| Wait until time outs, or this event is processed. | |
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 @link IConsole::attachUSBDevice IConsole::attachUSBDevice@endlink<b></b> or @link IConsole::detachUSBDevice IConsole::detachUSBDevice@endlink<b></b>. This notification is sent in case of both a succeeded and a failed request completion. When the request succeeds, the @a error parameter is @c null, and the given device has been already added to (when @a attached is @c true) or removed from (when @a attached is @c false) the collection represented by @link IConsole::USBDevices IConsole::USBDevices@endlink<b></b>. On failure, the collection doesn't change and the @a error parameter represents the error message describing the failure.
{806DA61B-6679-422A-B629-51B06B0C6D93} | readonly attribute IUSBDevice IUSBDeviceStateChangedEvent::device |
Device that is subject to state change.
| readonly attribute boolean IUSBDeviceStateChangedEvent::attached |
true if the device was attached and false otherwise.
| readonly attribute IVirtualBoxErrorInfo IUSBDeviceStateChangedEvent::error |
null on success or an error message object on failure.
1.8.1.2