GUsb.DeviceList¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
This signal is emitted when a USB device is added. |
|
This signal is emitted when a USB device is removed. |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class GUsb.DeviceList(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(context)¶
- Parameters:
context (
GUsb.Context
) – aGUsb.Context
- Returns:
a new
GUsb.DeviceList
- Return type:
Creates a new device list.
You will need to call
GUsb.DeviceList.coldplug
() to coldplug the list of devices after creating a device list.New in version 0.1.0.
- coldplug()¶
This function does nothing.
New in version 0.1.0.
- find_by_bus_address(bus, address)¶
- Parameters:
- Raises:
- Returns:
a new
GUsb.Device
, orNone
if not found.- Return type:
Finds a device based on its bus and address values.
New in version 0.1.0.
- find_by_vid_pid(vid, pid)¶
- Parameters:
- Raises:
- Returns:
a new
GUsb.Device
, orNone
if not found.- Return type:
Finds a device based on its bus and address values.
New in version 0.1.0.
- get_devices()¶
- Returns:
a new
GLib.PtrArray
ofGUsb.Device
's.- Return type:
New in version 0.1.0.
- do_device_added(device) virtual¶
- Parameters:
device (
GUsb.Device
) –
- do_device_removed(device) virtual¶
- Parameters:
device (
GUsb.Device
) –
Signal Details¶
- GUsb.DeviceList.signals.device_added(device_list, device)¶
- Signal Name:
device-added
- Flags:
- Parameters:
device_list (
GUsb.DeviceList
) – The object which received the signaldevice (
GUsb.Device
) – AGUsb.Device
This signal is emitted when a USB device is added.
- GUsb.DeviceList.signals.device_removed(device_list, device)¶
- Signal Name:
device-removed
- Flags:
- Parameters:
device_list (
GUsb.DeviceList
) – The object which received the signaldevice (
GUsb.Device
) – AGUsb.Device
This signal is emitted when a USB device is removed.
Property Details¶
- GUsb.DeviceList.props.context¶
- Name:
context
- Type:
- Default Value:
- Flags: