1 /*
2  * Copyright (c) 2022-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  */
15 
16 #ifndef OHOS_DISTRIBUTED_INPUT_SINK_TANTS_H
17 #define OHOS_DISTRIBUTED_INPUT_SINK_TANTS_H
18 
19 #include <string>
20 
21 namespace OHOS {
22 namespace DistributedHardware {
23 namespace DistributedInput {
24 class DInputSinkTransCallback {
25 public:
26     virtual void OnPrepareRemoteInput(const int32_t &sessionId, const std::string &deviceId) = 0;
27     virtual void OnUnprepareRemoteInput(const int32_t &sessionId) = 0;
28     virtual void OnStartRemoteInput(const int32_t &sessionId, const uint32_t &inputTypes) = 0;
29     virtual void OnStopRemoteInput(const int32_t &sessionId, const uint32_t &inputTypes) = 0;
30     virtual void OnStartRemoteInputDhid(const int32_t &sessionId, const std::string &strDhids) = 0;
31     virtual void OnStopRemoteInputDhid(const int32_t &sessionId, const std::string &strDhids) = 0;
32 
33     virtual void OnRelayPrepareRemoteInput(const int32_t &toSrcSessionId, const int32_t &toSinkSessionId,
34         const std::string &deviceId) = 0;
35     virtual void OnRelayUnprepareRemoteInput(const int32_t &toSrcSessionId, const int32_t &toSinkSessionId,
36         const std::string &deviceId) = 0;
37     virtual void OnRelayStartDhidRemoteInput(const int32_t &toSrcSessionId, const int32_t &toSinkSessionId,
38         const std::string &deviceId, const std::string &strDhids) = 0;
39     virtual void OnRelayStopDhidRemoteInput(const int32_t &toSrcSessionId, const int32_t &toSinkSessionId,
40         const std::string &deviceId, const std::string &strDhids) = 0;
41     virtual void OnRelayStartTypeRemoteInput(const int32_t &toSrcSessionId, const int32_t &toSinkSessionId,
42         const std::string &deviceId, uint32_t inputTypes) = 0;
43     virtual void OnRelayStopTypeRemoteInput(const int32_t &toSrcSessionId, const int32_t &toSinkSessionId,
44         const std::string &deviceId, uint32_t inputTypes) = 0;
~DInputSinkTransCallback()45     virtual ~DInputSinkTransCallback() {}
46 };
47 } // namespace DistributedInput
48 } // namespace DistributedHardware
49 } // namespace OHOS
50 
51 #endif // OHOS_DISTRIBUTED_INPUT_SINK_TANTS_H
52