![]() |
NDEVR
API Documentation
|
The event that is triggered when a USB device is plugged in or unplugged. More...
Public Types | |
| enum | Action { Add , Remove , Change } |
| Enumerates the possible device change actions. More... | |
Public Member Functions | |
| QDeviceChangeEvent (Action action, const QString &device) | |
| Constructs a device change event with the given action and device identifier. | |
| Action | action () const |
| Returns the action type of this device change event. | |
| QString | device () const |
| Returns the device identifier associated with this event. | |
Static Public Member Functions | |
| static Type | registeredType () |
| Returns the registered QEvent type for device change events. | |
The event that is triggered when a USB device is plugged in or unplugged.
Definition at line 74 of file DeviceWatcher.h.
Enumerates the possible device change actions.
| Enumerator | |
|---|---|
| Add | A device was added. |
| Remove | A device was removed. |
| Change | A device state changed (e.g., unmounting). |
Definition at line 80 of file DeviceWatcher.h.
|
explicit |
|
inline |
Returns the action type of this device change event.
Definition at line 99 of file DeviceWatcher.h.
Referenced by QDeviceChangeEvent().
|
inline |
Returns the device identifier associated with this event.
Definition at line 104 of file DeviceWatcher.h.
Referenced by QDeviceChangeEvent().
|
inlinestatic |
Returns the registered QEvent type for device change events.
Definition at line 109 of file DeviceWatcher.h.