• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2023-2023 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:  cast session manager service stub class.
15  * Author: zhangge
16  * Create: 2022-5-29
17  */
18 
19 #ifndef CAST_SESSION_MANAGER_SERVICE_STUB_H
20 #define CAST_SESSION_MANAGER_SERVICE_STUB_H
21 
22 #include "cast_stub_helper.h"
23 #include "i_cast_session_manager_service.h"
24 
25 namespace OHOS {
26 namespace CastEngine {
27 namespace CastEngineService {
28 class CastSessionManagerServiceStub : public IRemoteStub<ICastSessionManagerService> {
29 public:
30     CastSessionManagerServiceStub();
31     ~CastSessionManagerServiceStub() override;
32 
33     int OnRemoteRequest(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) override;
34 
35 private:
36     DECLARE_STUB_TASK_MAP(CastSessionManagerServiceStub);
37 
38     int32_t DoRegisterListenerTask(MessageParcel &data, MessageParcel &reply);
39     int32_t DoUnregisterListenerTask(MessageParcel &data, MessageParcel &reply);
40     int32_t DoReleaseTask(MessageParcel &data, MessageParcel &reply);
41     int32_t DoSetLocalDeviceTask(MessageParcel &data, MessageParcel &reply);
42     int32_t DoCreateCastSessionTask(MessageParcel &data, MessageParcel &reply);
43     int32_t DoSetSinkSessionCapacityTask(MessageParcel &data, MessageParcel &reply);
44     int32_t DoStartDiscoveryTask(MessageParcel &data, MessageParcel &reply);
45     int32_t DoSetDiscoverableTask(MessageParcel &data, MessageParcel &reply);
46     int32_t DoStopDiscoveryTask(MessageParcel &data, MessageParcel &reply);
47     int32_t DoStartDeviceLoggingTask(MessageParcel &data, MessageParcel &reply);
48     int32_t DoGetCastSessionTask(MessageParcel &data, MessageParcel &reply);
49 };
50 } // namespace CastEngineService
51 } // namespace CastEngine
52 } // namespace OHOS
53 
54 
55 #endif // CAST_SESSION_MANAGER_SERVICE_STUB_H