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-manager.h>
22 #include <dali/internal/input/common/autofill-manager-impl.h>
27 AutofillManager::AutofillManager()
31 AutofillManager::~AutofillManager()
35 AutofillManager AutofillManager::Get()
37 return Internal::Adaptor::AutofillManager::Get();
40 AutofillManager::AutofillManager(Internal::Adaptor::AutofillManager *impl)
45 /////////////////////////////////////////////// Autofill Item and Group ///////////////////////////////////////////////
47 Dali::AutofillItem AutofillManager::CreateAutofillItem( const std::string& id, const std::string& label, Dali::AutofillItem::Hint hint, bool isSensitive )
49 return Internal::Adaptor::GetImplementation(*this).CreateAutofillItem( id, label, hint, isSensitive );
52 Dali::AutofillGroup AutofillManager::CreateAutofillGroup( const std::string& groupId )
54 return Internal::Adaptor::GetImplementation(*this).CreateAutofillGroup( groupId );
58 /////////////////////////////////////////////// Autofill Authentication Information ///////////////////////////////////////////////
60 bool AutofillManager::IsAutofillDataPresent() const
62 return Internal::Adaptor::GetImplementation(*this).IsAutofillDataPresent();
65 bool AutofillManager::IsAuthenticationNeeded() const
67 return Internal::Adaptor::GetImplementation(*this).IsAuthenticationNeeded();
70 const std::string& AutofillManager::GetAuthenticationServiceName() const
72 return Internal::Adaptor::GetImplementation(*this).GetAuthenticationServiceName();
75 const std::string& AutofillManager::GetAuthenticationServiceMessage() const
77 return Internal::Adaptor::GetImplementation(*this).GetAuthenticationServiceMessage();
80 const std::string& AutofillManager::GetAuthenticationServiceImagePath() const
82 return Internal::Adaptor::GetImplementation(*this).GetAuthenticationServiceImagePath();
85 /////////////////////////////////////////////// Autofill Fill Response ///////////////////////////////////////////////
87 const std::string& AutofillManager::GetFillItemId() const
89 return Internal::Adaptor::GetImplementation(*this).GetFillItemId();
92 const std::string& AutofillManager::GetFillItemPresentationText() const
94 return Internal::Adaptor::GetImplementation(*this).GetFillItemPresentationText();
97 const std::string& AutofillManager::GetFillItemValue() const
99 return Internal::Adaptor::GetImplementation(*this).GetFillItemValue();
102 void AutofillManager::SaveAutofillData( Dali::AutofillGroup group )
104 Internal::Adaptor::GetImplementation(*this).SaveAutofillData( group );
110 AutofillManager::AuthSignalType& AutofillManager::AuthenticationReceivedSignal()
112 return Internal::Adaptor::GetImplementation(*this).AuthenticationReceivedSignal();
115 AutofillManager::FillSignalType& AutofillManager::FillResponseReceivedSignal()
117 return Internal::Adaptor::GetImplementation(*this).FillResponseReceivedSignal();
120 AutofillManager::ListSignalType& AutofillManager::ListEventSignal()
122 return Internal::Adaptor::GetImplementation(*this).ListEventSignal();