diff options
Diffstat (limited to 'src/service')
-rw-r--r-- | src/service/app.h | 2 | ||||
-rw-r--r-- | src/service/logic.cpp | 13 |
2 files changed, 7 insertions, 8 deletions
diff --git a/src/service/app.h b/src/service/app.h index a12703d..dfd2d4c 100644 --- a/src/service/app.h +++ b/src/service/app.h @@ -36,7 +36,7 @@ typedef std::list<std::string> chain_t; typedef std::list<chain_t> signatures_t; struct app_t { - enum class verified_t : int32_t { + enum class verified_t : int { NO = 0, YES = 1, UNKNOWN = 2 diff --git a/src/service/logic.cpp b/src/service/logic.cpp index 0bef2ee..595f00f 100644 --- a/src/service/logic.cpp +++ b/src/service/logic.cpp @@ -26,8 +26,8 @@ #include <set> #include <cchecker/sql_query.h> -#include <cchecker/UIBackend.h> +#include "ui/popup-client.h" #include "common/binary-queue.h" #include "common/log.h" @@ -477,16 +477,15 @@ void Logic::process_queue(void) bool Logic::call_ui(const app_t &app) { - UI::UIBackend ui; - - if (ui.call_popup(app)) { // If calling popup or app_controll service will fail, + UI::PopupClient client; + if (client.dispatch(app)) { // If calling popup or app_controll service will fail, // do not remove application, and ask about it once again later LogDebug("Popup shown correctly. Application will be removed from DB and buffer"); return true; + } else { + LogDebug("Popup error. Application will be marked to show popup later."); + return false; } - - LogDebug("Popup error. Application will be marked to show popup later."); - return false; } bool Logic::process_app(app_t &app) |