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/devel-api/adaptor-framework/autofill-item.h>
22 #include <dali/internal/input/common/autofill-item-impl.h>
27 AutofillItem::AutofillItem()
31 AutofillItem::AutofillItem( Internal::Adaptor::AutofillItem* internal )
32 : BaseHandle( internal )
36 AutofillItem::~AutofillItem()
40 AutofillItem::AutofillItem( const AutofillItem& item )
45 AutofillItem& AutofillItem::operator=( const AutofillItem& item )
49 BaseHandle::operator=( item );
54 AutofillItem AutofillItem::DownCast( BaseHandle handle )
56 return AutofillItem( dynamic_cast< Internal::Adaptor::AutofillItem* >( handle.GetObjectPtr() ) );
60 const std::string& AutofillItem::GetId() const
62 return Internal::Adaptor::GetImplementation(*this).GetId();
65 const std::string& AutofillItem::GetLabel() const
67 return Internal::Adaptor::GetImplementation(*this).GetLabel();
70 Dali::AutofillItem::Hint AutofillItem::GetHint() const
72 return Internal::Adaptor::GetImplementation(*this).GetHint();
75 bool AutofillItem::IsSensitiveData() const
77 return Internal::Adaptor::GetImplementation(*this).IsSensitiveData();
80 void AutofillItem::SetSaveValue( const std::string& value )
82 Internal::Adaptor::GetImplementation(*this).SetSaveValue( value );
85 const std::string& AutofillItem::GetSaveValue() const
87 return Internal::Adaptor::GetImplementation(*this).GetSaveValue();
90 const std::string& AutofillItem::GetPresentationText( int index ) const
92 return Internal::Adaptor::GetImplementation(*this).GetPresentationText( index );
95 const std::string& AutofillItem::GetFillValue( int index ) const
97 return Internal::Adaptor::GetImplementation(*this).GetFillValue( index );
100 void AutofillItem::ClearPresentationTextList()
102 Internal::Adaptor::GetImplementation(*this).ClearPresentationTextList();
105 void AutofillItem::ClearFillValueList()
107 Internal::Adaptor::GetImplementation(*this).ClearFillValueList();
110 unsigned int AutofillItem::GetFillValueCount()
112 return Internal::Adaptor::GetImplementation(*this).GetFillValueCount();