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.

29 lines
537 B
C++
Raw Normal View History

2016-10-18 07:03:51 -04:00
#ifndef NNTPCHAN_EXEC_FRONTEND_HPP
#define NNTPCHAN_EXEC_FRONTEND_HPP
2016-10-18 08:17:40 -04:00
#include "frontend.hpp"
#include <deque>
2016-10-18 07:03:51 -04:00
namespace nntpchan
{
2017-10-17 10:29:56 -04:00
class ExecFrontend : public Frontend
{
public:
2018-05-06 10:21:58 -04:00
ExecFrontend(const std::string &exe, char * const* env);
2016-10-18 07:03:51 -04:00
2017-10-17 10:29:56 -04:00
~ExecFrontend();
2016-10-18 08:17:40 -04:00
2017-10-17 10:29:56 -04:00
void ProcessNewMessage(const fs::path &fpath);
bool AcceptsNewsgroup(const std::string &newsgroup);
bool AcceptsMessage(const std::string &msgid);
2016-10-18 08:17:40 -04:00
2017-10-17 10:29:56 -04:00
private:
int Exec(std::deque<std::string> args);
2016-10-18 08:17:40 -04:00
2017-10-17 10:29:56 -04:00
private:
2018-05-06 10:21:58 -04:00
char * const* m_Environ;
2017-10-17 10:29:56 -04:00
std::string m_exec;
};
2016-10-18 07:03:51 -04:00
}
#endif