From: SEUNGTAEK HAN Date: Fri, 23 Jun 2017 02:05:02 +0000 (+0900) Subject: fix bug X-Git-Tag: accepted/tizen/4.0/unified/20170816.012516^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=215dbe3882f756dbfafd84b76a633269ad9a2dc5;p=platform%2Fcore%2Fsecurity%2Fprivacy-guard.git fix bug Change-Id: Ifee4aa8a492657539fbf080956b45b5f75ce02c7 --- 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)