-rw-r--r-- | core/applets/obex/obex.cc | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/core/applets/obex/obex.cc b/core/applets/obex/obex.cc index f35d57a..683964b 100644 --- a/core/applets/obex/obex.cc +++ b/core/applets/obex/obex.cc @@ -2,3 +2,4 @@ #include <qapplication.h> - +#include <qmessagebox.h> +#include <qpe/qcopenvelope_qws.h> #include <opie/oprocess.h> @@ -8,3 +9,3 @@ using namespace OpieObex; -Obex::Obex( QObject *parent, const char* name ) +Obex::Obex( QObject *parent, const char* name ) : QObject(parent, name ) @@ -15,3 +16,3 @@ Obex::Obex( QObject *parent, const char* name ) }; -Obex::~Obex() { +Obex::~Obex() { delete m_rec; @@ -26,6 +27,6 @@ void Obex::receive() { this, SLOT(slotExited(OProcess*) ) ); - + connect(m_rec, SIGNAL(receivedStdout(OProcess*, char*, int ) ), this, SLOT(slotStdOut(OProcess*, char*, int) ) ); - + if(!m_rec->start(OProcess::NotifyOnExit, OProcess::AllOutput) ) { @@ -51,3 +52,3 @@ void Obex::sendNow(){ *m_send << m_file; - + // connect to slots Exited and and StdOut @@ -55,3 +56,3 @@ void Obex::sendNow(){ this, SLOT(slotExited(OProcess*)) ); - connect(m_send, SIGNAL(receivedStdout(OProcess*, char*, int )), + connect(m_send, SIGNAL(receivedStdout(OProcess*, char*, int )), this, SLOT(slotStdOut(OProcess*, char*, int) ) ); @@ -93,2 +94,3 @@ void Obex::recieved() { } + void Obex::sendEnd() { |