/* * 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. * Description: supply cast session implement stub class. * Author: zhangge * Create: 2022-06-15 */ #ifndef CAST_SESSION_IMPL_STUB_H #define CAST_SESSION_IMPL_STUB_H #include "cast_stub_helper.h" #include "i_cast_session_impl.h" namespace OHOS { namespace CastEngine { namespace CastEngineService { class CastSessionImplStub : public IRemoteStub { public: CastSessionImplStub(); int OnRemoteRequest(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) override; private: DECLARE_STUB_TASK_MAP(CastSessionImplStub); int32_t DoRegisterListenerTask(MessageParcel &data, MessageParcel &reply); int32_t DoUnregisterListenerTask(MessageParcel &data, MessageParcel &reply); int32_t DoAddDeviceTask(MessageParcel &data, MessageParcel &reply); int32_t DoRemoveDeviceTask(MessageParcel &data, MessageParcel &reply); int32_t DoStartAuthTask(MessageParcel &data, MessageParcel &reply); int32_t DoGetSessionIdTask(MessageParcel &data, MessageParcel &reply); int32_t DoGetDeviceStateTask(MessageParcel &data, MessageParcel &reply); int32_t DoSetSessionProperty(MessageParcel &data, MessageParcel &reply); int32_t DoCreateMirrorPlayer(MessageParcel &data, MessageParcel &reply); int32_t DoCreateStreamPlayer(MessageParcel &data, MessageParcel &reply); int32_t DoNotifyEvent(MessageParcel &data, MessageParcel &reply); int32_t DoSetCastMode(MessageParcel &data, MessageParcel &reply); int32_t DoRelease(MessageParcel &data, MessageParcel &reply); }; } // namespace CastEngineService } // namespace CastEngine } // namespace OHOS #endif