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 | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/noncore/apps/opie-console/test/senderui.cpp b/noncore/apps/opie-console/test/senderui.cpp index 24d3eb2..3d7c534 100644 --- a/noncore/apps/opie-console/test/senderui.cpp +++ b/noncore/apps/opie-console/test/senderui.cpp | |||
@@ -1,11 +1,15 @@ | |||
1 | #include <stdlib.h> | 1 | #include <stdlib.h> |
2 | #include <stdio.h> | 2 | #include <stdio.h> |
3 | #include <fcntl.h> | ||
4 | #include <sys/termios.h> | ||
3 | 5 | ||
4 | #include <qmultilineedit.h> | 6 | #include <qmultilineedit.h> |
7 | #include <qsocketnotifier.h> | ||
5 | 8 | ||
6 | #include "../profile.h" | 9 | #include "../profile.h" |
7 | #include "../io_serial.h" | 10 | #include "../io_serial.h" |
8 | #include "../sz_transfer.h" | 11 | #include "../filetransfer.h" |
9 | 12 | ||
13 | #include <opie/oprocess.h> | ||
10 | 14 | ||
11 | #include "senderui.h" | 15 | #include "senderui.h" |
@@ -16,5 +20,5 @@ SenderUI::SenderUI() | |||
16 | /* we do that manually */ | 20 | /* we do that manually */ |
17 | Profile prof; | 21 | Profile prof; |
18 | QString str = "/dev/ttyS1"; | 22 | QString str = "/dev/ttyS0"; |
19 | prof.writeEntry("Device",str ); | 23 | prof.writeEntry("Device",str ); |
20 | prof.writeEntry("Baud", 115200 ); | 24 | prof.writeEntry("Baud", 115200 ); |
@@ -31,5 +35,4 @@ SenderUI::SenderUI() | |||
31 | 35 | ||
32 | 36 | ||
33 | |||
34 | } | 37 | } |
35 | SenderUI::~SenderUI() { | 38 | SenderUI::~SenderUI() { |
@@ -38,8 +41,8 @@ SenderUI::~SenderUI() { | |||
38 | void SenderUI::slotSendFile() { | 41 | void SenderUI::slotSendFile() { |
39 | 42 | ||
40 | sz = new SzTransfer(SzTransfer::SZ, ser); | 43 | sz = new FileTransfer(FileTransfer::SZ, ser); |
41 | sz->sendFile("/home/jake/test"); | 44 | sz->sendFile("/home/ich/bootopie-v06-13.jffs2"); |
42 | 45 | ||
43 | connect (sz, SIGNAL(sent()), | 46 | connect (sz, SIGNAL(sent()), |
44 | this, SLOT(fileTransComplete())); | 47 | this, SLOT(fileTransComplete())); |
45 | } | 48 | } |
@@ -61,2 +64,5 @@ void SenderUI::fileTransComplete() { | |||
61 | qWarning("file transfer compete"); | 64 | qWarning("file transfer compete"); |
62 | } | 65 | } |
66 | void SenderUI::send() { | ||
67 | |||
68 | } | ||