KeyEvent class pimpling
[platform/core/uifw/dali-adaptor.git] / dali / devel-api / adaptor-framework / event-feeder.h
1 #ifndef DALI_EVENT_FEEDER_H
2 #define DALI_EVENT_FEEDER_H
3
4 /*
5  * Copyright (c) 2020 Samsung Electronics Co., Ltd.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  */
20
21 // INTERNAL INCLUDES
22 #include <dali/public-api/dali-adaptor-common.h>
23
24 namespace Dali
25 {
26
27 class WheelEvent;
28 class KeyEvent;
29 struct TouchPoint;
30
31 namespace EventFeeder
32 {
33
34 /**
35  * Feed a touch point to the adaptor.
36  *
37  * @param[in] point touch point
38  * @param[in] timeStamp time value of event
39  *
40  * @note For testing/automation purposes only.
41  */
42 DALI_ADAPTOR_API void FeedTouchPoint( TouchPoint& point, int timeStamp );
43
44 /**
45  * Feed a wheel event to the adaptor.
46  *
47  * @param[in]  wheelEvent wheel event
48  *
49  * @note For testing/automation purposes only.
50  */
51 DALI_ADAPTOR_API void FeedWheelEvent( WheelEvent& wheelEvent );
52
53 /**
54  * Feed a key event to the adaptor.
55  *
56  * @param[in] keyEvent The key event holding the key information.
57  *
58  * @note For testing/automation purposes only.
59  */
60 DALI_ADAPTOR_API void FeedKeyEvent( KeyEvent& keyEvent );
61
62 } // namespace EventFeeder
63
64 } // namespace Dali
65
66 #endif // DALI_EVENT_FEEDER_H