diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-09-19 20:54:48 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-09-19 20:54:48 +0100 |
commit | e6ede1b9d84083531f5b156f6de13cdf4e9c1092 (patch) | |
tree | f00217c6f2bb889f4610cc1ca80acda3fda0bd34 | |
parent | Extends API with functions to support website (diff) | |
download | gentoobrowse-api-e6ede1b9d84083531f5b156f6de13cdf4e9c1092.tar.bz2 gentoobrowse-api-e6ede1b9d84083531f5b156f6de13cdf4e9c1092.tar.xz gentoobrowse-api-e6ede1b9d84083531f5b156f6de13cdf4e9c1092.zip |
File event functions can be pure
-rw-r--r-- | gentoobrowse-api/service/maintenancePackageTree.cpp | 15 | ||||
-rw-r--r-- | gentoobrowse-api/service/maintenanceimpl.h | 6 |
2 files changed, 3 insertions, 18 deletions
diff --git a/gentoobrowse-api/service/maintenancePackageTree.cpp b/gentoobrowse-api/service/maintenancePackageTree.cpp index 50392fc..a78c41d 100644 --- a/gentoobrowse-api/service/maintenancePackageTree.cpp +++ b/gentoobrowse-api/service/maintenancePackageTree.cpp @@ -54,21 +54,6 @@ namespace Gentoo { { } - void - Maintenance::FileProcessor::created(DB::Connection *, const boost::filesystem::path &, const boost::filesystem::path &) - { - } - - void - Maintenance::FileProcessor::modified(DB::Connection *, const boost::filesystem::path &, const boost::filesystem::path &) - { - } - - void - Maintenance::FileProcessor::deleted(DB::Connection *, const boost::filesystem::path &) - { - } - template<typename T> Maintenance::FileProcessorPtr Maintenance::createFileProessor() diff --git a/gentoobrowse-api/service/maintenanceimpl.h b/gentoobrowse-api/service/maintenanceimpl.h index 3a00ba5..135ae99 100644 --- a/gentoobrowse-api/service/maintenanceimpl.h +++ b/gentoobrowse-api/service/maintenanceimpl.h @@ -20,9 +20,9 @@ namespace Gentoo { virtual void apply(DB::Connection *); virtual void tidy(DB::Connection *); - virtual void created(DB::Connection * dbc, const boost::filesystem::path & fn, const boost::filesystem::path & path); - virtual void modified(DB::Connection * dbc, const boost::filesystem::path & fn, const boost::filesystem::path & path); - virtual void deleted(DB::Connection * dbc, const boost::filesystem::path & fn); + virtual void created(DB::Connection * dbc, const boost::filesystem::path & fn, const boost::filesystem::path & path) = 0; + virtual void modified(DB::Connection * dbc, const boost::filesystem::path & fn, const boost::filesystem::path & path) = 0; + virtual void deleted(DB::Connection * dbc, const boost::filesystem::path & fn) = 0; }; typedef boost::shared_ptr<FileProcessor> FileProcessorPtr; |