linux/src/Him.h

00001 /* Copyright (c) 2008, Florent FAYOLLE
00002 
00003 
00004 This file is part of Zenith
00005 
00006 Zenith is free software: you can redistribute it and/or modify
00007 it under the terms of the GNU General Public License as published by
00008 the Free Software Foundation, either version 3 of the License, or
00009 (at your option) any later version.
00010 
00011 This program is distributed in the hope that it will be useful,
00012 but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 GNU General Public License for more details.
00015 
00016 You should have received a copy of the GNU General Public License
00017 along with this program.  If not, see <http://www.gnu.org/licenses/>. */
00018 
00019 /* Header file */
00020 #include "nsIGenericFactory.h"
00021 //#include "nsXPCOM.h"
00022 #include "IHim.h"
00023 #include <X11/Xlib.h>
00024 #include <X11/Xutil.h>
00025 #include <stdlib.h>
00026 #include <unistd.h>
00027 
00028 // {10b7a973-54cc-c8c0-74b8-cad449f2a804}
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   /* additional members */
00052 };

Generated on Sat Dec 5 17:45:36 2009 for zenith by  doxygen 1.6.1