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 | 19 |
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 | |||
@@ -29,6 +29,7 @@ class QPushButton; | |||
29 | class TEWidget; | 29 | class TEWidget; |
30 | class TEmulation; | 30 | class TEmulation; |
31 | class QFont; | 31 | class QFont; |
32 | class Script; | ||
32 | class EmulationHandler : public QObject { | 33 | class EmulationHandler : public QObject { |
33 | Q_OBJECT | 34 | Q_OBJECT |
34 | public: | 35 | public: |
@@ -49,6 +50,22 @@ public: | |||
49 | void setColor( const QColor& fore, const QColor& back ); | 50 | void setColor( const QColor& fore, const QColor& back ); |
50 | QPushButton* cornerButton(); | 51 | QPushButton* cornerButton(); |
51 | 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 *); | ||
68 | |||
52 | signals: | 69 | signals: |
53 | void send( const QByteArray& ); | 70 | void send( const QByteArray& ); |
54 | void changeSize(int rows, int cols ); | 71 | void changeSize(int rows, int cols ); |
@@ -67,7 +84,7 @@ private: | |||
67 | private: | 84 | private: |
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 |