Archived
1
0
This commit is contained in:
Jeff Becker 2018-05-06 09:49:29 -04:00
parent b75afcb4f4
commit 657b285375
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

View File

@ -10,6 +10,7 @@ struct MessageDB
{ {
using BoardPage = nntpchan::model::BoardPage; using BoardPage = nntpchan::model::BoardPage;
using Thread = nntpchan::model::Thread; using Thread = nntpchan::model::Thread;
virtual ~MessageDB() {};
virtual bool LoadBoardPage(BoardPage &board, const std::string &newsgroup, uint32_t perpage, uint32_t page) const = 0; virtual bool LoadBoardPage(BoardPage &board, const std::string &newsgroup, uint32_t perpage, uint32_t page) const = 0;
virtual bool FindThreadByHash(const std::string &hashhex, std::string &msgid) const = 0; virtual bool FindThreadByHash(const std::string &hashhex, std::string &msgid) const = 0;
virtual bool LoadThread(Thread &thread, const std::string &rootmsgid) const = 0; virtual bool LoadThread(Thread &thread, const std::string &rootmsgid) const = 0;