[Tizen] Add DALi Autofill implementation
[platform/core/uifw/dali-adaptor.git] / dali / devel-api / adaptor-framework / autofill-group.cpp
1 /*
2  * Copyright (c) 2019 Samsung Electronics Co., Ltd.
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  *
16  */
17
18 // CLASS HEADER
19 #include <dali/devel-api/adaptor-framework/autofill-group.h>
20
21 // INTERNAL INCLUDES
22 #include <dali/internal/input/common/autofill-group-impl.h>
23
24 namespace Dali
25 {
26
27 AutofillGroup::AutofillGroup()
28 {
29 }
30
31 AutofillGroup::AutofillGroup( Internal::Adaptor::AutofillGroup* internal )
32 : BaseHandle( internal )
33 {
34 }
35
36 AutofillGroup::~AutofillGroup()
37 {
38 }
39
40 AutofillGroup::AutofillGroup( const AutofillGroup& group )
41 : BaseHandle( group )
42 {
43 }
44
45 AutofillGroup& AutofillGroup::operator=( const AutofillGroup& group )
46 {
47   if( *this != group )
48   {
49     BaseHandle::operator=( group );
50   }
51   return *this;
52 }
53
54 AutofillGroup AutofillGroup::DownCast( BaseHandle handle )
55 {
56   return AutofillGroup( dynamic_cast< Internal::Adaptor::AutofillGroup* >( handle.GetObjectPtr() ) );
57 }
58
59 const std::string& AutofillGroup::GetId() const
60 {
61   return Internal::Adaptor::GetImplementation(*this).GetId();
62 }
63
64 void AutofillGroup::AddAutofillItem( Dali::AutofillItem item )
65 {
66   Internal::Adaptor::GetImplementation(*this).AddAutofillItem( item );
67 }
68
69 Dali::AutofillItem AutofillGroup::GetAutofillItem( const std::string& id )
70 {
71   return Internal::Adaptor::GetImplementation(*this).GetAutofillItem( id );
72 }
73
74 void AutofillGroup::SaveAutofillData()
75 {
76   Internal::Adaptor::GetImplementation(*this).SaveAutofillData();
77 }
78
79 void AutofillGroup::RequestAuthentication()
80 {
81   Internal::Adaptor::GetImplementation(*this).RequestAuthentication();
82 }
83
84 void AutofillGroup::SendFillRequest()
85 {
86   Internal::Adaptor::GetImplementation(*this).SendFillRequest();
87 }
88
89 } // namespace Dali