Changeset View
Changeset View
Standalone View
Standalone View
events/xdp/xdpeventsplugin.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) 2018-2019 Jan Grulich <jgrulich@redhat.com> | ||
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 KRFB_EVENTS_XDP_XDPEVENTSPLUGIN_H | ||
26 | #define EVENTS_H | 23 | #define KRFB_EVENTS_XDP_XDPEVENTSPLUGIN_H | ||
27 | 24 | | |||
28 | #include "rfb.h" | 25 | #include "eventsplugin.h" | ||
29 | 26 | | |||
30 | class EventHandler | 27 | #include <QWidget> | ||
28 | | ||||
29 | class EventHandler; | ||||
30 | | ||||
31 | class XdpEventsPlugin : public EventsPlugin | ||||
31 | { | 32 | { | ||
33 | Q_OBJECT | ||||
32 | public: | 34 | public: | ||
33 | static void handleKeyboard(bool down, rfbKeySym key); | 35 | XdpEventsPlugin(QObject *parent, const QVariantList &args); | ||
34 | static void handlePointer(int buttonMask, int x, int y); | 36 | virtual ~XdpEventsPlugin() = default; | ||
37 | | ||||
38 | EventHandler *eventHandler() override; | ||||
39 | | ||||
40 | private: | ||||
41 | Q_DISABLE_COPY(XdpEventsPlugin) | ||||
35 | }; | 42 | }; | ||
36 | 43 | | |||
37 | #endif | 44 | | ||
45 | #endif // Header guard | ||||
46 | |