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