yast2-core
SystemAgent.h
Go to the documentation of this file.
1 /*
2  * SystemAgent.h
3  *
4  * An agent for handling commands on the system
5  *
6  * Authors: Klaus Kaempf <kkaempf@suse.de>
7  * Michal Svec <msvec@suse.cz>
8  * Petr Blahos <pblahos@suse.cz>
9  *
10  * $Id$
11  */
12 
13 #ifndef SystemAgent_h
14 #define SystemAgent_h
15 
16 
17 #include <ycp/YCPValue.h>
18 #include <scr/SCRAgent.h>
19 
20 
24 class SystemAgent : public SCRAgent
25 {
26 
27 public:
28 
29  SystemAgent ();
30  ~SystemAgent ();
31 
35  virtual YCPValue Read (const YCPPath& path, const YCPValue& arg = YCPNull(), const YCPValue& opt = YCPNull ());
36 
40  virtual YCPBoolean Write (const YCPPath& path, const YCPValue& value,
41  const YCPValue& arg = YCPNull());
42 
46  virtual YCPValue Execute (const YCPPath& path, const YCPValue& value = YCPNull(),
47  const YCPValue& arg = YCPNull());
48 
52  virtual YCPList Dir (const YCPPath& path) { return YCPList (); }
53 
54 private:
55 
56  string tempdir;
57 
58 };
59 
60 
61 #endif // SystemAgent_h
virtual YCPValue Execute(const YCPPath &path, const YCPValue &value=YCPNull(), const YCPValue &arg=YCPNull())
SCR Agent for system commands.
Definition: SystemAgent.h:24
virtual YCPBoolean Write(const YCPPath &path, const YCPValue &value, const YCPValue &arg=YCPNull())
SystemAgent()
Definition: SystemAgent.cc:110
SuSE Configuration Repository Agent.
Definition: SCRAgent.h:37
virtual YCPValue Read(const YCPPath &path, const YCPValue &arg=YCPNull(), const YCPValue &opt=YCPNull())
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
string tempdir
Definition: SystemAgent.h:56
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
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
virtual YCPList Dir(const YCPPath &path)
Definition: SystemAgent.h:52
~SystemAgent()
Definition: SystemAgent.cc:135
Definition: YCPElement.h:125

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