author | spiralman <spiralman> | 2002-07-23 22:39:56 (UTC) |
---|---|---|
committer | spiralman <spiralman> | 2002-07-23 22:39:56 (UTC) |
commit | 17068d35cc662a1cace883cfa98bb1f21534cb41 (patch) (unidiff) | |
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 | |||
@@ -43,39 +43,39 @@ RecordDialog::RecordDialog(QWidget *parent=0, const char *name=0):QDialog(parent | |||
43 | } | 43 | } |
44 | 44 | ||
45 | void RecordDialog::retPressed() | 45 | void RecordDialog::retPressed() |
46 | { | 46 | { |
47 | printf("RecordDialog::retPressed: ret pressed\n"); | 47 | printf("RecordDialog::retPressed: ret pressed\n"); |
48 | 48 | ||
49 | if(where == 0) | 49 | if(where == 0) |
50 | { | 50 | { |
51 | connect(record, SIGNAL(receivedStdout(OProcess *, char *, int)), this, SLOT(incoming(OProcess *, char *, int)) ); | 51 | connect(record, SIGNAL(receivedStdout(OProcess *, char *, int)), this, SLOT(incoming(OProcess *, char *, int)) ); |
52 | connect(record, SIGNAL(receivedStderr(OProcess *, char *, int)), this, SLOT(incoming(OProcess *, char *, int)) ); | 52 | connect(record, SIGNAL(receivedStderr(OProcess *, char *, int)), this, SLOT(incoming(OProcess *, char *, int)) ); |
53 | connect(record, SIGNAL(processExited(OProcess *)), this, SLOT(done(OProcess *)) ); | 53 | connect(record, SIGNAL(processExited(OProcess *)), this, SLOT(done(OProcess *)) ); |
54 | printf("RecordDialog::retPressed: starting irrecord\n"); | 54 | printf("RecordDialog::retPressed: starting irrecord\n"); |
55 | QString file = "/tmp/" + input->text(); | 55 | QString file = "/tmp/" + input->text(); |
56 | *record<<"irrecord"<<file.latin1(); | 56 | *record<<"irrecord"<<file.latin1(); |
57 | if(!record->start(OProcess::NotifyOnExit, OProcess::AllOutput)) | 57 | if(!record->start(OProcess::NotifyOnExit, OProcess::AllOutput)) |
58 | { | 58 | { |
59 | QMessageBox *mb = new QMessageBox("Error!", | 59 | QMessageBox *mb = new QMessageBox("Error!", |
60 | "Could not start irrecord. You must<br>use an lirc ipkg that includes<br>irrecord", | 60 | "Could not start irrecord. You must<br>use an lirc ipkg that includes<br>irrecord", |
61 | QMessageBox::NoIcon, | 61 | QMessageBox::NoIcon, |
62 | QMessageBox::Ok, | 62 | QMessageBox::Ok, |
63 | QMessageBox::NoButton, | 63 | QMessageBox::NoButton, |
64 | QMessageBox::NoButton); | 64 | QMessageBox::NoButton); |
65 | mb->exec(); | 65 | mb->exec(); |
66 | return; | 66 | return; |
67 | } | 67 | } |
68 | // record->resume(); | 68 | // record->resume(); |
69 | where = 1; | 69 | where = 1; |
70 | } | 70 | } |
71 | } | 71 | } |
72 | 72 | ||
73 | void RecordDialog::incoming(OProcess *proc, char *buffer, int len) | 73 | void RecordDialog::incoming(OProcess *proc, char *buffer, int len) |
74 | { | 74 | { |
75 | output->setText(output->text() + QString(buffer).truncate(len-1)); | 75 | //output->setText(output->text() + QString(buffer).truncate(len-1)); |
76 | printf("RecordDialog::incoming: got text from irrecord\n"); | 76 | printf("RecordDialog::incoming: got text from irrecord\n"); |
77 | } | 77 | } |
78 | 78 | ||
79 | void RecordDialog::done(OProcess *proc) | 79 | void RecordDialog::done(OProcess *proc) |
80 | { | 80 | { |
81 | } | 81 | } |