summaryrefslogtreecommitdiff
path: root/gentoobrowse-api/service/maintenance/updatesProcessor.h
diff options
context:
space:
mode:
Diffstat (limited to 'gentoobrowse-api/service/maintenance/updatesProcessor.h')
-rw-r--r--gentoobrowse-api/service/maintenance/updatesProcessor.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/gentoobrowse-api/service/maintenance/updatesProcessor.h b/gentoobrowse-api/service/maintenance/updatesProcessor.h
new file mode 100644
index 0000000..4b6891b
--- /dev/null
+++ b/gentoobrowse-api/service/maintenance/updatesProcessor.h
@@ -0,0 +1,32 @@
+#ifndef GENTOOBROWSE_API_SERVICE_MAINTENANCE_UPDATESPROC_H
+#define GENTOOBROWSE_API_SERVICE_MAINTENANCE_UPDATESPROC_H
+
+#include "../maintenanceimpl.h"
+#include <connection.h>
+#include <modifycommand.h>
+#include <boost/filesystem/path.hpp>
+
+namespace Gentoo {
+ namespace Service {
+ class UpdatesPatch;
+ class UpdatesProcessor : public Maintenance::FileProcessor {
+ public:
+ static const int FILETYPEID;
+
+ void created(DB::Connection * dbc, int64_t repoid, const Gentoo::StringList & fn, const boost::filesystem::path & path) override;
+ void modified(DB::Connection * dbc, int64_t repoid, const Gentoo::StringList & fn, const boost::filesystem::path & path) override;
+ void deleted(DB::Connection * dbc, int64_t repoid, const Gentoo::StringList & fn) override;
+
+ void prepare(DB::Connection * dbc) override;
+ void apply(DB::Connection * dbc) override;
+ void tidy(DB::Connection * dbc) override;
+
+ private:
+ UpdatesPatch * up;
+ };
+ }
+}
+
+#endif
+
+