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 * @file view_logic_security_origin_support.h
18 * @author Jihoon Chung (jihoon.chung@samsung.com)
20 * @brief Header file for security origin
23 #ifndef VIEW_LOGIC_SECURITY_ORIGIN_SUPPORT_H_
24 #define VIEW_LOGIC_SECURITY_ORIGIN_SUPPORT_H_
28 #include <Elementary.h>
29 #include <dpl/wrt-dao-ro/common_dao_types.h>
30 #include <wrt-commons/security-origin-dao/security_origin_dao.h>
33 namespace SecurityOriginDB {
34 class SecurityOriginDAO;
37 namespace ViewModule {
39 class SecurityOriginSupportImplementation;
41 class SecurityOriginSupport
44 SecurityOriginSupport(WidgetModel* widgetModel);
45 virtual ~SecurityOriginSupport();
46 SecurityOriginDB::SecurityOriginDAO* getSecurityOriginDAO();
47 WrtDB::SettingsType isNeedPermissionCheck(
48 SecurityOriginDB::Feature feature);
51 std::unique_ptr<SecurityOriginSupportImplementation> m_impl;
54 namespace SecurityOriginSupportUtil {
58 SecurityOriginDB::SecurityOriginDAO* m_originDao;
59 SecurityOriginDB::SecurityOriginData m_originData;
63 SecurityOriginDB::SecurityOriginDAO* originDao,
64 SecurityOriginDB::SecurityOriginData originData,
66 m_originDao(originDao),
67 m_originData(originData),
73 Evas_Object* createPopup(Evas_Object* window,
75 const char* checkText,
76 Evas_Smart_Cb buttonCallback,
78 Evas_Object* getPopup(Evas_Object* button);
79 Evas_Object* getCheck(Evas_Object* popup);
80 SecurityOriginDB::Result getResult(Evas_Object* button);
82 } // namespace ViewModule
85 #endif // VIEW_LOGIC_SECURITY_ORIGIN_SUPPORT_H_