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.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/emulation_handler.h b/noncore/apps/opie-console/emulation_handler.h
index 9ceafc6..7ca2cf3 100644
--- a/noncore/apps/opie-console/emulation_handler.h
+++ b/noncore/apps/opie-console/emulation_handler.h
@@ -26,12 +26,13 @@
26class Profile; 26class Profile;
27class QWidget; 27class QWidget;
28class QPushButton; 28class QPushButton;
29class TEWidget; 29class TEWidget;
30class TEmulation; 30class TEmulation;
31class QFont; 31class QFont;
32class Script;
32class EmulationHandler : public QObject { 33class EmulationHandler : public QObject {
33 Q_OBJECT 34 Q_OBJECT
34public: 35public:
35 /** 36 /**
36 * simple c'tor the parent of the TEWdiget 37 * simple c'tor the parent of the TEWdiget
37 * and a name 38 * and a name
@@ -45,12 +46,28 @@ public:
45 ~EmulationHandler(); 46 ~EmulationHandler();
46 47
47 void load( const Profile& ); 48 void load( const Profile& );
48 QWidget* widget(); 49 QWidget* widget();
49 void setColor( const QColor& fore, const QColor& back ); 50 void setColor( const QColor& fore, const QColor& back );
50 QPushButton* cornerButton(); 51 QPushButton* cornerButton();
52
53 /* Scripts */
54 /* Create a new script and record all typed characters */
55 void startRecording();
56
57 /* Return whether we are currently recording a script */
58 bool isRecording();
59
60 /* Return the current script (or NULL) */
61 Script *script();
62
63 /* Stop recording and remove the current script from memory */
64 void clearScript();
65
66 /* Run a script by forwarding its keys to the EmulationLayer */
67 void runScript(const Script *);
51 68
52signals: 69signals:
53 void send( const QByteArray& ); 70 void send( const QByteArray& );
54 void changeSize(int rows, int cols ); 71 void changeSize(int rows, int cols );
55 72
56 73
@@ -64,10 +81,10 @@ private:
64 QColor foreColor(int ); 81 QColor foreColor(int );
65 QColor backColor(int ); 82 QColor backColor(int );
66 83
67private: 84private:
68 TEWidget* m_teWid; 85 TEWidget* m_teWid;
69 TEmulation* m_teEmu; 86 TEmulation* m_teEmu;
70 87 Script * m_script;
71}; 88};
72 89
73#endif 90#endif