1 #ifndef __DALI_INTERNAL_X_EVENT_MANAGER_H__
2 #define __DALI_INTERNAL_X_EVENT_MANAGER_H__
5 * Copyright (c) 2015 Samsung Electronics Co., Ltd.
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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.
23 #include <file-descriptor-monitor.h>
26 #include <base/interfaces/window-event-interface.h>
40 * @brief Used to handle X events.
41 * The code is mainloop agnostic, so the monitoring of the X event file descriptor
42 * for X events is external to this class.
52 * @param[in] window ID
53 * @param[in] display x-connection
54 * @param[in] eventInterface window event interface
56 XEventManager( XID window, Display* display, WindowEventInterface* eventInterface );
59 * @brief non virtual destructor
71 * @brief Should be called when the Event file descriptor signals data is available
73 void XEventReceived( FileDescriptorMonitor::EventType eventMask );
75 // Undefined copy constructor.
76 XEventManager( const XEventManager& );
78 // Undefined assignment operator.
79 XEventManager& operator=( const XEventManager& );
83 XInput2 mXInput2; ///< XInput2 handler
84 FileDescriptorMonitor* mFileDescriptorMonitor; ///< File descriptor monitor for X events
85 Display* mDisplay; ///< X connection
86 XID mWindow; ///< Window to receive events for
91 } // namespace Adaptor
92 } // namespace Internal
95 #endif // __DALI_INTERNAL_X_EVENT_MANAGER_H__