1bc2ed2b3Sopenharmony_ci/* 2bc2ed2b3Sopenharmony_ci * Copyright (C) 2022 Huawei Device Co., Ltd. 3bc2ed2b3Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 4bc2ed2b3Sopenharmony_ci * you may not use this file except in compliance with the License. 5bc2ed2b3Sopenharmony_ci * You may obtain a copy of the License at 6bc2ed2b3Sopenharmony_ci * 7bc2ed2b3Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 8bc2ed2b3Sopenharmony_ci * 9bc2ed2b3Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 10bc2ed2b3Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 11bc2ed2b3Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12bc2ed2b3Sopenharmony_ci * See the License for the specific language governing permissions and 13bc2ed2b3Sopenharmony_ci * limitations under the License. 14bc2ed2b3Sopenharmony_ci */ 15bc2ed2b3Sopenharmony_ci#ifndef NFC_CONTROLLER_PROXY_H 16bc2ed2b3Sopenharmony_ci#define NFC_CONTROLLER_PROXY_H 17bc2ed2b3Sopenharmony_ci 18bc2ed2b3Sopenharmony_ci 19bc2ed2b3Sopenharmony_ci#include "nfc_basic_proxy.h" 20bc2ed2b3Sopenharmony_ci#include "nfc_sdk_common.h" 21bc2ed2b3Sopenharmony_ci#include "indef_msg_callback.h" 22bc2ed2b3Sopenharmony_ci#include "infc_controller_callback.h" 23bc2ed2b3Sopenharmony_ci#include "infc_controller_service.h" 24bc2ed2b3Sopenharmony_ci#include "iremote_proxy.h" 25bc2ed2b3Sopenharmony_ci#include "iremote_object.h" 26bc2ed2b3Sopenharmony_ci 27bc2ed2b3Sopenharmony_cinamespace OHOS { 28bc2ed2b3Sopenharmony_cinamespace NFC { 29bc2ed2b3Sopenharmony_ciclass NfcControllerProxy final : public OHOS::IRemoteProxy<INfcControllerService>, public NfcBasicProxy { 30bc2ed2b3Sopenharmony_cipublic: 31bc2ed2b3Sopenharmony_ci explicit NfcControllerProxy(const OHOS::sptr<OHOS::IRemoteObject>& remote) 32bc2ed2b3Sopenharmony_ci : OHOS::IRemoteProxy<INfcControllerService>(remote), NfcBasicProxy(remote) 33bc2ed2b3Sopenharmony_ci { 34bc2ed2b3Sopenharmony_ci } 35bc2ed2b3Sopenharmony_ci ~NfcControllerProxy() override; 36bc2ed2b3Sopenharmony_ci 37bc2ed2b3Sopenharmony_ci int TurnOn() override; 38bc2ed2b3Sopenharmony_ci int TurnOff() override; 39bc2ed2b3Sopenharmony_ci int GetState() override; 40bc2ed2b3Sopenharmony_ci int IsNfcOpen(bool &isOpen) override; 41bc2ed2b3Sopenharmony_ci KITS::ErrorCode RegisterCallBack(const sptr<INfcControllerCallback> &callback, 42bc2ed2b3Sopenharmony_ci const std::string& type) override; 43bc2ed2b3Sopenharmony_ci KITS::ErrorCode UnRegisterCallBack(const std::string& type) override; 44bc2ed2b3Sopenharmony_ci OHOS::sptr<IRemoteObject> GetTagServiceIface() override; 45bc2ed2b3Sopenharmony_ci OHOS::sptr<IRemoteObject> GetHceServiceIface() override; 46bc2ed2b3Sopenharmony_ci KITS::ErrorCode RegNdefMsgCb(const sptr<INdefMsgCallback> &callback) override; 47bc2ed2b3Sopenharmony_ci#ifdef VENDOR_APPLICATIONS_ENABLED 48bc2ed2b3Sopenharmony_ci KITS::ErrorCode RegQueryApplicationCb(sptr<IQueryAppInfoCallback> callback) override; 49bc2ed2b3Sopenharmony_ci KITS::ErrorCode RegCardEmulationNotifyCb(sptr<IOnCardEmulationNotifyCb> callback) override; 50bc2ed2b3Sopenharmony_ci KITS::ErrorCode NotifyEventStatus(int eventType, int arg1, std::string arg2) override; 51bc2ed2b3Sopenharmony_ci#endif 52bc2ed2b3Sopenharmony_ci 53bc2ed2b3Sopenharmony_ciprivate: 54bc2ed2b3Sopenharmony_ci}; 55bc2ed2b3Sopenharmony_ci} // namespace NFC 56bc2ed2b3Sopenharmony_ci} // namespace OHOS 57bc2ed2b3Sopenharmony_ci#endif // NFC_CONTROLLER_PROXY_H 58