1 /* This file is part of the KDE project
2 Copyright (C) 2007 Alessandro Praduroux <pradu@pradu.it>
3 (C) 2001-2003 by Tim Jansen <tim@tjansen.de>
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public
7 License as published by the Free Software Foundation; version 2
14 #include <QDesktopWidget>
20 class ConnectionController
;
26 virtual void exec() = 0;
30 class KeyboardEvent
: public VNCEvent
{
35 static signed char modifiers
[0x100];
36 static KeyCode keycodes
[0x100], leftShiftCode
, rightShiftCode
, altGrCode
;
37 static const int LEFTSHIFT
;
38 static const int RIGHTSHIFT
;
39 static const int ALTGR
;
40 static char ModifierState
;
43 static void tweakModifiers(signed char mod
, bool down
);
45 static void initKeycodes();
47 KeyboardEvent(bool d
, KeySym k
);
51 class PointerEvent
: public VNCEvent
{
52 int button_mask
, x
, y
;
54 static bool initialized
;
56 static int buttonMask
;
58 PointerEvent(int b
, int _x
, int _y
);
62 class ClipboardEvent
: public VNCEvent
{
63 ConnectionController
*controller
;
66 ClipboardEvent(ConnectionController
*c
, const QString
&text
);