137a09cd7Sopenharmony_ci/*
237a09cd7Sopenharmony_ci * Copyright (c) 2021 Huawei Device Co., Ltd.
337a09cd7Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
437a09cd7Sopenharmony_ci * you may not use this file except in compliance with the License.
537a09cd7Sopenharmony_ci * You may obtain a copy of the License at
637a09cd7Sopenharmony_ci *
737a09cd7Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
837a09cd7Sopenharmony_ci *
937a09cd7Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
1037a09cd7Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
1137a09cd7Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1237a09cd7Sopenharmony_ci * See the License for the specific language governing permissions and
1337a09cd7Sopenharmony_ci * limitations under the License.
1437a09cd7Sopenharmony_ci */
1537a09cd7Sopenharmony_ci
1637a09cd7Sopenharmony_ci#ifndef THERMAL_MGR_SRV_STUB_H
1737a09cd7Sopenharmony_ci#define THERMAL_MGR_SRV_STUB_H
1837a09cd7Sopenharmony_ci
1937a09cd7Sopenharmony_ci#include "ipc_object_stub.h"
2037a09cd7Sopenharmony_ci#include "ithermal_srv.h"
2137a09cd7Sopenharmony_ci#include <iremote_stub.h>
2237a09cd7Sopenharmony_ci#include <nocopyable.h>
2337a09cd7Sopenharmony_ci
2437a09cd7Sopenharmony_cinamespace OHOS {
2537a09cd7Sopenharmony_cinamespace PowerMgr {
2637a09cd7Sopenharmony_ciclass ThermalSrvStub : public IRemoteStub<IThermalSrv> {
2737a09cd7Sopenharmony_cipublic:
2837a09cd7Sopenharmony_ci    DISALLOW_COPY_AND_MOVE(ThermalSrvStub);
2937a09cd7Sopenharmony_ci    ThermalSrvStub() = default;
3037a09cd7Sopenharmony_ci    virtual ~ThermalSrvStub() = default;
3137a09cd7Sopenharmony_ci    int OnRemoteRequest(uint32_t code, MessageParcel& data, MessageParcel& reply, MessageOption& option) override;
3237a09cd7Sopenharmony_ci
3337a09cd7Sopenharmony_ciprivate:
3437a09cd7Sopenharmony_ci    int32_t SubscribeThermalTempCallbackStub(MessageParcel& data);
3537a09cd7Sopenharmony_ci    int32_t UnSubscribeThermalTempCallbackStub(MessageParcel& data);
3637a09cd7Sopenharmony_ci    int32_t SubscribeThermalLevelCallbackStub(MessageParcel& data);
3737a09cd7Sopenharmony_ci    int32_t UnSubscribeThermalLevelCallbackStub(MessageParcel& data);
3837a09cd7Sopenharmony_ci    int32_t SubscribeThermalActionCallbackStub(MessageParcel& data);
3937a09cd7Sopenharmony_ci    int32_t UnSubscribeThermalActionCallbackStub(MessageParcel& data);
4037a09cd7Sopenharmony_ci    int32_t GetThermalSrvSensorInfoStub(MessageParcel& data, MessageParcel& reply);
4137a09cd7Sopenharmony_ci    int32_t GetThermalevelStub(MessageParcel& reply);
4237a09cd7Sopenharmony_ci    int32_t GetThermalInfoStub(MessageParcel& reply);
4337a09cd7Sopenharmony_ci    int32_t SetSceneStub(MessageParcel& data);
4437a09cd7Sopenharmony_ci    int32_t UpdateThermalStateStub(MessageParcel& data);
4537a09cd7Sopenharmony_ci    int32_t ShellDumpStub(MessageParcel& data, MessageParcel& reply);
4637a09cd7Sopenharmony_ci    int32_t CheckRequestCode(const uint32_t code, MessageParcel& data, MessageParcel& reply, MessageOption& option);
4737a09cd7Sopenharmony_ci};
4837a09cd7Sopenharmony_ci} // namespace PowerMgr
4937a09cd7Sopenharmony_ci} // namespace OHOS
5037a09cd7Sopenharmony_ci#endif //  THERMAL_MGR_SRV_STUB_H
51