[4.0] Add Finalize api for imf-manager
[platform/core/uifw/dali-adaptor.git] / adaptors / wayland / input / input-listeners.h
1 #ifndef __DALI_WAYLAND_INPUT_LISTENERS_H__
2 #define __DALI_WAYLAND_INPUT_LISTENERS_H__
3
4 /*
5  * Copyright (c) 2015 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 // EXTERNAL INCLUDES
22 #include <wl-types.h>
23
24 namespace Dali
25 {
26
27 namespace Internal
28 {
29
30 namespace Adaptor
31 {
32
33 namespace Wayland
34 {
35 /**
36  * Functions for getting wayland listener objects as defined in wayland-client-protocol.h
37  * The listen objects contain C callbacks, which currently expect the user data-field
38  * to be a DALi InputInterface pointer.
39  *
40  * E.g. if setting the keyboard listener
41  *
42  * wl_keyboard_add_listener( keyboard, &Wayland::GetKeyboardListener(), &InputInterface );
43  *
44  */
45
46
47 /**
48  * @brief Listens for keyboard / touch / pointer interfaces being enabled /disabled on a seat.
49  * @return seat listener
50  */
51 const WlSeatListener* GetSeatListener();
52
53 /**
54  * @brief returns a pointer to the callbacks used to listen to pointer events
55  * @return pointer listener
56  */
57 const WlPointerListener* GetPointerListener();
58
59 /**
60  * @brief returns a pointer to the callbacks used to listen to touch events
61  * @return touch listener
62  */
63 const  WlTouchListener* GetTouchListener();
64
65 /**
66  * @brief returns a pointer to the callbacks used to listen to keyboard events
67  * @return keyboard listener
68  */
69 const WlKeyboardListener* GetKeyboardListener();
70
71 } // Wayland
72 } // Internal
73 } // Adaptor
74 } // Dali
75
76 #endif  //__DALI_WAYLAND_INPUT_LISTENERS_H__