00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef XEACKEY_H
00019 #define XEACKEY_H
00020
00021 #include <iostream.h>
00022 #include <qwidget.h>
00023
00024 extern "C" {
00025 #include <stdio.h>
00026 #include <X11/Xlib.h>
00027 #include <X11/Xutil.h>
00028 #include <X11/XKBlib.h>
00029 #include <stdlib.h>
00030 #include <string.h>
00031 }
00032
00033
00038 class XEACKey : public QWidget {
00039 Q_OBJECT
00040 public:
00041 XEACKey(QWidget *parent=0, const char *name=0);
00042 ~XEACKey();
00044 int getXEACKeyCode();
00045
00046 private:
00047
00048 Window win;
00049 Display * display;
00050 XEvent report;
00051 int screen_num;
00052 char * display_name;
00053
00054 };
00055
00056 #endif