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/Factory.h>
18 #include <snapper/Snapshot.h>
19 #include <snapper/Comparison.h>
20 #include <snapper/File.h>
21 #include <snapper/Logger.h>
22 
26 class SnapperAgent : public SCRAgent
27 {
28 private:
33  snapper::Snapper* sh;
35  string snapper_error;
36 
41  string getValue (const YCPMap &map, const YCPString &key, const string &deflt);
42 
49  int getIntValue ( const YCPMap &map, const YCPString &key, const int deflt);
50 
55  YCPList getListValue (const YCPMap &map, const YCPString &key);
56 
57 public:
61  SnapperAgent();
62 
66  virtual ~SnapperAgent();
67 
73  virtual YCPValue Read ( const YCPPath &path,
74  const YCPValue& arg = YCPNull(),
75  const YCPValue& opt = YCPNull());
76 
80  virtual YCPBoolean Write(const YCPPath &path,
81  const YCPValue& arg,
82  const YCPValue& arg2 = YCPNull());
83 
87  virtual YCPValue Execute(const YCPPath &path,
88  const YCPValue& arg = YCPNull(),
89  const YCPValue& arg2 = YCPNull());
90 
94  virtual YCPList Dir(const YCPPath& path);
95 
99  virtual YCPValue otherCommand(const YCPTerm& term);
100 };
101 
102 #endif /* _SnapperAgent_h */

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