1 #ifndef DALI_INTERNAL_AUTOFILL_GROUP_IMPL_X_H
2 #define DALI_INTERNAL_AUTOFILL_GROUP_IMPL_X_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>
26 #include <dali/internal/input/common/autofill-group-impl.h>
27 #include <dali/internal/input/ubuntu-x11/autofill-item-impl-x.h>
40 * @brief This class is used to group AutofillItems.
42 class AutofillGroupX : public Dali::Internal::Adaptor::AutofillGroup
50 * @param[in] groupId A unique ID value of each AutofillGroup
51 * @return A public handle to the newly allocated AutofillGroup.
53 static Dali::AutofillGroup New( const std::string& groupId );
56 * @brief Initialize AutofillGroup constructor.
58 void Initialize() override;
61 * @copydoc Dali::AutofillGroup::GetId()
63 const std::string& GetId() const override;
66 * @copydoc Dali::AutofillGroup::AddAutofillItem()
68 void AddAutofillItem( Dali::AutofillItem item ) override;
71 * @copydoc Dali::AutofillGroup::GetAutofillItem()
73 Dali::AutofillItem GetAutofillItem( const std::string& id ) override;
76 * @brief Clears all lists of AutofillItem added in AutofillGroup.
78 void ClearAutofillItemList() override;
81 * @copydoc Dali::AutofillGroup::SaveAutofillData()
83 void SaveAutofillData() override;
86 * @copydoc Dali::AutofillGroup::RequestAuthentication()
88 void RequestAuthentication() override;
91 * @copydoc Dali::AutofillGroup::SendFillRequest()
93 void SendFillRequest() override;
99 explicit AutofillGroupX( const std::string groupId );
108 // Undefined copy constructor
109 explicit AutofillGroupX( const AutofillGroupX& autofillGroup ) = delete;
111 // Undefined assignment operator
112 AutofillGroupX& operator=( AutofillGroupX& autofillGroup ) = delete;
115 std::vector<Dali::AutofillItem> mAutofillItemList; ///< The List to add AutofillItem
116 std::string mGroupId; ///< The AutofillGroup ID
121 } // namespace Adaptor
123 } // namespace Internal
127 #endif // DALI_INTERNAL_AUTOFILL_GROUP_IMPL_X_H