1 #ifndef DALI_INTERNAL_AUTOFILL_GROUP_IMPL_ECORE_WL_H
2 #define DALI_INTERNAL_AUTOFILL_GROUP_IMPL_ECORE_WL_H
5 * Copyright (c) 2019 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
22 #include <dali/public-api/object/base-object.h>
23 #ifdef CAPI_AUTOFILL_SUPPORT
25 #endif // CAPI_AUTOFILL_SUPPORT
29 #include <dali/internal/input/common/autofill-group-impl.h>
30 #include <dali/internal/input/tizen-wayland/autofill-item-impl-ecore-wl.h>
43 * @brief This class is used to group AutofillItems.
45 class AutofillGroupEcoreWl : public Dali::Internal::Adaptor::AutofillGroup
53 * @param[in] groupId A unique ID value of each AutofillGroup
54 * @return A public handle to the newly allocated AutofillGroup.
56 static Dali::AutofillGroup New( const std::string& groupId );
59 * @brief Initialize AutofillGroup constructor.
61 void Initialize() override;
64 * @copydoc Dali::AutofillGroup::GetId()
66 const std::string& GetId() const override;
68 #ifdef CAPI_AUTOFILL_SUPPORT
70 * @brief Gets Autofill framework group handle
71 * @return Autofill framework group handle, which type is 'autofill_view_info_h'
73 autofill_view_info_h GetAutofillGroupHandle();
76 * @brief Gets Autofill framework save group handle
77 * @return Autofill framework save group handle, which type is 'autofill_save_view_info_h'
79 autofill_save_view_info_h GetAutofillSaveGroupHandle();
80 #endif // CAPI_AUTOFILL_SUPPORT
83 * @copydoc Dali::AutofillGroup::AddAutofillItem()
85 void AddAutofillItem( Dali::AutofillItem item ) override;
88 * @copydoc Dali::AutofillGroup::GetAutofillItem()
90 Dali::AutofillItem GetAutofillItem( const std::string& id ) override;
93 * @brief Clears all lists of AutofillItem added in AutofillGroup.
95 void ClearAutofillItemList() override;
98 * @copydoc Dali::AutofillGroup::SaveAutofillData()
100 void SaveAutofillData() override;
103 * @copydoc Dali::AutofillGroup::RequestAuthentication()
105 void RequestAuthentication() override;
108 * @copydoc Dali::AutofillGroup::SendFillRequest()
110 void SendFillRequest() override;
116 explicit AutofillGroupEcoreWl( const std::string groupId );
122 ~AutofillGroupEcoreWl();
125 // Undefined copy constructor
126 explicit AutofillGroupEcoreWl( const AutofillGroupEcoreWl& autofillGroup ) = delete;
128 // Undefined assignment operator
129 AutofillGroupEcoreWl& operator=( AutofillGroupEcoreWl& autofillGroup ) = delete;
133 #ifdef CAPI_AUTOFILL_SUPPORT
134 autofill_view_info_h mAutofillGroupHandle; ///< The Autofill Framework group handle
135 autofill_save_view_info_h mAutofillSaveGroupHandle;
136 #endif // CAPI_AUTOFILL_SUPPORT
138 std::vector<Dali::AutofillItem> mAutofillItemList; ///< The List to add AutofillItem
139 std::string mGroupId; ///< The AutofillGroup ID
144 } // namespace Adaptor
146 } // namespace Internal
150 #endif // DALI_INTERNAL_AUTOFILL_GROUP_IMPL_ECORE_WL_H