Diffstat (limited to 'noncore/apps/opie-console/emulation_layer.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/emulation_layer.cpp | 36 |
1 files changed, 1 insertions, 35 deletions
diff --git a/noncore/apps/opie-console/emulation_layer.cpp b/noncore/apps/opie-console/emulation_layer.cpp index 265c11f..6a2679e 100644 --- a/noncore/apps/opie-console/emulation_layer.cpp +++ b/noncore/apps/opie-console/emulation_layer.cpp @@ -109,3 +109,2 @@ EmulationLayer::EmulationLayer( WidgetLayer* gui ) connected = FALSE; - m_script = 0; @@ -135,4 +134,2 @@ EmulationLayer::~EmulationLayer() delete screen[1]; - if (isRecording()) - clearScript(); bulk_timer.stop(); @@ -234,5 +231,2 @@ void EmulationLayer::onKeyPress( QKeyEvent* ev ) - /* Are we currently recording a script? If so, store the typed character */ - if (isRecording()) - m_script->appendString(ev->text()); emit sndBlock( (QByteArray) c ); @@ -263,31 +257,2 @@ void EmulationLayer::onRcvBlock(const QByteArray &s ) -// Scripts ----------------------------------------------------------------- -- - - -Script *EmulationLayer::script() { - return m_script; -} - -bool EmulationLayer::isRecording() { - return (m_script != 0); -} - -void EmulationLayer::startRecording() { - if (!isRecording()) - m_script = new Script(); -} - -void EmulationLayer::clearScript() { - if (isRecording()) { - - } -} - -void EmulationLayer::runScript(const Script *script) { - QByteArray a = QByteArray(); - QString str = script->script(); - a.setRawData(str.ascii(), str.length()); - emit sndBlock(a); -} - // Selection --------------------------------------------------------------- -- @@ -408 +373,2 @@ void EmulationLayer::setColumns(int columns) } + |