summaryrefslogtreecommitdiff
authorzecke <zecke>2002-06-12 17:08:42 (UTC)
committer zecke <zecke>2002-06-12 17:08:42 (UTC)
commitd57ced2b9c8f3ac79bae54bef7d5026d24e2bb98 (patch) (unidiff)
tree2db69c92fb707834b798f815f812cbf30b9f09b1
parentac707e366de561cabc8074b62025d143200869d7 (diff)
downloadopie-d57ced2b9c8f3ac79bae54bef7d5026d24e2bb98.zip
opie-d57ced2b9c8f3ac79bae54bef7d5026d24e2bb98.tar.gz
opie-d57ced2b9c8f3ac79bae54bef7d5026d24e2bb98.tar.bz2
Send Receive working now it's time for a gui
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/obex/obex.cc11
-rw-r--r--core/applets/obex/obeximpl.cc3
2 files changed, 11 insertions, 3 deletions
diff --git a/core/applets/obex/obex.cc b/core/applets/obex/obex.cc
index 582ebbc..f35d57a 100644
--- a/core/applets/obex/obex.cc
+++ b/core/applets/obex/obex.cc
@@ -1,2 +1,3 @@
1 1
2#include <qapplication.h>
2 3
@@ -19,2 +20,3 @@ Obex::~Obex() {
19void Obex::receive() { 20void Obex::receive() {
21 qWarning("Receive" );
20 m_rec = new OProcess(); 22 m_rec = new OProcess();
@@ -41,4 +43,5 @@ void Obex::send( const QString& fileName) {
41void Obex::sendNow(){ 43void Obex::sendNow(){
42 if ( m_count >= 15 ) { // could not send 44 if ( m_count >= 25 ) { // could not send
43 emit error(-1 ); 45 emit error(-1 );
46 return;
44 } 47 }
@@ -56,3 +59,4 @@ void Obex::sendNow(){
56 if (!m_send->start(/*OProcess::NotifyOnExit, OProcess::AllOutput*/ ) ) { 59 if (!m_send->start(/*OProcess::NotifyOnExit, OProcess::AllOutput*/ ) ) {
57 m_count = 15; 60 qWarning("could not send" );
61 m_count = 25;
58 emit error(-1 ); 62 emit error(-1 );
@@ -94,2 +98,3 @@ void Obex::sendEnd() {
94 m_send=0; 98 m_send=0;
99 qWarning("done" );
95 emit sent(); 100 emit sent();
@@ -99,2 +104,3 @@ void Obex::sendEnd() {
99 m_send = 0; 104 m_send = 0;
105 qWarning("try sending again" );
100 sendNow(); 106 sendNow();
@@ -115,2 +121,3 @@ QString Obex::parseOut( ){
115 path = pathes[1]; 121 path = pathes[1];
122 qWarning("path %s", path.latin1() );
116 } 123 }
diff --git a/core/applets/obex/obeximpl.cc b/core/applets/obex/obeximpl.cc
index fa2a30a..82ff1a1 100644
--- a/core/applets/obex/obeximpl.cc
+++ b/core/applets/obex/obeximpl.cc
@@ -48,3 +48,4 @@ void ObexImpl::slotMessage( const QCString& msg, const QByteArray&data ) {
48 e << filename; 48 e << filename;
49 }else if(msg == "receive(bool)" ) { 49 }else if(msg == "receive(bool)" ) { // open a GUI
50 m_obex->receive();
50 ; 51 ;