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.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/emulation_handler.h b/noncore/apps/opie-console/emulation_handler.h
index 58b94bc..9af7680 100644
--- a/noncore/apps/opie-console/emulation_handler.h
+++ b/noncore/apps/opie-console/emulation_handler.h
@@ -1,8 +1,9 @@
1#ifndef OPIE_EMULATION_HANDLER_H 1#ifndef OPIE_EMULATION_HANDLER_H
2#define OPIE_EMULATION_HANDLER_H 2#define OPIE_EMULATION_HANDLER_H
3 3
4#include <qobject.h> 4#include <qobject.h>
5#include <qcolor.h>
5#include <qcstring.h> 6#include <qcstring.h>
6 7
7/* 8/*
8 * Badly ibotty lacks the time to finish 9 * Badly ibotty lacks the time to finish
@@ -25,8 +26,9 @@
25class Profile; 26class Profile;
26class QWidget; 27class QWidget;
27class TEWidget; 28class TEWidget;
28class TEmulation; 29class TEmulation;
30class QFont;
29class EmulationHandler : public QObject { 31class EmulationHandler : public QObject {
30 Q_OBJECT 32 Q_OBJECT
31public: 33public:
32 /** 34 /**
@@ -42,17 +44,23 @@ public:
42 ~EmulationHandler(); 44 ~EmulationHandler();
43 45
44 void load( const Profile& ); 46 void load( const Profile& );
45 QWidget* widget(); 47 QWidget* widget();
48 void setColor( const QColor& fore, const QColor& back );
46signals: 49signals:
47 void send( const QByteArray& ); 50 void send( const QByteArray& );
48 void changeSize(int rows, int cols ); 51 void changeSize(int rows, int cols );
49 52
53
50public slots: 54public slots:
51 void recv( const QByteArray& ); 55 void recv( const QByteArray& );
52 56
53private slots: 57private slots:
54 void recvEmulation( const char*, int len ); 58 void recvEmulation( const char*, int len );
59private:
60 QFont font( int );
61 QColor foreColor(int );
62 QColor backColor(int );
55 63
56private: 64private:
57 TEWidget* m_teWid; 65 TEWidget* m_teWid;
58 TEmulation* m_teEmu; 66 TEmulation* m_teEmu;