yast2-fingerprint-reader
Public Member Functions | Public Attributes | List of all members
FPrintAgent Class Reference

An interface class between YaST2 and FPrint Agent. More...

#include <FPrintAgent.h>

Inheritance diagram for FPrintAgent:
SCRAgent

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 Member Functions inherited from SCRAgent
 SCRAgent ()
 
virtual ~SCRAgent ()
 
virtual YCPMap Error (const YCPPath &)
 
virtual YCPBoolean RegisterAgent (const YCPPath &path, const YCPValue &)
 
virtual YCPBoolean UnregisterAgent (const YCPPath &path)
 
virtual YCPBoolean UnregisterAllAgents ()
 
virtual YCPBoolean UnmountAgent (const YCPPath &)
 
virtual YCPBoolean RegisterNewAgents ()
 
void setAsCurrentSCR ()
 

Public Attributes

int data_pipe [2]
 
pid_t child_pid
 
int child_retval
 
- Public Attributes inherited from SCRAgent
SCRAgentmainscragent
 

Additional Inherited Members

- Static Public Member Functions inherited from SCRAgent
static YCPValue readconf (const char *filename)
 
static SCRAgentinstance ()
 

Detailed Description

An interface class between YaST2 and FPrint Agent.

Constructor & Destructor Documentation

FPrintAgent::FPrintAgent ( )

Default constructor.

Constructor

References child_pid, and child_retval.

FPrintAgent::~FPrintAgent ( )
virtual

Destructor.

Destructor

Member Function Documentation

YCPList FPrintAgent::Dir ( const YCPPath path)
virtual

Provides SCR Dir ().

Dir

Implements SCRAgent.

References y2error.

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 FPrintAPI::acquire(), child_pid, data_pipe, FPrintAPI::instance(), YCPValue::isNull(), PC, y2error, and y2milestone.

YCPValue FPrintAgent::otherCommand ( const YCPTerm term)
virtual

Used for mounting the agent.

otherCommand

Reimplemented from SCRAgent.

References YCPTerm::name().

YCPValue FPrintAgent::Read ( const YCPPath path,
const YCPValue arg = YCPNull(),
const YCPValue opt = YCPNull() 
)
virtual

Provides SCR Read ().

Parameters
pathPath that should be read.
argAdditional parameter.

Read

Implements SCRAgent.

References YCPMap::add(), child_pid, child_retval, data_pipe, DEVICE_OPEN_FAILED, INIT_FAILED, NO_DEVICES, PC, y2debug, y2error, y2milestone, and y2warning.

YCPBoolean FPrintAgent::Write ( const YCPPath path,
const YCPValue value,
const YCPValue arg = YCPNull() 
)
virtual

Provides SCR Write ().

Write - nothing to do

Implements SCRAgent.

Member Data Documentation

pid_t FPrintAgent::child_pid

pid of the child process after fork

Referenced by Execute(), FPrintAgent(), and Read().

int FPrintAgent::child_retval

return value of the child process

Referenced by FPrintAgent(), and Read().

int FPrintAgent::data_pipe[2]

array with pipe file descriptors

Referenced by Execute(), and Read().


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