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
YCPValue otherCommand(const YCPTerm &term)
Definition: StdioSCRAgent.cc:220
virtual YCPBoolean Write(const YCPPath &path, const YCPValue &value, const YCPValue &arg=YCPNull())
Definition: StdioSCRAgent.cc:44
virtual YCPBoolean RegisterAgent(const YCPPath &path, const YCPValue &value)
Definition: StdioSCRAgent.cc:163
~StdioSCRAgent()
Definition: StdioSCRAgent.h:27
Y2Component * m_handler
Definition: StdioSCRAgent.h:75
virtual YCPValue Read(const YCPPath &path, const YCPValue &arg=YCPNull(), const YCPValue &opt=YCPNull())
Definition: StdioSCRAgent.cc:20
Wrapper for YCPMapRep This class realizes an automatic memory management via YCPElement. Access the functionality of YCPMapRep with the arrow operator. See YCPMapRep.
Definition: YCPMap.h:184
Communication handle to a YaST2 component.
Definition: Y2Component.h:262
SuSE Configuration Repository Agent.
Definition: SCRAgent.h:37
Definition: StdioSCRAgent.h:20
virtual YCPBoolean UnregisterAgent(const YCPPath &path)
Definition: StdioSCRAgent.cc:192
StdioSCRAgent(Y2Component *handler)
Definition: StdioSCRAgent.h:25
Wrapper for YCPListRep This class realizes an automatic memory management via YCPElement. Access the functionality of YCPListRep with the arrow operator. See YCPListRep.
Definition: YCPList.h:236
virtual YCPList Dir(const YCPPath &path)
Definition: StdioSCRAgent.cc:86
virtual YCPValue Execute(const YCPPath &path, const YCPValue &value=YCPNull(), const YCPValue &arg=YCPNull())
Definition: StdioSCRAgent.cc:112
Wrapper for YCPTermRep This class realizes an automatic memory management via YCPElement. Access the functionality of YCPTermRep with the arrow operator. See YCPTermRep.
Definition: YCPTerm.h:177
Wrapper for YCPValueRep This class realizes an automatic memory management via YCPElement. Access the functionality of YCPValueRep with the arrow operator. See YCPValueRep.
Definition: YCPValue.h:275
Wrapper for YCPPathRep This class realizes an automatic memory management via YCPElement. Access the functionality of YCPPathRep with the arrow operator. See YCPPathRep.
Definition: YCPPath.h:175
virtual YCPMap Error(const YCPPath &path)
Definition: StdioSCRAgent.cc:137
Wrapper for YCPBooleanRep This class realizes an automatic memory management via YCPElement. Access the functionality of YCPBooleanRep with the arrow operator. See YCPBooleanRep.
Definition: YCPBoolean.h:93
Definition: YCPElement.h:125

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