yast2-fingerprint-reader
|
An interface class between YaST2 and FPrint Agent. More...
#include <FPrintAgent.h>
Public Member Functions | |
FPrintAgent () | |
virtual | ~FPrintAgent () |
virtual YCPValue | Read (const YCPPath &path, const YCPValue &arg=YCPNull(), const YCPValue &opt=YCPNull()) |
virtual YCPBoolean | Write (const YCPPath &path, const YCPValue &val, const YCPValue &arg=YCPNull()) |
virtual YCPValue | Execute (const YCPPath &path, const YCPValue &val=YCPNull(), const YCPValue &arg=YCPNull()) |
virtual YCPList | Dir (const YCPPath &path) |
virtual YCPValue | otherCommand (const YCPTerm &term) |
Public Attributes | |
int | data_pipe [2] |
pid_t | child_pid |
int | child_retval |
An interface class between YaST2 and FPrint Agent.
FPrintAgent::FPrintAgent | ( | ) |
FPrintAgent::~FPrintAgent | ( | ) | [virtual] |
Destructor.
Destructor
YCPValue FPrintAgent::Execute | ( | const YCPPath & | path, |
const YCPValue & | val = YCPNull() , |
||
const YCPValue & | arg = YCPNull() |
||
) | [virtual] |
Provides SCR Execute ().
Execute(.fprint.enroll) is action to acquire fingerprint
parameter is whole path to target bir file, e.g. /tmp/YaST-123-456/hh.bir
Reimplemented from SCRAgent.
References child_pid, data_pipe, SCRAgent::instance(), YCPElement::isNull(), PC, y2error, and y2milestone.
YCPValue FPrintAgent::Read | ( | const YCPPath & | path, |
const YCPValue & | arg = YCPNull() , |
||
const YCPValue & | opt = YCPNull() |
||
) | [virtual] |
Provides SCR Read ().
path | Path that should be read. |
arg | Additional parameter. |
Read
Implements SCRAgent.
References YCPMap::add(), child_pid, child_retval, data_pipe, DEVICE_OPEN_FAILED, INIT_FAILED, NO_DEVICES, PC, y2error, y2internal, y2milestone, and y2warning.
YCPBoolean FPrintAgent::Write | ( | const YCPPath & | path, |
const YCPValue & | value, | ||
const YCPValue & | arg = YCPNull() |
||
) | [virtual] |
pid_t FPrintAgent::child_pid |
pid of the child process after fork
Referenced by Execute(), FPrintAgent(), and Read().
return value of the child process
Referenced by FPrintAgent(), and Read().
int FPrintAgent::data_pipe[2] |