1595d5899Sopenharmony_ci/*
2595d5899Sopenharmony_ci * Copyright (c) 2023-2023 Huawei Device Co., Ltd.
3595d5899Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
4595d5899Sopenharmony_ci * you may not use this file except in compliance with the License.
5595d5899Sopenharmony_ci * You may obtain a copy of the License at
6595d5899Sopenharmony_ci *
7595d5899Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
8595d5899Sopenharmony_ci *
9595d5899Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
10595d5899Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
11595d5899Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12595d5899Sopenharmony_ci * See the License for the specific language governing permissions and
13595d5899Sopenharmony_ci * limitations under the License.
14595d5899Sopenharmony_ci */
15595d5899Sopenharmony_ci
16595d5899Sopenharmony_ci#ifndef ILIGHT_LUX_MANAGER_H
17595d5899Sopenharmony_ci#define ILIGHT_LUX_MANAGER_H
18595d5899Sopenharmony_ci
19595d5899Sopenharmony_ci#include "brightness_base.h"
20595d5899Sopenharmony_ci
21595d5899Sopenharmony_cinamespace OHOS {
22595d5899Sopenharmony_cinamespace DisplayPowerMgr {
23595d5899Sopenharmony_ci
24595d5899Sopenharmony_ciclass ILightLuxManager {
25595d5899Sopenharmony_cipublic:
26595d5899Sopenharmony_ci    virtual ~ILightLuxManager() = default;
27595d5899Sopenharmony_ci
28595d5899Sopenharmony_ci    virtual void InitParameters() = 0;
29595d5899Sopenharmony_ci    virtual void SetSceneMode(BrightnessSceneMode mode) = 0;
30595d5899Sopenharmony_ci    virtual float GetFilteredLux() const = 0;
31595d5899Sopenharmony_ci    virtual float GetSmoothedLux() const = 0;
32595d5899Sopenharmony_ci    virtual void ClearLuxData() = 0;
33595d5899Sopenharmony_ci    virtual bool IsNeedUpdateBrightness(float lux) = 0;
34595d5899Sopenharmony_ci    virtual float GetLux() const = 0;
35595d5899Sopenharmony_ci    virtual void SetLux(const float lux) = 0;
36595d5899Sopenharmony_ci};
37595d5899Sopenharmony_ci
38595d5899Sopenharmony_ci} // namespace BrightnessPowerMgr
39595d5899Sopenharmony_ci} // namespace OHOS
40595d5899Sopenharmony_ci#endif // LIGHT_LUX_MANAGER_H