2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
19 * @file FWebCtrl_CertificateConfirmPopup.h
20 * @brief The file contains the definition of _CertificateConfirmPopup class.
23 #ifndef _FWEB_CTRL_INTERNAL_CERTIFICATE_CONFIRM_POPUP_H_
24 #define _FWEB_CTRL_INTERNAL_CERTIFICATE_CONFIRM_POPUP_H_
26 #include <unique_ptr.h>
28 #include <FBaseString.h>
29 #include "FWebCtrl_WebPopup.h"
32 namespace Tizen { namespace Web { namespace Controls
35 enum _IdButtonCertificatePopup
37 ID_BUTTON_CERTIFICATE_ALLOW,
38 ID_BUTTON_CERTIFICATE_CANCEL,
39 ID_BUTTON_CERTIFICATE_VIEW,
40 ID_BUTTON_CERTIFICATE_CLOSE
43 enum _CertificatePopupMode
45 CERTIFICATE_POPUP_MODE_USER_CONFIRM,
46 CERTIFICATE_POPUP_MODE_VIEW
49 class _CertificateConfirmPopup
57 _CertificateConfirmPopup(void);
62 virtual ~_CertificateConfirmPopup(void);
64 result Construct(_CertificatePopupMode certPopupMode, Ewk_Certificate_Policy_Decision* pPolicy);
66 virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
68 bool GetConfirmResult() const;
71 _CertificateConfirmPopup(const _CertificateConfirmPopup&);
73 _CertificateConfirmPopup& operator =(const _CertificateConfirmPopup&);
75 result GetMessageFromPolicy(Tizen::Base::String& message);
77 result GenerateCertifiate(Tizen::Base::String& certString);
79 Tizen::Base::String GetStringOfToken(const Tizen::Base::String& parseString, const Tizen::Base::String& parseToken);
82 _CertificatePopupMode __certPopupMode;
85 Ewk_Certificate_Policy_Decision* __pCertificatePolicyData;
86 }; // _CertificateConfirmPopup
88 }}} // Tizen::Web::Controls
89 #endif // _FWEB_CTRL_INTERNAL_CERTIFICATE_CONFIRM_POPUP_H_