1 /* 2 * Copyright (c) 2024 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 * Description: supply cast session implement stub class. 15 * Author: zhangge 16 * Create: 2022-06-15 17 */ 18 19 #ifndef CAST_SESSION_IMPL_STUB_H 20 #define CAST_SESSION_IMPL_STUB_H 21 22 #include "cast_stub_helper.h" 23 #include "i_cast_session_impl.h" 24 25 namespace OHOS { 26 namespace CastEngine { 27 namespace CastEngineService { 28 class CastSessionImplStub : public IRemoteStub<ICastSessionImpl> { 29 public: 30 CastSessionImplStub(); 31 32 int OnRemoteRequest(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) override; 33 34 private: 35 DECLARE_STUB_TASK_MAP(CastSessionImplStub); 36 37 int32_t DoRegisterListenerTask(MessageParcel &data, MessageParcel &reply); 38 int32_t DoUnregisterListenerTask(MessageParcel &data, MessageParcel &reply); 39 int32_t DoAddDeviceTask(MessageParcel &data, MessageParcel &reply); 40 int32_t DoRemoveDeviceTask(MessageParcel &data, MessageParcel &reply); 41 int32_t DoStartAuthTask(MessageParcel &data, MessageParcel &reply); 42 int32_t DoGetSessionIdTask(MessageParcel &data, MessageParcel &reply); 43 int32_t DoGetDeviceStateTask(MessageParcel &data, MessageParcel &reply); 44 int32_t DoSetSessionProperty(MessageParcel &data, MessageParcel &reply); 45 int32_t DoCreateMirrorPlayer(MessageParcel &data, MessageParcel &reply); 46 int32_t DoCreateStreamPlayer(MessageParcel &data, MessageParcel &reply); 47 int32_t DoNotifyEvent(MessageParcel &data, MessageParcel &reply); 48 int32_t DoSetCastMode(MessageParcel &data, MessageParcel &reply); 49 int32_t DoRelease(MessageParcel &data, MessageParcel &reply); 50 }; 51 } // namespace CastEngineService 52 } // namespace CastEngine 53 } // namespace OHOS 54 55 #endif 56