2 * Copyright (c) 2019 Samsung Electronics Co., Ltd.
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.
19 #include <dali-toolkit/devel-api/controls/text-controls/autofill-container.h>
22 #include <dali-toolkit/internal/controls/text-controls/autofill-container-impl.h>
30 AutofillContainer AutofillContainer::New( const std::string& name )
32 return Internal::AutofillContainer::New( name );
35 AutofillContainer::AutofillContainer()
39 AutofillContainer::AutofillContainer( const AutofillContainer& handle )
44 AutofillContainer& AutofillContainer::operator=( const AutofillContainer& handle )
46 BaseHandle::operator=(handle);
50 AutofillContainer::~AutofillContainer()
54 AutofillContainer AutofillContainer::DownCast( BaseHandle handle )
56 return AutofillContainer( dynamic_cast<Internal::AutofillContainer*>( handle.GetObjectPtr() ) );
60 void AutofillContainer::AddAutofillItem( Control control, Property::Index propertyIndex, const std::string& id, const std::string& label, Dali::AutofillItem::Hint hint, bool isSensitive )
62 GetImpl(*this).AddAutofillItem( control, propertyIndex, id, label, hint, isSensitive );
65 void AutofillContainer::RemoveAutofillItem( Control control )
67 GetImpl(*this).RemoveAutofillItem( control );
70 void AutofillContainer::SetFocusedControl( Toolkit::Control focused )
72 GetImpl(*this).SetFocusedControl( focused );
75 Toolkit::Control AutofillContainer::GetFocusedControl()
77 return GetImpl(*this).GetFocusedControl();
80 void AutofillContainer::SaveAutofillData()
82 GetImpl(*this).SaveAutofillData();
85 void AutofillContainer::RequestFillData()
87 GetImpl(*this).RequestFillData();
90 const std::string& AutofillContainer::GetAutofillServiceName() const
92 return GetImpl(*this).GetAutofillServiceName();
95 const std::string& AutofillContainer::GetAutofillServiceMessage() const
97 return GetImpl(*this).GetAutofillServiceMessage();
100 const std::string& AutofillContainer::GetAutofillServiceImagePath() const
102 return GetImpl(*this).GetAutofillServiceImagePath();
105 unsigned int AutofillContainer::GetListCount()
107 return GetImpl(*this).GetListCount();
110 const std::string& AutofillContainer::GetListItem( unsigned int index ) const
112 return GetImpl(*this).GetListItem( index );
115 void AutofillContainer::SetSelectedItem( const std::string& selected )
117 GetImpl(*this).SetSelectedItem( selected );
120 AutofillContainer::AutofillContainer( Internal::AutofillContainer* implementation )
121 : BaseHandle(implementation)
125 AutofillContainer::AuthenticationSignalType& AutofillContainer::AutofillServiceShownSignal()
127 return GetImpl(*this).AutofillServiceShownSignal();
130 AutofillContainer::ListShownSignalType& AutofillContainer::AutofillListShownSignal()
132 return GetImpl(*this).AutofillListShownSignal();
135 } // namespace Toolkit