yast2-fingerprint-reader
FPrintAgent.h
Go to the documentation of this file.
1 /* FPrintAgent.h
2  *
3  * FPrint agent implementation
4  *
5  * Authors: Jiri Suchomel <jsuchome@suse.cz>
6  *
7  * $Id: FPrintAgent.h 26456 2005-12-07 16:11:23Z jsuchome $
8  */
9 
10 #ifndef _FPrintAgent_h
11 #define _FPrintAgent_h
12 
13 #include <Y2.h>
14 #include <scr/SCRAgent.h>
15 
16 using namespace std;
17 
18 #include <libfprint/fprint.h>
19 #include <fcntl.h>
20 #include <errno.h>
21 #include <sys/types.h>
22 #include <sys/wait.h>
23 
24 #include <string>
25 
30 class FPrintAPI
31 {
32 
33 private:
34  FPrintAPI ();
35 
36  virtual ~FPrintAPI();
37 
38 public:
39 
40  static FPrintAPI & instance();
41 
42  static void catch_sigterm (int);
43 
44  int acquire (int, string);
45 
46  int test_int;
47 
48  struct fp_print_data *data;
49 
50  void finalize ();
51 
52 };
53 
57 class FPrintAgent : public SCRAgent
58 {
59 
60 public:
61 
65  FPrintAgent ();
66 
67 
71  virtual ~FPrintAgent();
72 
78  virtual YCPValue Read(const YCPPath &path,
79  const YCPValue& arg = YCPNull(),
80  const YCPValue& opt = YCPNull());
81 
85  virtual YCPBoolean Write(const YCPPath &path,
86  const YCPValue& val,
87  const YCPValue& arg = YCPNull());
88 
92  virtual YCPValue Execute(const YCPPath &path,
93  const YCPValue& val = YCPNull(),
94  const YCPValue& arg = YCPNull());
95 
99  virtual YCPList Dir(const YCPPath& path);
100 
104  virtual YCPValue otherCommand(const YCPTerm& term);
105 
109  int data_pipe[2];
110 
114  pid_t child_pid;
115 
120 
121 };
122 
123 #endif /* _FPrintAgent_h */

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