/* * Copyright (c) 2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef INFRARED_EMMITTER_DEF_H #define INFRARED_EMMITTER_DEF_H #include #include #include "hdi_base.h" namespace OHOS { namespace HDI { namespace V1_0 { using namespace OHOS::HDI; struct ConsumerIrFreqRange { int32_t min { 0 }; int32_t max { 0 }; }; class ConsumerIr : public HdiBase { public: DECLARE_HDI_DESCRIPTOR(u"ohos.hdi.v1_0.ConsumerIr"); virtual ~ConsumerIr() = default; static sptr Get(bool isStub = false); static sptr Get(const std::string &serviceName, bool isStub = false); virtual int32_t Transmit(int32_t carrierFreq, const std::vector &pattern, bool &status) = 0; virtual int32_t GetCarrierFreqs(bool &status, std::vector &range) = 0; virtual int32_t GetVersion(uint32_t &majorVer, uint32_t &minorVer) = 0; virtual bool IsProxy(); virtual const std::u16string GetDesc(); }; } // namespace V1_0 } // namespace HDI } // namespace OHOS #endif // INFRARED_EMMITTER_DEF_H