emul.h

Go to the documentation of this file.
00001 
00041 /*#*
00042  *#* $Log$
00043  *#* Revision 1.4  2006/02/15 09:11:17  bernie
00044  *#* Add keyboard emulator.
00045  *#*
00046  *#* Revision 1.3  2006/01/23 23:12:08  bernie
00047  *#* Let Doxygen see through C++ protected section.
00048  *#*
00049  *#* Revision 1.2  2006/01/16 03:51:51  bernie
00050  *#* Fix boilerplate.
00051  *#*
00052  *#* Revision 1.1  2006/01/16 03:37:12  bernie
00053  *#* Add emulator skeleton.
00054  *#*
00055  *#*/
00056 
00057 #ifndef EMUL_EMUL_H
00058 #define EMUL_EMUL_H
00059 
00060 #include <cfg/compiler.h>
00061 
00062 #if defined(__cplusplus) || defined(__doxygen__)
00063 
00064 // fwd decls
00065 class QApplication;
00066 class EmulWin;
00067 class EmulPRT;
00068 class EmulLCD;
00069 class EmulKbd;
00070 class QCheckBox;
00071 class QSlider;
00072 class QLabel;
00073 
00074 class Emulator
00075 {
00076 // data members
00077 public:
00078     QApplication  *emulApp; 
00079     EmulWin       *emulWin; 
00080 
00081     EmulLCD       *emulLCD; 
00082     EmulKbd       *emulKbd; 
00083 
00084 // construction
00085     Emulator(int &argc, char **argv);
00086     ~Emulator();
00087 
00088 // public methods
00089     void quit();
00090 };
00091 
00092 extern Emulator *emul;
00093 
00094 #endif /* __cplusplus */
00095 
00096 EXTERN_C void emul_init(int *argc, char *argv[]);
00097 EXTERN_C void emul_cleanup();
00098 EXTERN_C void emul_idle();
00099 
00100 #endif /* EMUL_EMUL_H */
00101