• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2022 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 /**
17  * @file i_inputer.h
18  *
19  * @brief The definition of pinAuth's inputer.
20  * @since 3.1
21  * @version 3.2
22  */
23 
24 #ifndef PINAUTH_IINPUTER_H
25 #define PINAUTH_IINPUTER_H
26 
27 #include "i_inputer_data.h"
28 
29 namespace OHOS {
30 namespace UserIam {
31 namespace PinAuth {
32 class IInputer {
33 public:
34 
35     /**
36      * @brief Obtains the pin data.
37      *
38      * @param authSubType PinAuth sub type.
39      * @param inputerData PinAuth's inputer data.
40      */
41     virtual void OnGetData(int32_t authSubType, std::shared_ptr<IInputerData> inputerData) = 0;
42 };
43 } // namespace PinAuth
44 } // namespace UserIam
45 } // namespace OHOS
46 
47 #endif // PINAUTH_IINPUTER_H
48