From 4dff3be36a89c2e864278ce85c477f923c4e3407 Mon Sep 17 00:00:00 2001 From: zecke Date: Fri, 11 Oct 2002 15:03:33 +0000 Subject: Make use of the new file transfer... --- (limited to 'noncore/apps/opie-console/test/senderui.cpp') 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,12 +1,16 @@ #include #include +#include +#include #include +#include #include "../profile.h" #include "../io_serial.h" -#include "../sz_transfer.h" +#include "../filetransfer.h" +#include #include "senderui.h" @@ -15,7 +19,7 @@ SenderUI::SenderUI() /* we do that manually */ Profile prof; - QString str = "/dev/ttyS1"; + QString str = "/dev/ttyS0"; prof.writeEntry("Device",str ); prof.writeEntry("Baud", 115200 ); @@ -30,17 +34,16 @@ SenderUI::SenderUI() qWarning("could not open"); - } SenderUI::~SenderUI() { } void SenderUI::slotSendFile() { - sz = new SzTransfer(SzTransfer::SZ, ser); - sz->sendFile("/home/jake/test"); + sz = new FileTransfer(FileTransfer::SZ, ser); + sz->sendFile("/home/ich/bootopie-v06-13.jffs2"); - connect (sz, SIGNAL(sent()), + connect (sz, SIGNAL(sent()), this, SLOT(fileTransComplete())); } @@ -60,3 +63,6 @@ void SenderUI::fileTransComplete() { qWarning("file transfer compete"); } +void SenderUI::send() { + +} -- cgit v0.9.0.2