summaryrefslogtreecommitdiff
path: root/gentoobrowse-api/service/maintenance/useLocalProcessor.h
diff options
context:
space:
mode:
Diffstat (limited to 'gentoobrowse-api/service/maintenance/useLocalProcessor.h')
-rw-r--r--gentoobrowse-api/service/maintenance/useLocalProcessor.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/gentoobrowse-api/service/maintenance/useLocalProcessor.h b/gentoobrowse-api/service/maintenance/useLocalProcessor.h
new file mode 100644
index 0000000..b4cb36e
--- /dev/null
+++ b/gentoobrowse-api/service/maintenance/useLocalProcessor.h
@@ -0,0 +1,23 @@
+#ifndef GENTOOBROWSE_API_SERVICE_MAINTENANCE_USELOCALPROC_H
+#define GENTOOBROWSE_API_SERVICE_MAINTENANCE_USELOCALPROC_H
+
+#include "../maintenanceimpl.h"
+#include <connection.h>
+#include <modifycommand.h>
+#include <boost/filesystem/path.hpp>
+
+namespace Gentoo {
+ namespace Service {
+ class UseLocalProcessor : public Maintenance::FileProcessor {
+ public:
+ static const int FILETYPEID;
+
+ void created(DB::Connection * dbc, const boost::filesystem::path & fn, const boost::filesystem::path & path) override;
+ void modified(DB::Connection * dbc, const boost::filesystem::path & fn, const boost::filesystem::path & path) override;
+ void deleted(DB::Connection * dbc, const boost::filesystem::path & fn) override;
+ };
+ }
+}
+
+#endif
+