• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2025 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 I_INFRARED_EMITTER_ADAPTER_H
17 #define I_INFRARED_EMITTER_ADAPTER_H
18 
19 #include "hdi_base.h"
20 
21 namespace OHOS {
22 namespace HDI {
23 namespace Consumerir {
24 namespace V1_0 {
25 struct ConsumerIrFreqRange {
26     int32_t min { 0 };
27     int32_t max { 0 };
28 };
29 } // namespace V1_0
30 } // namespace Consumerir
31 } // namespace HDI
32 
33 namespace MMI {
34 class IInfraredEmitterAdapter  {
35 public:
36     IInfraredEmitterAdapter() = default;
37     virtual ~IInfraredEmitterAdapter() = default;
38 
39     virtual int32_t Transmit(int32_t carrierFreq, const std::vector<int32_t>& pattern, bool& ret) = 0;
40     virtual int32_t GetCarrierFreqs(bool& ret,
41         std::vector<OHOS::HDI::Consumerir::V1_0::ConsumerIrFreqRange>& range) = 0;
42 };
43 } // namespace MMI
44 } // namespace OHOS
45 #endif // I_INFRARED_EMITTER_ADAPTER_H