FPrint.Print¶
- Subclasses:
 None
Methods¶
- Inherited:
 - Structs:
 
class  | 
  | 
class  | 
  | 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
- Inherited:
 
Properties¶
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w  | 
A user defined description for the print  | 
||
r/w/co  | 
Unique ID allowing to check if a device is compatible with the print  | 
||
r/w/co  | 
Whether the print is a handle for data that is stored on the device  | 
||
r/w/co  | 
The name of the driver that created the print  | 
||
r/w  | 
The date of enrollment  | 
||
r/w  | 
The enrolled finger  | 
||
r/w  | 
The raw data for internal use only  | 
||
r/w  | 
Prints for internal use only  | 
||
r  | 
The image that was used for the print, only valid for newly enrolled prints on image based devices  | 
||
r/w  | 
The username that the enrolled print belongs to  | 
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Class Details¶
- class FPrint.Print(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
- classmethod deserialize(data)¶
 - Parameters:
 data (
bytes) – The binary data- Raises:
 - Returns:
 A newly created
FPrint.Printon success- Return type:
 
Deserialize a print definition from permanent storage.
- classmethod new(device)¶
 - Parameters:
 device (
FPrint.Device) – AFPrint.Device- Returns:
 A newly created
FPrint.Print- Return type:
 
Create a new
FPrint.Print. This is only useful to prepare an enrollment of a new print usingFPrint.Device.enroll(). For this you should first create a new print, fill in the relevant metadata, and then start enrollment.
- compatible(device)¶
 - Parameters:
 device (
FPrint.Device) – AFPrint.Device- Returns:
 Trueif the print is compatible with the device- Return type:
 
Tests whether the prints is compatible with the given device.
- equal(other)¶
 - Parameters:
 other (
FPrint.Print) – SecondFPrint.Print- Returns:
 Trueif the prints are equal- Return type:
 
Tests whether the prints can be considered equal. This only compares the actual information about the print, not the metadata.
- get_description()¶
 - 
Returns the user defined description for the print.
 
- get_device_id()¶
 - Returns:
 The device ID
- Return type:
 
Returns the device ID that the print was created for.
- get_device_stored()¶
 - Returns:
 Whether the print is stored on the device
- Return type:
 
Whether the print is actually stored on the device and this is just a handle to use that references the device stored data.
- get_driver()¶
 - Returns:
 The driver
- Return type:
 
Returns the driver that the print was created for.
- get_enroll_date()¶
 - 
Returns the user defined enroll date for the print.
 
- get_finger()¶
 - Returns:
 The
FPrint.Finger- Return type:
 
Returns the finger that the print was created for.
- get_image()¶
 - Returns:
 The
FPrint.Image- Return type:
 FPrint.ImageorNone
Returns the image that the print was created from, or
None
- get_username()¶
 - 
Returns the user defined username for the print.
 
- serialize()¶
 - Raises:
 - Returns:
 Return location for data pointer
- Return type:
 data:
bytes
Serialize a print definition for permanent storage. Note that this is lossy in the sense that e.g. the image data is discarded.
- set_description(description)¶
 - Parameters:
 description (
str) – The new description
Set the description for the print.
- set_enroll_date(enroll_date)¶
 - Parameters:
 enroll_date (
GLib.Date) – The new enroll date
Set the enroll date for the print.
- set_finger(finger)¶
 - Parameters:
 finger (
FPrint.Finger) – TheFPrint.Finger
Set the finger that the print is for.
Property Details¶
- FPrint.Print.props.description¶
 - 
A user defined description for the print
 
- FPrint.Print.props.device_id¶
 - Name:
 device-id- Type:
 - Default Value:
 - Flags:
 
Unique ID allowing to check if a device is compatible with the print
- FPrint.Print.props.device_stored¶
 - Name:
 device-stored- Type:
 - Default Value:
 - Flags:
 
Whether the print is a handle for data that is stored on the device
- FPrint.Print.props.driver¶
 - Name:
 driver- Type:
 - Default Value:
 - Flags:
 
The name of the driver that created the print
- FPrint.Print.props.enroll_date¶
 - 
The date of enrollment
 
- FPrint.Print.props.finger¶
 - Name:
 finger- Type:
 - Default Value:
 - Flags:
 
The enrolled finger
- FPrint.Print.props.fpi_data¶
 - Name:
 fpi-data- Type:
 - Default Value:
 - Flags:
 
The raw data for internal use only
- FPrint.Print.props.fpi_prints¶
 - 
Prints for internal use only
 
- FPrint.Print.props.image¶
 - Name:
 image- Type:
 - Default Value:
 - Flags:
 
The image that was used for the print, only valid for newly enrolled prints on image based devices