diff options
Diffstat (limited to 'gentoobrowse-api/service/maintenance/updatesProcessor.h')
-rw-r--r-- | gentoobrowse-api/service/maintenance/updatesProcessor.h | 43 |
1 files changed, 19 insertions, 24 deletions
diff --git a/gentoobrowse-api/service/maintenance/updatesProcessor.h b/gentoobrowse-api/service/maintenance/updatesProcessor.h index fa7a390..0063db7 100644 --- a/gentoobrowse-api/service/maintenance/updatesProcessor.h +++ b/gentoobrowse-api/service/maintenance/updatesProcessor.h @@ -1,34 +1,29 @@ -#ifndef GENTOOBROWSE_API_SERVICE_MAINTENANCE_UPDATESPROC_H -#define GENTOOBROWSE_API_SERVICE_MAINTENANCE_UPDATESPROC_H +#pragma once #include "abstractFileProcessor.h" #include <connection.h> #include <filesystem> #include <modifycommand.h> -namespace Gentoo { - namespace Service { - class UpdatesPatch; - class UpdatesProcessor : public AbstractFileProcessor { - public: - unsigned char phase() const override; - unsigned char order() const override; - bool match(const PathParts & pp) const override; +namespace Gentoo::Service { + class UpdatesPatch; + class UpdatesProcessor : public AbstractFileProcessor { + public: + unsigned char phase() const override; + unsigned char order() const override; + bool match(const PathParts & pp) const override; - void created(DB::Connection * dbc, int64_t repoid, const Gentoo::StringList & fn, - const std::filesystem::path & path) override; - void modified(DB::Connection * dbc, int64_t repoid, const Gentoo::StringList & fn, - const std::filesystem::path & path) override; - void deleted(DB::Connection * dbc, int64_t repoid, const Gentoo::StringList & fn) override; + void created(DB::Connection * dbc, int64_t repoid, const Gentoo::StringList & fn, + const std::filesystem::path & path) override; + void modified(DB::Connection * dbc, int64_t repoid, const Gentoo::StringList & fn, + const std::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, ChangeSet &) override; - void tidy(DB::Connection * dbc) override; + void prepare(DB::Connection * dbc) override; + void apply(DB::Connection * dbc, ChangeSet &) override; + void tidy(DB::Connection * dbc) override; - private: - UpdatesPatch * up; - }; - } + private: + UpdatesPatch * up; + }; } - -#endif |