summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/test/console.pro2
-rw-r--r--noncore/apps/opie-console/test/senderui.cpp2
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 @@
1TEMPLATE = app 1TEMPLATE = 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
5HEADERS = ../io_layer.h ../io_serial.h ../sz_transfer.h ../file_layer.h\ 5HEADERS = ../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
7SOURCES = ../io_layer.cpp ../io_serial.cpp \ 7SOURCES = ../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
10INTERFACES = sender.ui 10INTERFACES = sender.ui
11INCLUDEPATH += $(OPIEDIR)/include 11INCLUDEPATH += $(OPIEDIR)/include
12DEPENDPATH += $(OPIEDIR)/include 12DEPENDPATH += $(OPIEDIR)/include
13LIBS += -lqpe -lopie 13LIBS += -lqpe -lopie
14TARGET = test 14TARGET = 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
17SenderUI::SenderUI() 17SenderUI::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}
38SenderUI::~SenderUI() { 38SenderUI::~SenderUI() {
39 39
40} 40}
41void SenderUI::slotSendFile() { 41void 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
50void SenderUI::slotSend() { 50void 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}
55void SenderUI::got(const QByteArray& ar) { 55void 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
62void SenderUI::fileTransComplete() { 62void SenderUI::fileTransComplete() {
63 63
64 qWarning("file transfer compete"); 64 qWarning("file transfer complete");
65} 65}
66void SenderUI::send() { 66void SenderUI::send() {
67 67
68} 68}