From 215dbe3882f756dbfafd84b76a633269ad9a2dc5 Mon Sep 17 00:00:00 2001 From: SEUNGTAEK HAN Date: Fri, 23 Jun 2017 11:05:02 +0900 Subject: [PATCH] fix bug Change-Id: Ifee4aa8a492657539fbf080956b45b5f75ce02c7 --- server/inc/PrivacyInfoService.h | 6 ++---- server/src/service/PrivacyInfoService.cpp | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/server/inc/PrivacyInfoService.h b/server/inc/PrivacyInfoService.h index ad4f7fc..e80d3ab 100755 --- a/server/inc/PrivacyInfoService.h +++ b/server/inc/PrivacyInfoService.h @@ -32,9 +32,8 @@ public: { pSocketService->registerServiceCallback(getInterfaceName(), std::string("PgAddPrivacyAccessLog"), PgAddPrivacyAccessLog); pSocketService->registerServiceCallback(getInterfaceName(), std::string("PgAddMonitorPolicy"), PgAddMonitorPolicy); - //pSocketService->registerServiceCallback(getInterfaceName(), std::string("PgDeleteAllLogsAndMonitorPolicy"), PgDeleteAllLogsAndMonitorPolicy); pSocketService->registerServiceCallback(getInterfaceName(), std::string("PgDeleteLogsByPackageId"), PgDeleteLogsByPackageId); - //pSocketService->registerServiceCallback(getInterfaceName(), std::string("PgDeleteMonitorPolicyByPackageId"), PgDeleteMonitorPolicyByPackageId); + pSocketService->registerServiceCallback(getInterfaceName(), std::string("PgDeleteMonitorPolicyByPackageId"), PgDeleteMonitorPolicyByPackageId); pSocketService->registerServiceCallback(getInterfaceName(), std::string("PgForeachTotalPrivacyCountOfPackage"), PgForeachTotalPrivacyCountOfPackage); pSocketService->registerServiceCallback(getInterfaceName(), std::string("PgForeachTotalPrivacyCountOfPrivacy"), PgForeachTotalPrivacyCountOfPrivacy); pSocketService->registerServiceCallback(getInterfaceName(), std::string("PgForeachPrivacyCountByPrivacyId"), PgForeachPrivacyCountByPrivacyId); @@ -53,9 +52,8 @@ public: static void PgAddPrivacyAccessLog(SocketConnection* pConnector); static void PgAddMonitorPolicy(SocketConnection* pConnector); - //static void PgDeleteAllLogsAndMonitorPolicy(SocketConnection* pConnector); static void PgDeleteLogsByPackageId(SocketConnection* pConnector); - //static void PgDeleteMonitorPolicyByPackageId(SocketConnection* pConnector); + static void PgDeleteMonitorPolicyByPackageId(SocketConnection* pConnector); static void PgForeachTotalPrivacyCountOfPackage(SocketConnection* pConnector); static void PgForeachTotalPrivacyCountOfPrivacy(SocketConnection* pConnector); static void PgForeachPrivacyCountByPrivacyId(SocketConnection* pConnector); diff --git a/server/src/service/PrivacyInfoService.cpp b/server/src/service/PrivacyInfoService.cpp index 052475f..280c48d 100755 --- a/server/src/service/PrivacyInfoService.cpp +++ b/server/src/service/PrivacyInfoService.cpp @@ -76,7 +76,7 @@ PrivacyInfoService::PgDeleteLogsByPackageId(SocketConnection* pConnector) pConnector->write(result); } -/*void +void PrivacyInfoService::PgDeleteMonitorPolicyByPackageId(SocketConnection* pConnector) { std::string packageId; @@ -86,7 +86,7 @@ PrivacyInfoService::PgDeleteMonitorPolicyByPackageId(SocketConnection* pConnecto int result = PrivacyGuardDb::getInstance()->PgDeleteMonitorPolicyByPackageId(packageId); pConnector->write(result); -}*/ +} void PrivacyInfoService::PgForeachTotalPrivacyCountOfPackage(SocketConnection* pConnector) -- 2.7.4