summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-console/test/console.pro4
-rw-r--r--noncore/apps/opie-console/test/sender.ui18
-rw-r--r--noncore/apps/opie-console/test/senderui.cpp17
-rw-r--r--noncore/apps/opie-console/test/senderui.h4
4 files changed, 40 insertions, 3 deletions
diff --git a/noncore/apps/opie-console/test/console.pro b/noncore/apps/opie-console/test/console.pro
index 721b820..b10b651 100644
--- a/noncore/apps/opie-console/test/console.pro
+++ b/noncore/apps/opie-console/test/console.pro
@@ -4,6 +4,6 @@ CONFIG = qt debug
4#DESTDIR = $(OPIEDIR)/bin 4#DESTDIR = $(OPIEDIR)/bin
5HEADERS = ../io_layer.h ../io_serial.h \ 5HEADERS = ../io_layer.h ../io_serial.h ../sz_transfer.h ../file_layer.h\
6 senderui.h ../profile.h 6 senderui.h ../profile.h
7SOURCES = ../io_layer.cpp ../io_serial.cpp \ 7SOURCES = ../io_layer.cpp ../io_serial.cpp \
8 ../profile.cpp \ 8 ../profile.cpp ../sz_transfer.cpp ../file_layer.cpp\
9 main.cpp senderui.cpp 9 main.cpp senderui.cpp
diff --git a/noncore/apps/opie-console/test/sender.ui b/noncore/apps/opie-console/test/sender.ui
index 092f6e3..b946b81 100644
--- a/noncore/apps/opie-console/test/sender.ui
+++ b/noncore/apps/opie-console/test/sender.ui
@@ -48,2 +48,13 @@
48 </widget> 48 </widget>
49 <widget>
50 <class>QPushButton</class>
51 <property stdset="1">
52 <name>name</name>
53 <cstring>PushButton2</cstring>
54 </property>
55 <property stdset="1">
56 <name>text</name>
57 <string>Send &amp;File</string>
58 </property>
59 </widget>
49 </vbox> 60 </vbox>
@@ -58,2 +69,9 @@
58 <slot access="public">slotSend()</slot> 69 <slot access="public">slotSend()</slot>
70 <connection>
71 <sender>PushButton2</sender>
72 <signal>clicked()</signal>
73 <receiver>Form1</receiver>
74 <slot>slotSendFile()</slot>
75 </connection>
76 <slot access="public">slotSendFile()</slot>
59</connections> 77</connections>
diff --git a/noncore/apps/opie-console/test/senderui.cpp b/noncore/apps/opie-console/test/senderui.cpp
index fc93c04..24d3eb2 100644
--- a/noncore/apps/opie-console/test/senderui.cpp
+++ b/noncore/apps/opie-console/test/senderui.cpp
@@ -7,2 +7,3 @@
7#include "../io_serial.h" 7#include "../io_serial.h"
8#include "../sz_transfer.h"
8 9
@@ -16,3 +17,3 @@ SenderUI::SenderUI()
16 Profile prof; 17 Profile prof;
17 QString str = "/dev/ttyS0"; 18 QString str = "/dev/ttyS1";
18 prof.writeEntry("Device",str ); 19 prof.writeEntry("Device",str );
@@ -36,2 +37,11 @@ SenderUI::~SenderUI() {
36} 37}
38void SenderUI::slotSendFile() {
39
40 sz = new SzTransfer(SzTransfer::SZ, ser);
41 sz->sendFile("/home/jake/test");
42
43 connect (sz, SIGNAL(sent()),
44 this, SLOT(fileTransComplete()));
45}
46
37void SenderUI::slotSend() { 47void SenderUI::slotSend() {
@@ -47 +57,6 @@ void SenderUI::got(const QByteArray& ar) {
47} 57}
58
59void SenderUI::fileTransComplete() {
60
61 qWarning("file transfer compete");
62}
diff --git a/noncore/apps/opie-console/test/senderui.h b/noncore/apps/opie-console/test/senderui.h
index bc69f5d..f6230cc 100644
--- a/noncore/apps/opie-console/test/senderui.h
+++ b/noncore/apps/opie-console/test/senderui.h
@@ -8,2 +8,3 @@
8class IOSerial; 8class IOSerial;
9class SzTransfer;
9class SenderUI : public Sender { 10class SenderUI : public Sender {
@@ -15,6 +16,9 @@ public:
15public slots: 16public slots:
17 void slotSendFile();
16 void slotSend(); 18 void slotSend();
17 void got(const QByteArray& ); 19 void got(const QByteArray& );
20 void fileTransComplete();
18private: 21private:
19 IOSerial* ser; 22 IOSerial* ser;
23 SzTransfer* sz;
20}; 24};