Archived
1
0
This commit is contained in:
Jeff Becker 2018-05-06 09:46:45 -04:00
parent ee770c8ca0
commit b75afcb4f4
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
3 changed files with 7 additions and 4 deletions

View File

@ -11,6 +11,7 @@ namespace fs = std::experimental::filesystem;
class Frontend class Frontend
{ {
public: public:
virtual ~Frontend() {};
/** @brief process an inbound message stored at fpath that we have accepted. */ /** @brief process an inbound message stored at fpath that we have accepted. */
virtual void ProcessNewMessage(const fs::path &fpath) = 0; virtual void ProcessNewMessage(const fs::path &fpath) = 0;

View File

@ -16,11 +16,11 @@ class StaticFileFrontend : public Frontend
public: public:
StaticFileFrontend(TemplateEngine *tmpl, const std::string &templateDir, const std::string &outDir, uint32_t pages); StaticFileFrontend(TemplateEngine *tmpl, const std::string &templateDir, const std::string &outDir, uint32_t pages);
~StaticFileFrontend(); virtual ~StaticFileFrontend();
void ProcessNewMessage(const fs::path &fpath); virtual void ProcessNewMessage(const fs::path &fpath);
bool AcceptsNewsgroup(const std::string &newsgroup); virtual bool AcceptsNewsgroup(const std::string &newsgroup);
bool AcceptsMessage(const std::string &msgid); virtual bool AcceptsMessage(const std::string &msgid);
private: private:
MessageDB_ptr m_MessageDB; MessageDB_ptr m_MessageDB;

View File

@ -17,6 +17,8 @@ StaticFileFrontend::StaticFileFrontend(TemplateEngine *tmpl, const std::string &
{ {
} }
StaticFileFrontend::~StaticFileFrontend() {}
void StaticFileFrontend::ProcessNewMessage(const fs::path &fpath) void StaticFileFrontend::ProcessNewMessage(const fs::path &fpath)
{ {
std::clog << "process message " << fpath << std::endl; std::clog << "process message " << fpath << std::endl;