author | spiralman <spiralman> | 2002-07-23 22:39:56 (UTC) |
---|---|---|
committer | spiralman <spiralman> | 2002-07-23 22:39:56 (UTC) |
commit | 17068d35cc662a1cace883cfa98bb1f21534cb41 (patch) (side-by-side diff) | |
tree | 62cbc086c8d1a3af4acff547dafa80f8c930f8be | |
parent | 7b69ef59464072521adb20148d49f9c654c066ee (diff) | |
download | opie-17068d35cc662a1cace883cfa98bb1f21534cb41.zip opie-17068d35cc662a1cace883cfa98bb1f21534cb41.tar.gz opie-17068d35cc662a1cace883cfa98bb1f21534cb41.tar.bz2 |
made it compilable again
-rw-r--r-- | noncore/tools/remote/recorddialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/tools/remote/recorddialog.cpp b/noncore/tools/remote/recorddialog.cpp index 642e99c..f7cd30c 100644 --- a/noncore/tools/remote/recorddialog.cpp +++ b/noncore/tools/remote/recorddialog.cpp @@ -27,55 +27,55 @@ RecordDialog::RecordDialog(QWidget *parent=0, const char *name=0):QDialog(parent layout->insertSpacing(-1, 5); layout->insertLayout(-1, hlayout); layout->insertSpacing(-1, 5); hlayout->insertSpacing(0, 5); input = new QLineEdit(this, "input"); hlayout->insertWidget(-1, input, 1); hlayout->insertSpacing(-1, 5); QPushButton *ret = new QPushButton("Return", this, "return"); hlayout->insertWidget(-1, ret); hlayout->insertSpacing(-1, 5); connect(ret, SIGNAL(clicked()), this, SLOT(retPressed()) ); where = 0; record = new OProcess; } void RecordDialog::retPressed() { printf("RecordDialog::retPressed: ret pressed\n"); if(where == 0) { connect(record, SIGNAL(receivedStdout(OProcess *, char *, int)), this, SLOT(incoming(OProcess *, char *, int)) ); connect(record, SIGNAL(receivedStderr(OProcess *, char *, int)), this, SLOT(incoming(OProcess *, char *, int)) ); connect(record, SIGNAL(processExited(OProcess *)), this, SLOT(done(OProcess *)) ); printf("RecordDialog::retPressed: starting irrecord\n"); QString file = "/tmp/" + input->text(); *record<<"irrecord"<<file.latin1(); if(!record->start(OProcess::NotifyOnExit, OProcess::AllOutput)) { QMessageBox *mb = new QMessageBox("Error!", "Could not start irrecord. You must<br>use an lirc ipkg that includes<br>irrecord", QMessageBox::NoIcon, QMessageBox::Ok, QMessageBox::NoButton, QMessageBox::NoButton); mb->exec(); return; } // record->resume(); where = 1; } } void RecordDialog::incoming(OProcess *proc, char *buffer, int len) { - output->setText(output->text() + QString(buffer).truncate(len-1)); +// output->setText(output->text() + QString(buffer).truncate(len-1)); printf("RecordDialog::incoming: got text from irrecord\n"); } void RecordDialog::done(OProcess *proc) { } |