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_certificate_origin_support.h
18 * @author Leerang Song (leerang.song@samsung.com)
20 * @brief Header file for certificate
23 #ifndef VIEW_LOGIC_CERTIFICATE_SUPPORT_H_
24 #define VIEW_LOGIC_CERTIFICATE_SUPPORT_H_
28 #include <Elementary.h>
29 #include <dpl/wrt-dao-ro/common_dao_types.h>
30 #include <wrt-commons/certificate-dao/certificate_dao.h>
33 namespace CertificateDB {
37 namespace ViewModule {
38 class CertificateSupportImplementation;
40 class CertificateSupport
43 CertificateSupport(WidgetModel* widgetModel);
44 virtual ~CertificateSupport();
45 CertificateDB::CertificateDAO* getCertificateDAO();
48 std::unique_ptr<CertificateSupportImplementation> m_impl;
51 namespace CertificateSupportUtil {
55 CertificateDB::CertificateDAO* m_certiDao;
56 CertificateDB::CertificateData m_certiData;
60 CertificateDB::CertificateDAO* certiDao,
61 CertificateDB::CertificateData certiData,
64 m_certiData(certiData),
69 Evas_Object* createPopup(Evas_Object* window,
71 const char* checkText,
72 Evas_Smart_Cb buttonCallback,
74 Evas_Object* getPopup(Evas_Object* button);
75 Evas_Object* getCheck(Evas_Object* popup);
76 CertificateDB::Result getResult(Evas_Object* button);
78 } // namespace ViewModule
80 #endif // VIEW_LOGIC_CERTIFICATE_SUPPORT_H_