more
This commit is contained in:
parent
ee770c8ca0
commit
b75afcb4f4
@ -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;
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
Reference in New Issue
Block a user