aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/thread/CtxCheckTask.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2023-11-07 07:18:06 +0000
committersaturneric <[email protected]>2023-11-07 07:18:06 +0000
commit3ad7fecdb6458fdd6f146bed19fe643c7f93e905 (patch)
tree522f7a5dd0389ad0771d01a50ea49ef646940894 /src/core/thread/CtxCheckTask.cpp
parentrefactor: improve the code structure of core (diff)
downloadGpgFrontend-3ad7fecdb6458fdd6f146bed19fe643c7f93e905.tar.gz
GpgFrontend-3ad7fecdb6458fdd6f146bed19fe643c7f93e905.zip
refactor: remove CommonUtils at core
Diffstat (limited to 'src/core/thread/CtxCheckTask.cpp')
-rw-r--r--src/core/thread/CtxCheckTask.cpp18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/core/thread/CtxCheckTask.cpp b/src/core/thread/CtxCheckTask.cpp
index 4ca3978d..3c24ca79 100644
--- a/src/core/thread/CtxCheckTask.cpp
+++ b/src/core/thread/CtxCheckTask.cpp
@@ -29,18 +29,20 @@
#include "core/thread/CtxCheckTask.h"
#include "core/GpgCoreInit.h"
-#include "core/common/CoreCommonUtil.h"
+#include "core/function/CoreSignalStation.h"
#include "core/function/gpg/GpgContext.h"
#include "core/function/gpg/GpgKeyGetter.h"
#include "thread/Task.h"
-GpgFrontend::Thread::CoreInitTask::CoreInitTask() : Task("ctx_check_task") {
+namespace GpgFrontend {
+
+Thread::CoreInitTask::CoreInitTask() : Task("ctx_check_task") {
connect(this, &CoreInitTask::SignalGnupgNotInstall,
- CoreCommonUtil::GetInstance(),
- &CoreCommonUtil::SignalGnupgNotInstall);
+ CoreSignalStation::GetInstance(),
+ &CoreSignalStation::SignalGnupgNotInstall);
}
-void GpgFrontend::Thread::CoreInitTask::Run() {
+void Thread::CoreInitTask::Run() {
// Init GpgFrontend Core
InitGpgFrontendCore();
@@ -49,8 +51,10 @@ void GpgFrontend::Thread::CoreInitTask::Run() {
emit SignalGnupgNotInstall();
}
// Try flushing key cache
- else
- GpgFrontend::GpgKeyGetter::GetInstance().FlushKeyCache();
+ else {
+ GpgKeyGetter::GetInstance().FlushKeyCache();
+ }
SPDLOG_DEBUG("ctx check task runnable done");
}
+} // namespace GpgFrontend