GUsb.DeviceEvent

g GObject.Object GObject.Object GUsb.DeviceEvent GUsb.DeviceEvent GObject.Object->GUsb.DeviceEvent

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_bytes ()

get_id ()

get_rc ()

get_status ()

set_bytes (bytes)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class GUsb.DeviceEvent(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

GUsb.DeviceEventClass

get_bytes()
Returns:

a GLib.Bytes, or None

Return type:

GLib.Bytes

Gets any bytes data from the event.

New in version 0.4.0.

get_id()
Returns:

string, or None

Return type:

str

Gets the event ID.

New in version 0.4.0.

get_rc()
Returns:

a enum libusb_error

Return type:

int

Gets any return code from the event.

New in version 0.4.5.

get_status()
Returns:

a enum libusb_transfer_status, or -1 for failure

Return type:

int

Gets any status data from the event.

New in version 0.4.0.

set_bytes(bytes)
Parameters:

bytes (GLib.Bytes) – a GLib.Bytes

Set the bytes data to the event.

New in version 0.4.0.