karazeh
A cross-platform software updating library.
delete.hpp
Go to the documentation of this file.
1 
21 #ifndef H_KARAZEH_OPERATION_DELETE_H
22 #define H_KARAZEH_OPERATION_DELETE_H
23 
24 #include "karazeh_export.h"
25 #include "karazeh/operation.hpp"
26 #include "karazeh/logger.hpp"
27 
28 namespace kzh {
29 
30  // TODO: require target checksum
31  class KARAZEH_EXPORT delete_operation : public operation, protected logger {
32  public:
34  virtual ~delete_operation();
35 
42  virtual STAGE_RC stage();
43 
49  virtual STAGE_RC deploy();
50 
55  virtual void rollback();
56 
57  virtual void commit();
58 
59  virtual string_t tostring();
60 
62 
63  private:
64  path_t dst_dir_;
65  path_t cache_dir_;
66  path_t cache_path_;
67 
68  bool deleted_;
69  };
70 
71 } // end of namespace kzh
72 
73 #endif
boost::filesystem::path path_t
Definition: karazeh.hpp:57
STAGE_RC
Definition: operation.hpp:33
Definition: operation.hpp:50
std::string string_t
Definition: karazeh.hpp:55
Definition: config.hpp:32
Definition: delete.hpp:31
Definition: release_manifest.hpp:32
Definition: logger.hpp:35
Definition: config.hpp:27
string_t dst_path
Definition: delete.hpp:61