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.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 | |||
@@ -26,12 +26,13 @@ | |||
26 | class Profile; | 26 | class Profile; |
27 | class QWidget; | 27 | class QWidget; |
28 | class QPushButton; | 28 | 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: |
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 | ||
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 ); |
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 | ||
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 |