author | zecke <zecke> | 2004-10-16 21:06:28 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-10-16 21:06:28 (UTC) |
commit | 999a0f2d22f132005bde62558ace48a0ce8b1dcc (patch) (unidiff) | |
tree | 75f528b52a8a89289925e62bbd4c48d316c8ddcf /noncore/apps/opie-console/sz_transfer.cpp | |
parent | e70f226f5c4c2f488f6c4406034a04e128c0ca93 (diff) | |
download | opie-999a0f2d22f132005bde62558ace48a0ce8b1dcc.zip opie-999a0f2d22f132005bde62558ace48a0ce8b1dcc.tar.gz opie-999a0f2d22f132005bde62558ace48a0ce8b1dcc.tar.bz2 |
-Remove never finished classes by ibotty for the console widget
-Put setCurrent into ComboboxHelper and remove duplication from the
dialogs
-Remove old and unneeded debug output
-IOBt, IOIrda can share the implementation for sening,recieving
and supports with IOSerial
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 | |||
@@ -40,47 +40,30 @@ void SzTransfer::sendFile(const QString& file) { | |||
40 | } | 40 | } |
41 | 41 | ||
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++ ) { |
49 | printf("%c", buffer[i] ); | 48 | printf("%c", buffer[i] ); |
50 | } | 49 | } |
51 | printf("\n"); | 50 | printf("\n"); |
51 | #endif | ||
52 | 52 | ||
53 | // send out through the io layer | 53 | // send out through the io layer |
54 | layer()->send(data); | 54 | layer()->send(data); |
55 | } | 55 | } |
56 | 56 | ||
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 | } |
65 | 59 | ||
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 | } |
74 | 64 | ||
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; |
83 | disconnect(layer(), SIGNAL(received(const QByteArray&)), | 67 | disconnect(layer(), SIGNAL(received(const QByteArray&)), |
84 | this, SLOT(receivedStdin(const QByteArray&))); | 68 | this, SLOT(receivedStdin(const QByteArray&))); |
85 | |||
86 | } | 69 | } |