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 #ifndef CARDEMULATION_H
17 #define CARDEMULATION_H
18 
19 #include "nfc_sdk_common.h"
20 
21 namespace OHOS {
22 namespace NFC {
23 namespace KITS {
24 
25 class CardEmulation final {
26 public:
27     explicit CardEmulation();
28     ~CardEmulation();
29 
30     /**
31      * @Description Get an object of nfc cardEmulation.
32      * @param void
33      * @return an object of nfc cardEmulation
34      */
35     static CardEmulation &GetInstance();
36 
37     /**
38      * Checks whether a specified type of card emulation is supported.
39      * @param feature Indicates the card emulation type, {@code HCE}, {@code UICC}, or {@code ESE}.
40      * @return Returns {@code true} if the specified type of card emulation is supported; returns
41      * {@code false} otherwise.
42      */
43     bool IsSupported(FeatureType feature);
44 };
45 } // namespace KITS
46 } // namespace NFC
47 } // namespace OHOS
48 #endif // NFC_CONTROLLER_H