summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/emulation_layer.h
Side-by-side diff
Diffstat (limited to 'noncore/apps/opie-console/emulation_layer.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/emulation_layer.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/emulation_layer.h b/noncore/apps/opie-console/emulation_layer.h
index 91a4856..928ad04 100644
--- a/noncore/apps/opie-console/emulation_layer.h
+++ b/noncore/apps/opie-console/emulation_layer.h
@@ -32,6 +32,7 @@
#include <stdio.h>
#include <qtextcodec.h>
#include "keytrans.h"
+#include "script.h"
class EmulationLayer : public QObject
{ Q_OBJECT
@@ -104,6 +105,22 @@ public:
void setKeytrans(int no);
void setKeytrans(const char * no);
+ /* Scripts */
+
+ /* Create a new script and record all typed characters */
+ void startRecording();
+
+ /* Return whether we are currently recording a script */
+ bool isRecording();
+
+ /* Return the current script (or NULL) */
+ Script *script();
+
+ /* Stop recording and remove the current script from memory */
+ void clearScript();
+
+ /* Run a script by forwarding its keys to the EmulationLayer */
+ void runScript(const Script *);
protected:
WidgetLayer* gui;
@@ -139,7 +156,7 @@ private:
int bulk_nlcnt; // bulk newline counter
char* SelectedText;
int bulk_incnt; // bulk counter
-
+ Script *m_script;
};