more
This commit is contained in:
parent
ee770c8ca0
commit
b75afcb4f4
@ -11,6 +11,7 @@ namespace fs = std::experimental::filesystem;
|
||||
class Frontend
|
||||
{
|
||||
public:
|
||||
virtual ~Frontend() {};
|
||||
/** @brief process an inbound message stored at fpath that we have accepted. */
|
||||
virtual void ProcessNewMessage(const fs::path &fpath) = 0;
|
||||
|
||||
|
@ -16,11 +16,11 @@ class StaticFileFrontend : public Frontend
|
||||
public:
|
||||
StaticFileFrontend(TemplateEngine *tmpl, const std::string &templateDir, const std::string &outDir, uint32_t pages);
|
||||
|
||||
~StaticFileFrontend();
|
||||
virtual ~StaticFileFrontend();
|
||||
|
||||
void ProcessNewMessage(const fs::path &fpath);
|
||||
bool AcceptsNewsgroup(const std::string &newsgroup);
|
||||
bool AcceptsMessage(const std::string &msgid);
|
||||
virtual void ProcessNewMessage(const fs::path &fpath);
|
||||
virtual bool AcceptsNewsgroup(const std::string &newsgroup);
|
||||
virtual bool AcceptsMessage(const std::string &msgid);
|
||||
|
||||
private:
|
||||
MessageDB_ptr m_MessageDB;
|
||||
|
@ -17,6 +17,8 @@ StaticFileFrontend::StaticFileFrontend(TemplateEngine *tmpl, const std::string &
|
||||
{
|
||||
}
|
||||
|
||||
StaticFileFrontend::~StaticFileFrontend() {}
|
||||
|
||||
void StaticFileFrontend::ProcessNewMessage(const fs::path &fpath)
|
||||
{
|
||||
std::clog << "process message " << fpath << std::endl;
|
||||
|
Reference in New Issue
Block a user