e67e7a20bd
* fix keepalive
31 lines
536 B
C++
31 lines
536 B
C++
#ifndef NNTPCHAN_EXEC_FRONTEND_HPP
|
|
#define NNTPCHAN_EXEC_FRONTEND_HPP
|
|
#include "frontend.hpp"
|
|
#include <deque>
|
|
|
|
namespace nntpchan
|
|
{
|
|
class ExecFrontend : public Frontend
|
|
{
|
|
public:
|
|
|
|
ExecFrontend(const std::string & exe);
|
|
|
|
~ExecFrontend();
|
|
|
|
void ProcessNewMessage(const fs::path & fpath);
|
|
bool AcceptsNewsgroup(const std::string & newsgroup);
|
|
bool AcceptsMessage(const std::string & msgid);
|
|
|
|
private:
|
|
|
|
int Exec(std::deque<std::string> args);
|
|
|
|
private:
|
|
std::string m_exec;
|
|
|
|
};
|
|
}
|
|
|
|
#endif
|