Changeset View
Changeset View
Standalone View
Standalone View
krfb/eventsplugin.h
- This file was copied from krfb/events.h.
1 | /* | 1 | /* This file is part of the KDE project | ||
---|---|---|---|---|---|
2 | This file is part of the KDE project | 2 | Copyright (C) 2009 Collabora Ltd <info@collabora.co.uk> | ||
3 | 3 | @author George Goldberg <george.goldberg@collabora.co.uk> | |||
4 | Copyright (C) 2010 Collabora Ltd. | | |||
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 | 4 | | |||
9 | This program is free software; you can redistribute it and/or | 5 | This program is free software; you can redistribute it and/or | ||
10 | modify it under the terms of the GNU General Public | 6 | modify it under the terms of the GNU General Public | ||
11 | License as published by the Free Software Foundation; either | 7 | License as published by the Free Software Foundation; either | ||
12 | version 2 of the License, or (at your option) any later version. | 8 | version 2 of the License, or (at your option) any later version. | ||
13 | 9 | | |||
14 | This program is distributed in the hope that it will be useful, | 10 | This program is distributed in the hope that it will be useful, | ||
15 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
17 | General Public License for more details. | 13 | General Public License for more details. | ||
18 | 14 | | |||
19 | You should have received a copy of the GNU General Public License | 15 | 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 | 16 | along with this program; see the file COPYING. If not, write to | ||
21 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
22 | Boston, MA 02110-1301, USA. | 18 | Boston, MA 02110-1301, USA. | ||
23 | */ | 19 | */ | ||
24 | 20 | | |||
25 | #ifndef EVENTS_H | 21 | #ifndef LIB_KRFB_EVENTSPLUGIN_H | ||
26 | #define EVENTS_H | 22 | #define LIB_KRFB_EVENTSPLUGIN_H | ||
23 | | ||||
24 | #include "krfbprivate_export.h" | ||||
25 | | ||||
26 | #include <QtCore/QVariantList> | ||||
27 | #include <QWidget> | ||||
27 | 28 | | |||
28 | #include "rfb.h" | 29 | class EventHandler; | ||
29 | 30 | | |||
30 | class EventHandler | 31 | class KRFBPRIVATE_EXPORT EventsPlugin : public QObject | ||
31 | { | 32 | { | ||
33 | Q_OBJECT | ||||
32 | public: | 34 | public: | ||
33 | static void handleKeyboard(bool down, rfbKeySym key); | 35 | EventsPlugin(QObject *parent, const QVariantList &args); | ||
34 | static void handlePointer(int buttonMask, int x, int y); | 36 | virtual ~EventsPlugin(); | ||
37 | | ||||
38 | virtual EventHandler *eventHandler() = 0; | ||||
35 | }; | 39 | }; | ||
36 | 40 | | |||
37 | #endif | 41 | #endif // Header guard | ||
42 | |