summaryrefslogtreecommitdiff
path: root/core/obex/btobex.cpp
Unidiff
Diffstat (limited to 'core/obex/btobex.cpp') (more/less context) (show whitespace changes)
-rw-r--r--core/obex/btobex.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/core/obex/btobex.cpp b/core/obex/btobex.cpp
index b8556da..886f3dc 100644
--- a/core/obex/btobex.cpp
+++ b/core/obex/btobex.cpp
@@ -25,25 +25,24 @@ BtObex::BtObex( QObject *parent, const char* name )
25 m_rec = 0; 25 m_rec = 0;
26 m_send=0; 26 m_send=0;
27 m_count = 0; 27 m_count = 0;
28 m_receive = false; 28 m_receive = false;
29 connect( this, SIGNAL(error(int) ), // for recovering to receive 29 connect( this, SIGNAL(error(int) ), // for recovering to receive
30 SLOT(slotError() ) ); 30 SLOT(slotError() ) );
31 connect( this, SIGNAL(sent(bool) ), 31 connect( this, SIGNAL(sent(bool) ),
32 SLOT(slotError() ) ); 32 SLOT(slotError() ) );
33 btManager = NULL; 33 btManager = NULL;
34}; 34};
35 35
36BtObex::~BtObex() { 36BtObex::~BtObex() {
37 if (btManager)
38 delete btManager; 37 delete btManager;
39 delete m_rec; 38 delete m_rec;
40 delete m_send; 39 delete m_send;
41} 40}
42 41
43void BtObex::receive() { 42void BtObex::receive() {
44 m_receive = true; 43 m_receive = true;
45 m_outp = QString::null; 44 m_outp = QString::null;
46 m_rec = new OProcess(); 45 m_rec = new OProcess();
47 46
48 // TODO mbhaynie: No idea if this actually works -- maybe opd is better. 47 // TODO mbhaynie: No idea if this actually works -- maybe opd is better.
49 *m_rec << "obexftpd" << "-b"; 48 *m_rec << "obexftpd" << "-b";