author | zecke <zecke> | 2002-10-11 22:11:12 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-10-11 22:11:12 (UTC) |
commit | 597cda9456f8ef883d486b6ed7d7c09339919da9 (patch) (unidiff) | |
tree | b2c84cb6d5ff0f41759ce6220fc7b1c0ac611179 | |
parent | cef14e20ffcf1aa5dc62f0f3d6774efcbffcd6b7 (diff) | |
download | opie-597cda9456f8ef883d486b6ed7d7c09339919da9.zip opie-597cda9456f8ef883d486b6ed7d7c09339919da9.tar.gz opie-597cda9456f8ef883d486b6ed7d7c09339919da9.tar.bz2 |
Spelling....
-rw-r--r-- | noncore/apps/opie-console/test/console.pro | 2 | ||||
-rw-r--r-- | noncore/apps/opie-console/test/senderui.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/noncore/apps/opie-console/test/console.pro b/noncore/apps/opie-console/test/console.pro index f5761e2..9fe8e13 100644 --- a/noncore/apps/opie-console/test/console.pro +++ b/noncore/apps/opie-console/test/console.pro | |||
@@ -1,15 +1,15 @@ | |||
1 | TEMPLATE = app | 1 | TEMPLATE = app |
2 | #CONFIG = qt warn_on release | 2 | #CONFIG = qt warn_on release |
3 | CONFIG = qt debug | 3 | CONFIG = qt debug |
4 | #DESTDIR = $(OPIEDIR)/bin | 4 | #DESTDIR = $(OPIEDIR)/bin |
5 | HEADERS = ../io_layer.h ../io_serial.h ../sz_transfer.h ../file_layer.h\ | 5 | HEADERS = ../io_layer.h ../io_serial.h ../sz_transfer.h ../file_layer.h\ |
6 | senderui.h ../profile.h ../filetransfer.h | 6 | senderui.h ../profile.h ../filetransfer.h |
7 | SOURCES = ../io_layer.cpp ../io_serial.cpp \ | 7 | SOURCES = ../io_layer.cpp ../io_serial.cpp \ |
8 | ../profile.cpp ../sz_transfer.cpp ../file_layer.cpp\ | 8 | ../profile.cpp ../sz_transfer.cpp ../file_layer.cpp\ |
9 | main.cpp senderui.cpp ../filetransfer.cpp | 9 | main.cpp senderui.cpp ../filetransfer.cpp |
10 | INTERFACES = sender.ui | 10 | INTERFACES = sender.ui |
11 | INCLUDEPATH += $(OPIEDIR)/include | 11 | INCLUDEPATH += $(OPIEDIR)/include |
12 | DEPENDPATH += $(OPIEDIR)/include | 12 | DEPENDPATH += $(OPIEDIR)/include |
13 | LIBS += -lqpe -lopie | 13 | LIBS += -lqpe -lopie |
14 | TARGET = test | 14 | TARGET = test |
15 | 15 | ||
diff --git a/noncore/apps/opie-console/test/senderui.cpp b/noncore/apps/opie-console/test/senderui.cpp index 3d7c534..3e0bd65 100644 --- a/noncore/apps/opie-console/test/senderui.cpp +++ b/noncore/apps/opie-console/test/senderui.cpp | |||
@@ -16,53 +16,53 @@ | |||
16 | 16 | ||
17 | SenderUI::SenderUI() | 17 | SenderUI::SenderUI() |
18 | : Sender() { | 18 | : Sender() { |
19 | 19 | ||
20 | /* we do that manually */ | 20 | /* we do that manually */ |
21 | Profile prof; | 21 | Profile prof; |
22 | QString str = "/dev/ttyS0"; | 22 | QString str = "/dev/ttyS0"; |
23 | prof.writeEntry("Device",str ); | 23 | prof.writeEntry("Device",str ); |
24 | prof.writeEntry("Baud", 115200 ); | 24 | prof.writeEntry("Baud", 115200 ); |
25 | 25 | ||
26 | qWarning("prof " + prof.readEntry("Device") + " " + str); | 26 | qWarning("prof " + prof.readEntry("Device") + " " + str); |
27 | ser = new IOSerial(prof); | 27 | ser = new IOSerial(prof); |
28 | connect(ser, SIGNAL(received(const QByteArray& ) ), | 28 | connect(ser, SIGNAL(received(const QByteArray& ) ), |
29 | this, SLOT(got(const QByteArray&) ) ); | 29 | this, SLOT(got(const QByteArray&) ) ); |
30 | 30 | ||
31 | if ( ser->open() ) | 31 | if ( ser->open() ) |
32 | qWarning("opened!!!"); | 32 | qWarning("opened!!!"); |
33 | else | 33 | else |
34 | qWarning("could not open"); | 34 | qWarning("could not open"); |
35 | 35 | ||
36 | 36 | ||
37 | } | 37 | } |
38 | SenderUI::~SenderUI() { | 38 | SenderUI::~SenderUI() { |
39 | 39 | ||
40 | } | 40 | } |
41 | void SenderUI::slotSendFile() { | 41 | void SenderUI::slotSendFile() { |
42 | 42 | ||
43 | sz = new FileTransfer(FileTransfer::SZ, ser); | 43 | sz = new FileTransfer(FileTransfer::SZ, ser); |
44 | sz->sendFile("/home/ich/bootopie-v06-13.jffs2"); | 44 | sz->sendFile("/home/ich/bootopie-v06-13.jffs2"); |
45 | 45 | ||
46 | connect (sz, SIGNAL(sent()), | 46 | connect (sz, SIGNAL(sent()), |
47 | this, SLOT(fileTransComplete())); | 47 | this, SLOT(fileTransComplete())); |
48 | } | 48 | } |
49 | 49 | ||
50 | void SenderUI::slotSend() { | 50 | void SenderUI::slotSend() { |
51 | QCString str = MultiLineEdit1->text().utf8(); | 51 | QCString str = MultiLineEdit1->text().utf8(); |
52 | qWarning("sending: %s", str.data() ); | 52 | qWarning("sending: %s", str.data() ); |
53 | ser->send( str ); | 53 | ser->send( str ); |
54 | } | 54 | } |
55 | void SenderUI::got(const QByteArray& ar) { | 55 | void SenderUI::got(const QByteArray& ar) { |
56 | for ( uint i = 0; i < ar.count(); i++ ) { | 56 | for ( uint i = 0; i < ar.count(); i++ ) { |
57 | printf("%c", ar[i] ); | 57 | printf("%c", ar[i] ); |
58 | } | 58 | } |
59 | //printf("\n"); | 59 | //printf("\n"); |
60 | } | 60 | } |
61 | 61 | ||
62 | void SenderUI::fileTransComplete() { | 62 | void SenderUI::fileTransComplete() { |
63 | 63 | ||
64 | qWarning("file transfer compete"); | 64 | qWarning("file transfer complete"); |
65 | } | 65 | } |
66 | void SenderUI::send() { | 66 | void SenderUI::send() { |
67 | 67 | ||
68 | } | 68 | } |