1885b47fbSopenharmony_ci/*
2885b47fbSopenharmony_ci * Copyright (C) 2022 Huawei Device Co., Ltd.
3885b47fbSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
4885b47fbSopenharmony_ci * you may not use this file except in compliance with the License.
5885b47fbSopenharmony_ci * You may obtain a copy of the License at
6885b47fbSopenharmony_ci *
7885b47fbSopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
8885b47fbSopenharmony_ci *
9885b47fbSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
10885b47fbSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
11885b47fbSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12885b47fbSopenharmony_ci * See the License for the specific language governing permissions and
13885b47fbSopenharmony_ci * limitations under the License.
14885b47fbSopenharmony_ci */
15885b47fbSopenharmony_ci
16885b47fbSopenharmony_ci#ifndef OHOS_EVENT_TRANSMISSION_H
17885b47fbSopenharmony_ci#define OHOS_EVENT_TRANSMISSION_H
18885b47fbSopenharmony_ci
19885b47fbSopenharmony_ci#include <cstdint>
20885b47fbSopenharmony_ci#include "accessibility_event_info.h"
21885b47fbSopenharmony_ci#include "key_event.h"
22885b47fbSopenharmony_ci#include "pointer_event.h"
23885b47fbSopenharmony_ci#include "refbase.h"
24885b47fbSopenharmony_ci
25885b47fbSopenharmony_cinamespace OHOS {
26885b47fbSopenharmony_cinamespace Accessibility {
27885b47fbSopenharmony_ciclass EventTransmission : public RefBase {
28885b47fbSopenharmony_cipublic:
29885b47fbSopenharmony_ci    EventTransmission() {};
30885b47fbSopenharmony_ci    virtual ~EventTransmission() {};
31885b47fbSopenharmony_ci    virtual bool OnKeyEvent(MMI::KeyEvent &event);
32885b47fbSopenharmony_ci    virtual bool OnPointerEvent(MMI::PointerEvent &event);
33885b47fbSopenharmony_ci    virtual void OnMoveMouse(int32_t offsetX, int32_t offsetY);
34885b47fbSopenharmony_ci    void SetNext(const sptr<EventTransmission> &next);
35885b47fbSopenharmony_ci    sptr<EventTransmission> GetNext();
36885b47fbSopenharmony_ci    virtual void DestroyEvents();
37885b47fbSopenharmony_ciprivate:
38885b47fbSopenharmony_ci    sptr<EventTransmission> next_ = nullptr;
39885b47fbSopenharmony_ci};
40885b47fbSopenharmony_ci} // namespace Accessibility
41885b47fbSopenharmony_ci} // namespace OHOS
42885b47fbSopenharmony_ci#endif // OHOS_EVENT_TRANSMISSION_H