From 6a9726437a59cf3b18bf57d6e20fb2dfaaa2fc34 Mon Sep 17 00:00:00 2001 From: zecke Date: Sun, 13 Oct 2002 15:31:12 +0000 Subject: Move some stuff in filetransfer around make pid == 0 after a finished process. Introduce the FileReceive class it does not parse progress though --- (limited to 'noncore/apps/opie-console/test') diff --git a/noncore/apps/opie-console/test/console.pro b/noncore/apps/opie-console/test/console.pro index af0e9f7..6de2cd0 100644 --- a/noncore/apps/opie-console/test/console.pro +++ b/noncore/apps/opie-console/test/console.pro @@ -3,10 +3,12 @@ TEMPLATE = app CONFIG = qt debug #DESTDIR = $(OPIEDIR)/bin HEADERS = ../io_layer.h ../io_serial.h ../sz_transfer.h ../file_layer.h\ - senderui.h ../profile.h ../filetransfer.h ../procctl.h + senderui.h ../profile.h ../filetransfer.h ../procctl.h \ + ../filereceive.h ../receive_layer.h SOURCES = ../io_layer.cpp ../io_serial.cpp \ ../profile.cpp ../sz_transfer.cpp ../file_layer.cpp\ - main.cpp senderui.cpp ../filetransfer.cpp ../procctl.cpp + main.cpp senderui.cpp ../filetransfer.cpp ../procctl.cpp \ + ../filereceive.cpp ../receive_layer.cpp INTERFACES = sender.ui INCLUDEPATH += $(OPIEDIR)/include DEPENDPATH += $(OPIEDIR)/include diff --git a/noncore/apps/opie-console/test/sender.ui b/noncore/apps/opie-console/test/sender.ui index b946b81..74b9790 100644 --- a/noncore/apps/opie-console/test/sender.ui +++ b/noncore/apps/opie-console/test/sender.ui @@ -11,7 +11,7 @@ 0 0 - 596 + 592 480 @@ -39,6 +39,17 @@ QPushButton name + PushButton3 + + + text + Receive File + + + + QPushButton + + name PushButton1 @@ -66,13 +77,20 @@ Form1 slotSend() - slotSend() PushButton2 clicked() Form1 slotSendFile() + + PushButton3 + clicked() + Form1 + slotRev() + + slotRev() + slotSend() slotSendFile() diff --git a/noncore/apps/opie-console/test/senderui.cpp b/noncore/apps/opie-console/test/senderui.cpp index 8bc1676..2ce3f6d 100644 --- a/noncore/apps/opie-console/test/senderui.cpp +++ b/noncore/apps/opie-console/test/senderui.cpp @@ -9,6 +9,7 @@ #include "../profile.h" #include "../io_serial.h" #include "../filetransfer.h" +#include "../filereceive.h" #include @@ -66,3 +67,9 @@ void SenderUI::fileTransComplete() { void SenderUI::send() { } +void SenderUI::slotRev(){ +qWarning("Going to receive!"); +FileReceive *rev = new FileReceive( FileReceive::SZ, ser ); +rev->receive(); + +} \ No newline at end of file diff --git a/noncore/apps/opie-console/test/senderui.h b/noncore/apps/opie-console/test/senderui.h index 5e613cd..c130dcf 100644 --- a/noncore/apps/opie-console/test/senderui.h +++ b/noncore/apps/opie-console/test/senderui.h @@ -19,6 +19,7 @@ public slots: void send(); void slotSendFile(); void slotSend(); + void slotRev(); void got(const QByteArray& ); void fileTransComplete(); private: -- cgit v0.9.0.2