2 * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef _PRIVACYINFOSERVICE_H_
18 #define _PRIVACYINFOSERVICE_H_
20 #include "SocketConnection.h"
21 #include "SocketService.h"
23 class PrivacyInfoService {
25 inline static std::string getInterfaceName(void)
27 return "PrivacyInfoService";
31 static void registerCallbacks(SocketService* pSocketService)
33 pSocketService->registerServiceCallback(getInterfaceName(), std::string("PgAddPrivacyAccessLog"), PgAddPrivacyAccessLog);
34 pSocketService->registerServiceCallback(getInterfaceName(), std::string("PgAddMonitorPolicy"), PgAddMonitorPolicy);
35 pSocketService->registerServiceCallback(getInterfaceName(), std::string("PgDeleteLogsByPackageId"), PgDeleteLogsByPackageId);
36 pSocketService->registerServiceCallback(getInterfaceName(), std::string("PgDeleteMonitorPolicyByPackageId"), PgDeleteMonitorPolicyByPackageId);
37 pSocketService->registerServiceCallback(getInterfaceName(), std::string("PgForeachTotalPrivacyCountOfPackage"), PgForeachTotalPrivacyCountOfPackage);
38 pSocketService->registerServiceCallback(getInterfaceName(), std::string("PgForeachTotalPrivacyCountOfPrivacy"), PgForeachTotalPrivacyCountOfPrivacy);
39 pSocketService->registerServiceCallback(getInterfaceName(), std::string("PgForeachPrivacyCountByPrivacyId"), PgForeachPrivacyCountByPrivacyId);
40 pSocketService->registerServiceCallback(getInterfaceName(), std::string("PgForeachPrivacyCountByPackageId"), PgForeachPrivacyCountByPackageId);
41 pSocketService->registerServiceCallback(getInterfaceName(), std::string("PgForeachPackageIdUsingPrivacy"), PgForeachPackageIdUsingPrivacy);
42 pSocketService->registerServiceCallback(getInterfaceName(), std::string("PgForeachPackageInfoByPrivacyId"), PgForeachPackageInfoByPrivacyId);
43 pSocketService->registerServiceCallback(getInterfaceName(), std::string("PgForeachMonitorPolicyByPackageId"), PgForeachMonitorPolicyByPackageId);
44 pSocketService->registerServiceCallback(getInterfaceName(), std::string("PgGetMonitorPolicy"), PgGetMonitorPolicy);
45 pSocketService->registerServiceCallback(getInterfaceName(), std::string("PgGetAllMonitorPolicy"), PgGetAllMonitorPolicy);
46 pSocketService->registerServiceCallback(getInterfaceName(), std::string("PgCheckPrivacyPackage"), PgCheckPrivacyPackage);
47 pSocketService->registerServiceCallback(getInterfaceName(), std::string("PgUpdateMonitorPolicy"), PgUpdateMonitorPolicy);
48 pSocketService->registerServiceCallback(getInterfaceName(), std::string("PgGetMainMonitorPolicy"), PgGetMainMonitorPolicy);
49 pSocketService->registerServiceCallback(getInterfaceName(), std::string("PgUpdateMainMonitorPolicy"), PgUpdateMainMonitorPolicy);
50 pSocketService->registerServiceCallback(getInterfaceName(), std::string("PgDeleteAllLogs"), PgDeleteAllLogs);
53 static void PgAddPrivacyAccessLog(SocketConnection* pConnector);
54 static void PgAddMonitorPolicy(SocketConnection* pConnector);
55 static void PgDeleteLogsByPackageId(SocketConnection* pConnector);
56 static void PgDeleteMonitorPolicyByPackageId(SocketConnection* pConnector);
57 static void PgForeachTotalPrivacyCountOfPackage(SocketConnection* pConnector);
58 static void PgForeachTotalPrivacyCountOfPrivacy(SocketConnection* pConnector);
59 static void PgForeachPrivacyCountByPrivacyId(SocketConnection* pConnector);
60 static void PgForeachPrivacyCountByPackageId(SocketConnection* pConnector);
61 static void PgForeachPackageIdUsingPrivacy(SocketConnection* pConnector);
62 static void PgForeachPackageInfoByPrivacyId(SocketConnection* pConnector);
63 static void PgForeachMonitorPolicyByPackageId(SocketConnection* pConnector);
64 static void PgGetMonitorPolicy(SocketConnection* pConnector);
65 static void PgGetAllMonitorPolicy(SocketConnection* pConnector);
66 static void PgCheckPrivacyPackage(SocketConnection* pConnector);
67 static void PgUpdateMonitorPolicy(SocketConnection* pConnector);
68 static void PgGetMainMonitorPolicy(SocketConnection* pConnector);
69 static void PgUpdateMainMonitorPolicy(SocketConnection* pConnector);
70 static void PgDeleteAllLogs(SocketConnection* pConnector);
72 #endif // _PRIVACYINFOSERVICE_H_