mirror of
https://github.com/openharmony/distributedhardware_distributed_input.git
synced 2026-07-21 05:45:23 -04:00
013181cd2b
Signed-off-by: litiangang4 <litiangang4@huawei.com>
52 lines
2.5 KiB
C++
52 lines
2.5 KiB
C++
/*
|
|
* Copyright (c) 2022-2023 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.
|
|
*/
|
|
|
|
#ifndef OHOS_DISTRIBUTED_INPUT_SINK_TANTS_H
|
|
#define OHOS_DISTRIBUTED_INPUT_SINK_TANTS_H
|
|
|
|
#include <string>
|
|
|
|
namespace OHOS {
|
|
namespace DistributedHardware {
|
|
namespace DistributedInput {
|
|
class DInputSinkTransCallback {
|
|
public:
|
|
virtual void OnPrepareRemoteInput(const int32_t &sessionId, const std::string &deviceId) = 0;
|
|
virtual void OnUnprepareRemoteInput(const int32_t &sessionId) = 0;
|
|
virtual void OnStartRemoteInput(const int32_t &sessionId, const uint32_t &inputTypes) = 0;
|
|
virtual void OnStopRemoteInput(const int32_t &sessionId, const uint32_t &inputTypes) = 0;
|
|
virtual void OnStartRemoteInputDhid(const int32_t &sessionId, const std::string &strDhids) = 0;
|
|
virtual void OnStopRemoteInputDhid(const int32_t &sessionId, const std::string &strDhids) = 0;
|
|
|
|
virtual void OnRelayPrepareRemoteInput(const int32_t &toSrcSessionId, const int32_t &toSinkSessionId,
|
|
const std::string &deviceId) = 0;
|
|
virtual void OnRelayUnprepareRemoteInput(const int32_t &toSrcSessionId, const int32_t &toSinkSessionId,
|
|
const std::string &deviceId) = 0;
|
|
virtual void OnRelayStartDhidRemoteInput(const int32_t &toSrcSessionId, const int32_t &toSinkSessionId,
|
|
const std::string &deviceId, const std::string &strDhids) = 0;
|
|
virtual void OnRelayStopDhidRemoteInput(const int32_t &toSrcSessionId, const int32_t &toSinkSessionId,
|
|
const std::string &deviceId, const std::string &strDhids) = 0;
|
|
virtual void OnRelayStartTypeRemoteInput(const int32_t &toSrcSessionId, const int32_t &toSinkSessionId,
|
|
const std::string &deviceId, uint32_t inputTypes) = 0;
|
|
virtual void OnRelayStopTypeRemoteInput(const int32_t &toSrcSessionId, const int32_t &toSinkSessionId,
|
|
const std::string &deviceId, uint32_t inputTypes) = 0;
|
|
virtual ~DInputSinkTransCallback() {}
|
|
};
|
|
} // namespace DistributedInput
|
|
} // namespace DistributedHardware
|
|
} // namespace OHOS
|
|
|
|
#endif // OHOS_DISTRIBUTED_INPUT_SINK_TANTS_H
|