aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpg/function/GpgCommandExecutor.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpg/function/GpgCommandExecutor.h')
-rw-r--r--src/gpg/function/GpgCommandExecutor.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/gpg/function/GpgCommandExecutor.h b/src/gpg/function/GpgCommandExecutor.h
index d347a601..01904fd3 100644
--- a/src/gpg/function/GpgCommandExecutor.h
+++ b/src/gpg/function/GpgCommandExecutor.h
@@ -28,14 +28,15 @@
#include "gpg/GpgContext.h"
#include "gpg/GpgFunctionObject.h"
-namespace GpgFrontend {
+#include <boost/process.hpp>
-class GpgCommandExecutor : public QObject,
- public SingletonFunctionObject<GpgCommandExecutor> {
- Q_OBJECT
+namespace GpgFrontend {
+class GpgCommandExecutor : public SingletonFunctionObject<GpgCommandExecutor> {
public:
- void Execute(const QStringList &arguments,
- const std::function<void(QProcess *)> &interact_func);
+ void Execute(StringArgsRef arguments,
+ const std::function<void(boost::process::async_pipe &in,
+ boost::process::async_pipe &out)>
+ &interact_func);
private:
GpgContext &ctx = GpgContext::GetInstance();