summaryrefslogtreecommitdiff
path: root/src/service/logic.cpp
diff options
context:
space:
mode:
authorsangwan.kwon <sangwan.kwon@samsung.com>2016-07-18 09:35:50 +0900
committersangwan.kwon <sangwan.kwon@samsung.com>2016-07-22 14:59:37 +0900
commit99659ec45d64234927b2fca33ad58e0648e573ca (patch)
tree22fcd8780573c887ec626e2f610515242c42098e /src/service/logic.cpp
parentf744139cf01c9f6bc19968cd728965fb874c194a (diff)
downloadcert-checker-99659ec45d64234927b2fca33ad58e0648e573ca.tar.gz
cert-checker-99659ec45d64234927b2fca33ad58e0648e573ca.tar.bz2
cert-checker-99659ec45d64234927b2fca33ad58e0648e573ca.zip
Replace popup architecture to systemd service
[AS-IS] * popup used to pipe for IPC [TO-BE] * use to systemd service Change-Id: Ie203c8a4dbcb071fd3896e0c7af1bb8cd7280dbf Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
Diffstat (limited to 'src/service/logic.cpp')
-rw-r--r--src/service/logic.cpp13
1 files changed, 6 insertions, 7 deletions
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)