summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/emulation_handler.h
Unidiff
Diffstat (limited to 'noncore/apps/opie-console/emulation_handler.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/emulation_handler.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/emulation_handler.h b/noncore/apps/opie-console/emulation_handler.h
new file mode 100644
index 0000000..58b94bc
--- a/dev/null
+++ b/noncore/apps/opie-console/emulation_handler.h
@@ -0,0 +1,62 @@
1#ifndef OPIE_EMULATION_HANDLER_H
2#define OPIE_EMULATION_HANDLER_H
3
4#include <qobject.h>
5#include <qcstring.h>
6
7/*
8 * Badly ibotty lacks the time to finish
9 * his widget in time..
10 * Never the less we've to have an EmulationWidget
11 * This is why I'm taking the inferior not cleaned
12 * up TE* KDE STUFF
13 */
14
15/**
16 * This is the layer above the IOLayer*
17 * This nice QObject here will get stuff from
18 * got a slot and a signal
19 * the signal for data
20 * the slot for receiving
21 * it'll set up the widget internally
22 * and manage the communication between
23 * the pre QByteArray world!
24 */
25class Profile;
26class QWidget;
27class TEWidget;
28class TEmulation;
29class EmulationHandler : public QObject {
30 Q_OBJECT
31public:
32 /**
33 * simple c'tor the parent of the TEWdiget
34 * and a name
35 * and a Profile
36 */
37 EmulationHandler( const Profile&, QWidget* parent, const char* name = 0l );
38
39 /**
40 * delete all components
41 */
42 ~EmulationHandler();
43
44 void load( const Profile& );
45 QWidget* widget();
46signals:
47 void send( const QByteArray& );
48 void changeSize(int rows, int cols );
49
50public slots:
51 void recv( const QByteArray& );
52
53private slots:
54 void recvEmulation( const char*, int len );
55
56private:
57 TEWidget* m_teWid;
58 TEmulation* m_teEmu;
59
60};
61
62#endif