yast2-core
StdioSCRAgent.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 
3 /*
4  * Authors: Stanislav Visnovsky <visnov@suse.cz>
5  * Maintainer: Arvin Schnell <arvin@suse.de>
6  */
7 
8 
9 #ifndef StdioSCRAgent_h
10 #define StdioSCRAgent_h
11 
12 #include <y2/Y2Component.h>
13 #include <scr/SCRAgent.h>
14 
15 
20 class StdioSCRAgent : public SCRAgent
21 {
22 
23 public:
24 
25  StdioSCRAgent (Y2Component* handler) : m_handler (handler) {}
26 
28 
34  virtual YCPValue Read (const YCPPath &path, const YCPValue &arg = YCPNull (), const YCPValue &opt = YCPNull ());
35 
39  virtual YCPBoolean Write (const YCPPath &path, const YCPValue &value,
40  const YCPValue &arg = YCPNull ());
41 
45  virtual YCPList Dir (const YCPPath &path);
46 
50  virtual YCPValue Execute (const YCPPath &path, const YCPValue &value =
51  YCPNull (), const YCPValue &arg = YCPNull ());
52 
56  virtual YCPMap Error (const YCPPath &path);
57 
61  virtual YCPBoolean RegisterAgent (const YCPPath& path, const YCPValue& value);
62 
66  virtual YCPBoolean UnregisterAgent (const YCPPath& path);
67 
72  YCPValue otherCommand (const YCPTerm &term);
73 
74 private:
76 };
77 
78 
79 #endif // StdioSCRAgent_h

Generated on a sunny day for yast2-core by doxygen 1.8.2