Changeset View
Changeset View
Standalone View
Standalone View
events/x11/x11events.h
- This file was copied from krfb/events.h.
1 | /* | 1 | /* | ||
---|---|---|---|---|---|
2 | This file is part of the KDE project | 2 | This file is part of the KDE project | ||
3 | 3 | | |||
4 | Copyright (C) 2010 Collabora Ltd. | 4 | Copyright (C) 2016 by Oleg Chernovskiy <kanedias@xaker.ru> | ||
5 | @author George Kiagiadakis <george.kiagiadakis@collabora.co.uk> | | |||
6 | Copyright (C) 2007 Alessandro Praduroux <pradu@pradu.it> | | |||
7 | Copyright (C) 2001-2003 by Tim Jansen <tim@tjansen.de> | | |||
8 | 5 | | |||
9 | This program is free software; you can redistribute it and/or | 6 | This program is free software; you can redistribute it and/or | ||
10 | modify it under the terms of the GNU General Public | 7 | modify it under the terms of the GNU General Public | ||
11 | License as published by the Free Software Foundation; either | 8 | License as published by the Free Software Foundation; either | ||
12 | version 2 of the License, or (at your option) any later version. | 9 | version 2 of the License, or (at your option) any later version. | ||
13 | 10 | | |||
14 | This program is distributed in the hope that it will be useful, | 11 | This program is distributed in the hope that it will be useful, | ||
15 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
17 | General Public License for more details. | 14 | General Public License for more details. | ||
18 | 15 | | |||
19 | You should have received a copy of the GNU General Public License | 16 | You should have received a copy of the GNU General Public License | ||
20 | along with this program; see the file COPYING. If not, write to | 17 | along with this program; see the file COPYING. If not, write to | ||
21 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 18 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
22 | Boston, MA 02110-1301, USA. | 19 | Boston, MA 02110-1301, USA. | ||
23 | */ | 20 | */ | ||
24 | 21 | | |||
25 | #ifndef EVENTS_H | 22 | #ifndef EVENTS_X11EVENTS_H | ||
26 | #define EVENTS_H | 23 | #define EVENTS_X11EVENTS_H | ||
27 | 24 | | |||
28 | #include "rfb.h" | 25 | #include "../../krfb/events.h" | ||
29 | 26 | | |||
30 | class EventHandler | 27 | class X11EventHandler : public EventHandler | ||
31 | { | 28 | { | ||
29 | Q_OBJECT | ||||
32 | public: | 30 | public: | ||
33 | static void handleKeyboard(bool down, rfbKeySym key); | 31 | explicit X11EventHandler(QObject *parent = nullptr) | ||
34 | static void handlePointer(int buttonMask, int x, int y); | 32 | : EventHandler(parent) | ||
33 | { | ||||
34 | }; | ||||
35 | | ||||
36 | void handleKeyboard(bool down, rfbKeySym key) override; | ||||
37 | void handlePointer(int buttonMask, int x, int y) override; | ||||
35 | }; | 38 | }; | ||
36 | 39 | | |||
37 | #endif | 40 | #endif | ||
41 | |