Enums

Details

class FPrint.DeviceError(value)

Bases: GObject.GEnum

Error codes for device operations. More specific errors from other domains such as #G_IO_ERROR or #G_USB_DEVICE_ERROR may also be reported.

classmethod quark()
Returns:

Quark representing a device error.

Return type:

int

GENERAL = 0

A general error occurred.

NOT_SUPPORTED = 1

The device does not support the requested operation.

NOT_OPEN = 2

The device needs to be opened to start this operation.

REMOVED = 256

The device has been removed.

TOO_HOT = 257

The device might be getting too hot

ALREADY_OPEN = 3

The device has already been opened.

BUSY = 4

The device is busy with another request.

PROTO = 5

Protocol error

DATA_INVALID = 6

The passed data is invalid

DATA_NOT_FOUND = 7

Requested print was not found on device

DATA_FULL = 8

No space on device available for operation

DATA_DUPLICATE = 9

Enrolling template duplicates storaged templates

class FPrint.DeviceRetry(value)

Bases: GObject.GEnum

Error codes representing scan failures resulting in the user needing to retry.

classmethod quark()
Returns:

Quark representing a retryable error.

Return type:

int

GENERAL = 0

The scan did not succeed due to poor scan quality or other general user scanning problem.

TOO_SHORT = 1

The scan did not succeed because the finger swipe was too short.

CENTER_FINGER = 2

The scan did not succeed because the finger was not centered on the scanner.

REMOVE_FINGER = 3

The scan did not succeed due to quality or pressure problems; the user should remove their finger from the scanner before retrying.

class FPrint.DeviceType(value)

Bases: GObject.GEnum

VIRTUAL = 0

The device is a virtual device

UDEV = 1

The device is a udev device

USB = 2

The device is a USB device

class FPrint.Finger(value)

Bases: GObject.GEnum

UNKNOWN = 0

The finger is unknown

FIRST = 1

The first finger in the fp-print order

LEFT_THUMB = 1

Left thumb

LAST = 10

The last finger in the fp-print order

RIGHT_LITTLE = 10

Right little finger

LEFT_INDEX = 2

Left index finger

LEFT_MIDDLE = 3

Left middle finger

LEFT_RING = 4

Left ring finger

LEFT_LITTLE = 5

Left little finger

RIGHT_THUMB = 6

Right thumb

RIGHT_INDEX = 7

Right index finger

RIGHT_MIDDLE = 8

Right middle finger

RIGHT_RING = 9

Right ring finger

class FPrint.ScanType(value)

Bases: GObject.GEnum

SWIPE = 0

Sensor requires swiping the finger.

PRESS = 1

Sensor requires placing/pressing down the finger.

class FPrint.Temperature(value)

Bases: GObject.GEnum

When a device is created, it is assumed to be cold. Applications such as fprintd may want to ensure all devices on the system are cold before shutting down in order to ensure that the cool-off period is not violated because the internal libfprint state about the device is lost.

COLD = 0

Sensor is considered cold.

WARM = 1

Sensor is warm, usage time may be limited.

HOT = 2

Sensor is hot and cannot be used.