diff options
author | Saturneric <[email protected]> | 2021-09-05 15:02:19 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-09-05 15:02:19 +0000 |
commit | 39440522111abf3adeef6b56cb23722119fbf3c2 (patch) | |
tree | 5979b3808d58c8c576e288004877d826556b4cda /src/gpg/function/GpgCommandExecutor.h | |
parent | Modified ResultAnalyse. (diff) | |
download | GpgFrontend-39440522111abf3adeef6b56cb23722119fbf3c2.tar.gz GpgFrontend-39440522111abf3adeef6b56cb23722119fbf3c2.zip |
Rewrite the core.
Adjust the structure.
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 |