2 * Copyright (c) 2011 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 * This class simply redirects the access requests to access control engine.
18 * The aim is to hide access control engine specific details from WRT modules.
19 * It also implements WRT_INTERFACE.h interfaces, so that ACE could access
20 * WRT specific and other information during the decision making.
22 * @file security_logic.h
23 * @author Przemyslaw Dobrowolski (p.dobrowolsk@samsung.com)
24 * @author Ming Jin(ming79.jin@samsung.com)
25 * @author Piotr Kozbial (p.kozbial@samsung.com)
27 * @brief Header file for security logic
29 #ifndef SECURITY_LOGIC_H
30 #define SECURITY_LOGIC_H
32 #include <dpl/ace/Request.h>
33 #include <dpl/ace/PolicyResult.h>
34 #include <dpl/ace/AbstractPolicyEnforcementPoint.h>
35 #include <dpl/ace/Preference.h>
36 #include <i_ace_settings_client.h>
37 #include <dpl/ace/PolicyEnforcementPoint.h>
39 //#include "ace_settings_logic.h"
42 * May only be created and used by SecurityController.
43 * There may be only one instance.
49 // initialize/terminate
54 // access control checkpoints
56 void authorizeWidgetInstall(
58 AbstractPolicyEnforcementPoint::ResponseReceiver);
60 PolicyResult checkFunctionCall(Request*);
61 // access control user settings
63 // void setWidgetPreference(
64 // std::string devCap,
65 // WidgetHandle widgetHandle,
66 // AceDB::PreferenceTypes preference);
68 // void setResourcePreference(
69 // std::string devCap,
70 // AceDB::PreferenceTypes preference);
72 // AceSettings::WidgetsPreferences getWidgetsPreferences();
74 // AceSettings::ResourcesPreferences getResourcesPreferences();
76 // void resetWidgetsPreferences();
78 // void resetResourcesPreferences();
80 PolicyEnforcementPoint m_policyEnforcementPoint;
81 // AceSettingsLogic m_aceSettingsLogic;
84 #endif // SECURITY_CONTROLLER_H