From 18ba3be9ca69c42476e310649e3068d2d5f8a03b Mon Sep 17 00:00:00 2001 From: wazlaf Date: Sun, 20 Oct 2002 14:53:08 +0000 Subject: scripting fixed (moved from emulation_layer to emulation_handler). Scripts now use QByteArray instead of QString --- (limited to 'noncore/apps/opie-console/emulation_handler.h') 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; class TEWidget; class TEmulation; class QFont; +class Script; class EmulationHandler : public QObject { Q_OBJECT public: @@ -48,6 +49,22 @@ public: QWidget* widget(); void setColor( const QColor& fore, const QColor& back ); QPushButton* cornerButton(); + + /* 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 *); signals: void send( const QByteArray& ); @@ -67,7 +84,7 @@ private: private: TEWidget* m_teWid; TEmulation* m_teEmu; - + Script * m_script; }; #endif -- cgit v0.9.0.2