Archived
1
0
This repository has been archived on 2023-08-12. You can view files and clone it, but cannot push or open issues or pull requests.
nntpchan/contrib/backends/nntpchan-daemon/src/exec_frontend.hpp

31 lines
539 B
C++
Raw Normal View History

2016-10-18 16:03:51 +05:00
#ifndef NNTPCHAN_EXEC_FRONTEND_HPP
#define NNTPCHAN_EXEC_FRONTEND_HPP
2016-10-18 17:17:40 +05:00
#include "frontend.hpp"
#include <deque>
2016-10-18 16:03:51 +05:00
namespace nntpchan
{
2016-10-18 17:17:40 +05:00
class ExecFrontend : public Frontend
{
public:
2016-10-18 16:03:51 +05:00
2016-10-18 17:17:40 +05:00
ExecFrontend(const std::string & exe);
~ExecFrontend();
void ProcessNewMessage(const std::string & 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;
};
2016-10-18 16:03:51 +05:00
}
#endif