int res = PrivacyDb::getInstance()->setPrivacySetting(pkgId, privacyId, enabled);\r
TryReturn( res == PRIV_MGR_ERROR_SUCCESS, res, , "privacyDb::setPrivacySetting : %d", res);\r
\r
- res = m_notificationServer.notify(pkgId, privacyId);\r
- TryReturn( res == PRIV_MGR_ERROR_SUCCESS, res, , "NotificationServer::notify : %d", res);\r
+ res = m_notificationServer.notifySettingChanged(pkgId, privacyId);\r
+ TryReturn( res == PRIV_MGR_ERROR_SUCCESS, res, , "NotificationServer::notifySettingChanged : %d", res);\r
\r
return res;\r
}\r
\r
\r
int\r
-PrivacyManagerServer::addAppPackagePrivacyInfo(const std::string pkgId, const std::list < std::string > privilegeList)\r
+PrivacyManagerServer::addAppPackagePrivacyInfo(const std::string pkgId, const std::list < std::string > privilegeList, bool privacyPopupRequired)\r
{\r
- return PrivacyDb::getInstance()->addAppPackagePrivacyInfo(pkgId, privilegeList);\r
+ return PrivacyDb::getInstance()->addAppPackagePrivacyInfo(pkgId, privilegeList, privacyPopupRequired);\r
}\r
\r
int\r
PrivacyManagerServer::removeAppPackagePrivacyInfo(const std::string pkgId)\r
{\r
- return PrivacyDb::getInstance()->removeAppPackagePrivacyInfo(pkgId);\r
+ int res = PrivacyDb::getInstance()->removeAppPackagePrivacyInfo(pkgId);\r
+ TryReturn( res == PRIV_MGR_ERROR_SUCCESS, res, , "privacyDb::removeAppPackagePrivacyInfo : %d", res);\r
+\r
+ res = m_notificationServer.notifyPkgRemoved(pkgId);\r
+ TryReturn( res == PRIV_MGR_ERROR_SUCCESS, res, , "NotificationServer::notifyPkgRemoved : %d", res);\r
+\r
+ return res;\r
}\r
\r
int\r