Add missing config options for gfx and kbd.
[bertos.git] / emul / emul.h
1 /**
2  * \file
3  * <!--
4  * Copyright 2006 Develer S.r.l. (http://www.develer.com/)
5  * Copyright 2000, 2001 Bernardo Innocenti <bernie@codewiz.org>
6  * This file is part of DevLib - See README.devlib for information.
7  * -->
8  *
9  * \version $Id$
10  *
11  * \author Bernardo Innocenti <bernie@develer.com>
12  *
13  * \brief Qt-based emulator framework for embedded applications (interface)
14  */
15
16 /*#*
17  *#* $Log$
18  *#* Revision 1.3  2006/01/23 23:12:08  bernie
19  *#* Let Doxygen see through C++ protected section.
20  *#*
21  *#* Revision 1.2  2006/01/16 03:51:51  bernie
22  *#* Fix boilerplate.
23  *#*
24  *#* Revision 1.1  2006/01/16 03:37:12  bernie
25  *#* Add emulator skeleton.
26  *#*
27  *#*/
28
29 #ifndef EMUL_EMUL_H
30 #define EMUL_EMUL_H
31
32 #include <cfg/compiler.h>
33
34 #if defined(__cplusplus) || defined(__doxygen__)
35
36 // fwd decls
37 class QApplication;
38 class EmulWin;
39 class EmulPRT;
40 class EmulLCD;
41 class EmulKBD;
42 class QCheckBox;
43 class QSlider;
44 class QLabel;
45
46 class Emulator
47 {
48 // data members
49 public:
50         QApplication    *emulApp;       ///< QT Application.
51         EmulWin                 *emulWin;       ///< Main window.
52
53         EmulLCD                 *emulLCD;       ///< Display emulator.
54         EmulKBD                 *emulKBD;       ///< Keyboard emulator.
55
56 // construction
57         Emulator(int &argc, char **argv);
58         ~Emulator();
59
60 // public methods
61         int exec(void (*entry)(void));
62         void quit();
63 };
64
65 extern Emulator *emul;
66
67 #endif /* __cplusplus */
68
69 EXTERN_C void emul_init(int *argc, char *argv[]);
70 EXTERN_C void emul_cleanup();
71 EXTERN_C void emul_idle();
72
73 #endif /* EMUL_EMUL_H */
74