aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpg/function/GpgCommandExecutor.h
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-09-05 21:41:00 +0000
committerSaturneric <[email protected]>2021-09-05 21:41:00 +0000
commite2d30cc0194db74b77e3c06dbaf9c597bb82c860 (patch)
treed9df5302e59c59135495ee81657422cebd7b6092 /src/gpg/function/GpgCommandExecutor.h
parentRewrite the core. (diff)
downloadGpgFrontend-e2d30cc0194db74b77e3c06dbaf9c597bb82c860.tar.gz
GpgFrontend-e2d30cc0194db74b77e3c06dbaf9c597bb82c860.zip
Adjust the code structure.
Introduce log library. Remove Qt from the core code.
Diffstat (limited to '')
-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();