Fix boilerplate.
[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.2  2006/01/16 03:51:51  bernie
19  *#* Fix boilerplate.
20  *#*
21  *#* Revision 1.1  2006/01/16 03:37:12  bernie
22  *#* Add emulator skeleton.
23  *#*
24  *#*/
25
26 #ifndef EMUL_EMUL_H
27 #define EMUL_EMUL_H
28
29 #include <cfg/compiler.h>
30
31 #ifdef __cplusplus
32
33 // fwd decls
34 class QApplication;
35 class EmulWin;
36 class EmulPRT;
37 class EmulLCD;
38 class EmulKBD;
39 class QCheckBox;
40 class QSlider;
41 class QLabel;
42
43 class Emulator
44 {
45 // data members
46 public:
47         QApplication    *emulApp;       ///< QT Application.
48         EmulWin                 *emulWin;       ///< Main window.
49
50         EmulLCD                 *emulLCD;       ///< Display emulator.
51         EmulKBD                 *emulKBD;       ///< Keyboard emulator.
52
53 // construction
54         Emulator(int &argc, char **argv);
55         ~Emulator();
56
57 // public methods
58         int exec(void (*entry)(void));
59         void quit();
60 };
61
62 extern Emulator *emul;
63
64 #endif /* __cplusplus */
65
66 EXTERN_C void emul_init(int *argc, char *argv[]);
67 EXTERN_C void emul_cleanup();
68 EXTERN_C void emul_idle();
69
70 #endif /* EMUL_EMUL_H */
71