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 BRRIGHTNESS_DIMMING_CALLBACK_H
17595d5899Sopenharmony_ci#define BRRIGHTNESS_DIMMING_CALLBACK_H
18595d5899Sopenharmony_ci
19595d5899Sopenharmony_ci#include <cstdint>
20595d5899Sopenharmony_ci
21595d5899Sopenharmony_cinamespace OHOS {
22595d5899Sopenharmony_cinamespace DisplayPowerMgr {
23595d5899Sopenharmony_ciclass BrightnessDimmingCallback {
24595d5899Sopenharmony_cipublic:
25595d5899Sopenharmony_ci    BrightnessDimmingCallback() = default;
26595d5899Sopenharmony_ci    virtual ~BrightnessDimmingCallback() = default;
27595d5899Sopenharmony_ci    BrightnessDimmingCallback(const BrightnessDimmingCallback&) = delete;
28595d5899Sopenharmony_ci    BrightnessDimmingCallback& operator=(const BrightnessDimmingCallback&) = delete;
29595d5899Sopenharmony_ci    BrightnessDimmingCallback(BrightnessDimmingCallback&&) = delete;
30595d5899Sopenharmony_ci    BrightnessDimmingCallback& operator=(BrightnessDimmingCallback&&) = delete;
31595d5899Sopenharmony_ci
32595d5899Sopenharmony_ci    virtual void OnStart() = 0;
33595d5899Sopenharmony_ci    virtual void OnChanged(uint32_t currentValue) = 0;
34595d5899Sopenharmony_ci    virtual void OnEnd() = 0;
35595d5899Sopenharmony_ci    virtual void DiscountBrightness(double discount) = 0;
36595d5899Sopenharmony_ci};
37595d5899Sopenharmony_ci} // namespace DisplayPowerMgr
38595d5899Sopenharmony_ci} // namespace OHOS
39595d5899Sopenharmony_ci#endif // BRRIGHTNESS_DIMMING_CALLBACK_H