Diffstat (limited to 'noncore/apps/opie-console/sz_transfer.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/sz_transfer.cpp | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/noncore/apps/opie-console/sz_transfer.cpp b/noncore/apps/opie-console/sz_transfer.cpp index f505998..3299e33 100644 --- a/noncore/apps/opie-console/sz_transfer.cpp +++ b/noncore/apps/opie-console/sz_transfer.cpp @@ -41,13 +41,13 @@ void SzTransfer::sendFile(const QString& file) { void SzTransfer::SzReceivedStdout(OProcess *, char *buffer, int buflen) { - - owarn << "recieved from sz on stdout " << buflen << " bytes" << oendl; - QByteArray data(buflen); data.fill(*buffer, buflen); + +#ifdef DEBUG_RECEIVE for (uint i = 0; i < data.count(); i++ ) { printf("%c", buffer[i] ); } printf("\n"); +#endif // send out through the io layer @@ -56,31 +56,14 @@ void SzTransfer::SzReceivedStdout(OProcess *, char *buffer, int buflen) { void SzTransfer::SzReceivedStderr(OProcess *, char *buffer, int length) { - - // parse and show data in a progress dialog/widget - printf("stderr:\n"); - //for (int i = 0; i < length; i++) - // printf("%c", buffer[i]); - //printf("\n"); } void SzTransfer::receivedStdin(const QByteArray &data) { - - owarn << "recieved from io_serial " << data.size() << " bytes" << oendl; - // recieved data from the io layer goes to sz proc->writeStdin(data.data(), data.size()); - } void SzTransfer::sent() { - - owarn << "sent file" << oendl; - - //setcbreak(0); /* default */ - - delete proc; disconnect(layer(), SIGNAL(received(const QByteArray&)), this, SLOT(receivedStdin(const QByteArray&))); - } |