author | zecke <zecke> | 2002-10-24 20:11:15 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-10-24 20:11:15 (UTC) |
commit | 56c10d4383d5de607727ca8bd1ef1b9c8e2e3047 (patch) (unidiff) | |
tree | e484aa872b706c665f5e8ea756cc4754df887c33 /noncore/apps/opie-console/test/senderui.cpp | |
parent | 91e3749c56ce2fd1280ff2114ba3dc9301181b6d (diff) | |
download | opie-56c10d4383d5de607727ca8bd1ef1b9c8e2e3047.zip opie-56c10d4383d5de607727ca8bd1ef1b9c8e2e3047.tar.gz opie-56c10d4383d5de607727ca8bd1ef1b9c8e2e3047.tar.bz2 |
intent to fix modem
Diffstat (limited to 'noncore/apps/opie-console/test/senderui.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/test/senderui.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/noncore/apps/opie-console/test/senderui.cpp b/noncore/apps/opie-console/test/senderui.cpp index 2ce3f6d..4026808 100644 --- a/noncore/apps/opie-console/test/senderui.cpp +++ b/noncore/apps/opie-console/test/senderui.cpp | |||
@@ -20,9 +20,9 @@ SenderUI::SenderUI() | |||
20 | 20 | ||
21 | /* we do that manually */ | 21 | /* we do that manually */ |
22 | Profile prof; | 22 | Profile prof; |
23 | QString str = "/dev/ttyS0"; | 23 | QString str = "/dev/bty0"; |
24 | prof.writeEntry("Device",str ); | 24 | prof.writeEntry("Device",str ); |
25 | prof.writeEntry("Baud", 115200 ); | 25 | prof.writeEntry("Baud", 19200 ); |
26 | 26 | ||
27 | qWarning("prof " + prof.readEntry("Device") + " " + str); | 27 | qWarning("prof " + prof.readEntry("Device") + " " + str); |
28 | ser = new IOSerial(prof); | 28 | ser = new IOSerial(prof); |
@@ -51,13 +51,15 @@ void SenderUI::slotSendFile() { | |||
51 | void SenderUI::slotSend() { | 51 | void SenderUI::slotSend() { |
52 | QCString str = MultiLineEdit1->text().utf8(); | 52 | QCString str = MultiLineEdit1->text().utf8(); |
53 | qWarning("sending: %s", str.data() ); | 53 | qWarning("sending: %s", str.data() ); |
54 | str = str.replace( QRegExp("\n"), "\r"); | ||
54 | ser->send( str ); | 55 | ser->send( str ); |
55 | } | 56 | } |
56 | void SenderUI::got(const QByteArray& ar) { | 57 | void SenderUI::got(const QByteArray& ar) { |
58 | qWarning("got:"); | ||
57 | for ( uint i = 0; i < ar.count(); i++ ) { | 59 | for ( uint i = 0; i < ar.count(); i++ ) { |
58 | printf("%c", ar[i] ); | 60 | printf("%c", ar[i] ); |
59 | } | 61 | } |
60 | //printf("\n"); | 62 | printf("\n"); |
61 | } | 63 | } |
62 | 64 | ||
63 | void SenderUI::fileTransComplete() { | 65 | void SenderUI::fileTransComplete() { |
@@ -72,4 +74,4 @@ qWarning("Going to receive!"); | |||
72 | FileReceive *rev = new FileReceive( FileReceive::SZ, ser ); | 74 | FileReceive *rev = new FileReceive( FileReceive::SZ, ser ); |
73 | rev->receive(); | 75 | rev->receive(); |
74 | 76 | ||
75 | } \ No newline at end of file | 77 | } |