yast2-fingerprint-reader
Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions
FPrintAPI Class Reference

#include <FPrintAgent.h>

List of all members.

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.

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

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


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.1