Diffstat (limited to 'noncore/apps/opie-console/sz_transfer.cpp') (more/less context) (show 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 | |||
@@ -42,7 +42,6 @@ void SzTransfer::sendFile(const QString& file) { | |||
42 | void SzTransfer::SzReceivedStdout(OProcess *, char *buffer, int buflen) { | 42 | void SzTransfer::SzReceivedStdout(OProcess *, char *buffer, int buflen) { |
43 | |||
44 | owarn << "recieved from sz on stdout " << buflen << " bytes" << oendl; | ||
45 | |||
46 | QByteArray data(buflen); | 43 | QByteArray data(buflen); |
47 | data.fill(*buffer, buflen); | 44 | data.fill(*buffer, buflen); |
45 | |||
46 | #ifdef DEBUG_RECEIVE | ||
48 | for (uint i = 0; i < data.count(); i++ ) { | 47 | for (uint i = 0; i < data.count(); i++ ) { |
@@ -51,2 +50,3 @@ void SzTransfer::SzReceivedStdout(OProcess *, char *buffer, int buflen) { | |||
51 | printf("\n"); | 50 | printf("\n"); |
51 | #endif | ||
52 | 52 | ||
@@ -57,8 +57,2 @@ void SzTransfer::SzReceivedStdout(OProcess *, char *buffer, int buflen) { | |||
57 | void SzTransfer::SzReceivedStderr(OProcess *, char *buffer, int length) { | 57 | void SzTransfer::SzReceivedStderr(OProcess *, char *buffer, int length) { |
58 | |||
59 | // parse and show data in a progress dialog/widget | ||
60 | printf("stderr:\n"); | ||
61 | //for (int i = 0; i < length; i++) | ||
62 | // printf("%c", buffer[i]); | ||
63 | //printf("\n"); | ||
64 | } | 58 | } |
@@ -66,8 +60,4 @@ void SzTransfer::SzReceivedStderr(OProcess *, char *buffer, int length) { | |||
66 | void SzTransfer::receivedStdin(const QByteArray &data) { | 60 | void SzTransfer::receivedStdin(const QByteArray &data) { |
67 | |||
68 | owarn << "recieved from io_serial " << data.size() << " bytes" << oendl; | ||
69 | |||
70 | // recieved data from the io layer goes to sz | 61 | // recieved data from the io layer goes to sz |
71 | proc->writeStdin(data.data(), data.size()); | 62 | proc->writeStdin(data.data(), data.size()); |
72 | |||
73 | } | 63 | } |
@@ -75,8 +65,2 @@ void SzTransfer::receivedStdin(const QByteArray &data) { | |||
75 | void SzTransfer::sent() { | 65 | void SzTransfer::sent() { |
76 | |||
77 | owarn << "sent file" << oendl; | ||
78 | |||
79 | //setcbreak(0); /* default */ | ||
80 | |||
81 | |||
82 | delete proc; | 66 | delete proc; |
@@ -84,3 +68,2 @@ void SzTransfer::sent() { | |||
84 | this, SLOT(receivedStdin(const QByteArray&))); | 68 | this, SLOT(receivedStdin(const QByteArray&))); |
85 | |||
86 | } | 69 | } |