linux/src/Him.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #include "nsIGenericFactory.h"
00021
00022 #include "IHim.h"
00023 #include <X11/Xlib.h>
00024 #include <X11/Xutil.h>
00025 #include <stdlib.h>
00026 #include <unistd.h>
00027
00028
00029 #define HIM_CID \
00030 { 0x10b7a973, 0x54cc, 0xc8c0, \
00031 { 0x74, 0xb8, 0xca, 0xd4, 0x49, 0xf2, 0xa8, 0x04 } }
00032
00033 #define HIM_CONTRACTID "@zenith-extension.com/Him;1"
00034 #define HIM_CLASSNAME "Help in Motion"
00035
00036
00037 class Him : public IHim
00038 {
00039 public:
00040 NS_DECL_ISUPPORTS
00041 NS_DECL_IHIM
00042 Him();
00043 private:
00044 ~Him();
00045 int regX, regY;
00046 protected:
00047 Display *display;
00048 XEvent event;
00049 bool detectMouseMove();
00050
00051
00052 };