yast2-snapper
SnapperAgent.h
Go to the documentation of this file.
1 /* SnapperAgent.h
2  *
3  * Snapper agent implementation
4  *
5  * Authors: Jiri Suchomel <jsuchome@suse.cz>
6  *
7  * $Id: SnapperAgent.h 63174 2011-01-13 10:50:42Z jsuchome $
8  */
9 
10 #ifndef _SnapperAgent_h
11 #define _SnapperAgent_h
12 
13 #include <Y2.h>
14 #include <scr/SCRAgent.h>
15 
16 #include <snapper/Snapper.h>
17 #include <snapper/Snapshot.h>
18 #include <snapper/Comparison.h>
19 #include <snapper/File.h>
20 #include <snapper/Logger.h>
21 
25 class SnapperAgent : public SCRAgent
26 {
27 private:
32  snapper::Snapper* sh;
34  string snapper_error;
35 
40  string getValue (const YCPMap &map, const YCPString &key, const string &deflt);
41 
48  int getIntValue ( const YCPMap &map, const YCPString &key, const int deflt);
49 
54  YCPList getListValue (const YCPMap &map, const YCPString &key);
55 
60  YCPMap getMapValue (const YCPMap &map, const YCPString &key);
61 
62 public:
66  SnapperAgent();
67 
71  virtual ~SnapperAgent();
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& arg,
87  const YCPValue& arg2 = YCPNull());
88 
92  virtual YCPValue Execute(const YCPPath &path,
93  const YCPValue& arg = YCPNull(),
94  const YCPValue& arg2 = YCPNull());
95 
99  virtual YCPList Dir(const YCPPath& path);
100 
104  virtual YCPValue otherCommand(const YCPTerm& term);
105 };
106 
107 #endif /* _SnapperAgent_h */

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