author | zecke <zecke> | 2002-10-14 17:51:25 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-10-14 17:51:25 (UTC) |
commit | 3e92f4eba0510e7d3744f096a62eaa175b15c993 (patch) (side-by-side diff) | |
tree | b015584a3488434e75d4b7f1a55b548a88cf17c5 /noncore/apps/opie-console/emulation_handler.h | |
parent | 2c5e8939ba073a42c032f5a9660ed0dd4580bf88 (diff) | |
download | opie-3e92f4eba0510e7d3744f096a62eaa175b15c993.zip opie-3e92f4eba0510e7d3744f096a62eaa175b15c993.tar.gz opie-3e92f4eba0510e7d3744f096a62eaa175b15c993.tar.bz2 |
add the bridge
Diffstat (limited to 'noncore/apps/opie-console/emulation_handler.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/emulation_handler.h | 62 |
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 @@ +#ifndef OPIE_EMULATION_HANDLER_H +#define OPIE_EMULATION_HANDLER_H + +#include <qobject.h> +#include <qcstring.h> + +/* + * Badly ibotty lacks the time to finish + * his widget in time.. + * Never the less we've to have an EmulationWidget + * This is why I'm taking the inferior not cleaned + * up TE* KDE STUFF + */ + +/** + * This is the layer above the IOLayer* + * This nice QObject here will get stuff from + * got a slot and a signal + * the signal for data + * the slot for receiving + * it'll set up the widget internally + * and manage the communication between + * the pre QByteArray world! + */ +class Profile; +class QWidget; +class TEWidget; +class TEmulation; +class EmulationHandler : public QObject { + Q_OBJECT +public: + /** + * simple c'tor the parent of the TEWdiget + * and a name + * and a Profile + */ + EmulationHandler( const Profile&, QWidget* parent, const char* name = 0l ); + + /** + * delete all components + */ + ~EmulationHandler(); + + void load( const Profile& ); + QWidget* widget(); +signals: + void send( const QByteArray& ); + void changeSize(int rows, int cols ); + +public slots: + void recv( const QByteArray& ); + +private slots: + void recvEmulation( const char*, int len ); + +private: + TEWidget* m_teWid; + TEmulation* m_teEmu; + +}; + +#endif |