aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpg/function/GpgCommandExecutor.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/gpg/function/GpgCommandExecutor.h (renamed from include/gpg/function/GpgCommandExecutor.h)24
1 files changed, 12 insertions, 12 deletions
diff --git a/include/gpg/function/GpgCommandExecutor.h b/src/gpg/function/GpgCommandExecutor.h
index 1e64390a..d347a601 100644
--- a/include/gpg/function/GpgCommandExecutor.h
+++ b/src/gpg/function/GpgCommandExecutor.h
@@ -25,22 +25,22 @@
#ifndef GPGFRONTEND_ZH_CN_TS_GPGCOMMANDEXECUTOR_H
#define GPGFRONTEND_ZH_CN_TS_GPGCOMMANDEXECUTOR_H
-#include "GpgFrontend.h"
#include "gpg/GpgContext.h"
+#include "gpg/GpgFunctionObject.h"
namespace GpgFrontend {
- class GpgCommandExecutor : public QObject {
- Q_OBJECT
- public:
- void execute(const QStringList &arguments, const std::function<void(QProcess *)> &interactFunc);
+class GpgCommandExecutor : public QObject,
+ public SingletonFunctionObject<GpgCommandExecutor> {
+ Q_OBJECT
+public:
+ void Execute(const QStringList &arguments,
+ const std::function<void(QProcess *)> &interact_func);
- private:
+private:
+ GpgContext &ctx = GpgContext::GetInstance();
+};
- GpgContext &ctx = GpgContext::getInstance();
- };
+} // namespace GpgFrontend
-}
-
-
-#endif //GPGFRONTEND_ZH_CN_TS_GPGCOMMANDEXECUTOR_H
+#endif // GPGFRONTEND_ZH_CN_TS_GPGCOMMANDEXECUTOR_H