yast2-fingerprint-reader
Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | List of all members
FPrintAPI Class Reference

#include <FPrintAgent.h>

Public Member Functions

int acquire (int, string)
 
void finalize ()
 

Static Public Member Functions

static FPrintAPIinstance ()
 
static void catch_sigterm (int)
 

Public Attributes

int test_int
 
struct fp_print_data * data
 

Private Member Functions

 FPrintAPI ()
 
virtual ~FPrintAPI ()
 

Detailed Description

The real interface to fprint library

Constructor & Destructor Documentation

FPrintAPI::FPrintAPI ( )
private

References data.

FPrintAPI::~FPrintAPI ( )
privatevirtual

Member Function Documentation

int FPrintAPI::acquire ( int  write_fd,
string  dir_path 
)

wrapper for fp_enroll_finger function;

  • we need to take care of the errors and signals
    Parameters
    filedescriptor of the pipe
    pathto the temporary directory for storing fingerprints

References catch_sigterm(), data, DEVICE_OPEN_FAILED, ENROLL_FAILURE, finalize(), INIT_FAILED, instance(), NO_DEVICES, y2debug, y2error, and y2milestone.

Referenced by FPrintAgent::Execute().

void FPrintAPI::catch_sigterm ( int  sig_num)
static

References finalize(), and instance().

Referenced by acquire().

void FPrintAPI::finalize ( )

References data, and instance().

Referenced by acquire(), and catch_sigterm().

FPrintAPI & FPrintAPI::instance ( )
static

Member Data Documentation

struct fp_print_data* FPrintAPI::data

Referenced by acquire(), finalize(), and FPrintAPI().

int FPrintAPI::test_int

The documentation for this class was generated from the following files:

Generated on a sunny day for yast2-fingerprint-reader by doxygen 1.8.2