GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
GpgCommandExecutor.h
1
29#ifndef GPGFRONTEND_ZH_CN_TS_GPGCOMMANDEXECUTOR_H
30#define GPGFRONTEND_ZH_CN_TS_GPGCOMMANDEXECUTOR_H
31
32#ifndef WINDOWS
33#include <boost/process.hpp>
34#endif
35
36#include "core/GpgContext.h"
37#include "core/GpgFunctionObject.h"
38
39namespace GpgFrontend {
40
45class GPGFRONTEND_CORE_EXPORT GpgCommandExecutor : public SingletonFunctionObject<GpgCommandExecutor> {
46 public:
52 explicit GpgCommandExecutor(
54
55#ifndef WINDOWS
56
63 void Execute(StringArgsRef arguments,
64 const std::function<void(boost::process::async_pipe &in,
65 boost::process::async_pipe &out)>
66 &interact_func);
67#endif
68
69 private:
72};
73
74} // namespace GpgFrontend
75
76#endif // GPGFRONTEND_ZH_CN_TS_GPGCOMMANDEXECUTOR_H
Extra commands related to GPG.
Definition: GpgCommandExecutor.h:45
Definition: GpgContext.h:60
Definition: GpgFunctionObject.h:49
static int GetDefaultChannel()
Get the Default Channel object.
Definition: GpgFunctionObject.h:127
static GpgContext & GetInstance(int channel=GpgFrontend::GPGFRONTEND_DEFAULT_CHANNEL)
Get the Instance object.
Definition: GpgFunctionObject.h:57
int GetChannel() const
Get the Channel object.
Definition: GpgFunctionObject.h:134
Definition: CoreCommonUtil.cpp:29