FPrint.Context

g FPrint.Context FPrint.Context GObject.Object GObject.Object GObject.Object->FPrint.Context

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

enumerate ()

get_devices ()

Virtual Methods

Inherited:

GObject.Object (7)

do_device_added (device)

do_device_removed (device)

Properties

None

Signals

Inherited:

GObject.Object (1)

Name

Short Description

device-added

This signal is emitted when a fingerprint reader is added.

device-removed

This signal is emitted when a fingerprint reader is removed.

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class FPrint.Context(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

FPrint.ContextClass

classmethod new()
Returns:

a newly created FPrint.Context

Return type:

FPrint.Context

Create a new FPrint.Context.

enumerate()

Enumerate all devices. You should call this function exactly once at startup. Please note that it iterates the mainloop until all devices are enumerated.

get_devices()
Returns:

a new GLib.PtrArray of FPrint.Device's.

Return type:

[FPrint.Device]

Get all devices. FPrint.Context.enumerate() will be called as needed.

do_device_added(device) virtual
Parameters:

device (FPrint.Device) –

do_device_removed(device) virtual
Parameters:

device (FPrint.Device) –

Signal Details

FPrint.Context.signals.device_added(context, device)
Signal Name:

device-added

Flags:

RUN_LAST

Parameters:

This signal is emitted when a fingerprint reader is added.

FPrint.Context.signals.device_removed(context, device)
Signal Name:

device-removed

Flags:

RUN_LAST

Parameters:

This signal is emitted when a fingerprint reader is removed.

It is guaranteed that the device has been closed before this signal is emitted. See the FPrint.Device removed signal documentation for more information.