author | zecke <zecke> | 2002-06-13 22:19:26 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-06-13 22:19:26 (UTC) |
commit | 2002b1a7a8e4122a2e2a02049c2ad584fb511eb9 (patch) (side-by-side diff) | |
tree | eae66dc19f9b79e92a0bbfe7f1684a9cfcd00336 | |
parent | 8764c71b50fab1e4dcbc61f23dbd4fd3969e4090 (diff) | |
download | opie-2002b1a7a8e4122a2e2a02049c2ad584fb511eb9.zip opie-2002b1a7a8e4122a2e2a02049c2ad584fb511eb9.tar.gz opie-2002b1a7a8e4122a2e2a02049c2ad584fb511eb9.tar.bz2 |
Fix PPC beaming
-rw-r--r-- | core/applets/obex/obex.cc | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/core/applets/obex/obex.cc b/core/applets/obex/obex.cc index 2218dbc..fc0be3b 100644 --- a/core/applets/obex/obex.cc +++ b/core/applets/obex/obex.cc @@ -24,8 +24,9 @@ Obex::~Obex() { delete m_send; } void Obex::receive() { m_receive = true; + m_outp = QString::null; qWarning("Receive" ); m_rec = new OProcess(); *m_rec << "irobex_palm3"; // connect to the necessary slots @@ -147,11 +148,19 @@ QString Obex::parseOut( ){ QStringList list = QStringList::split("\n", m_outp); QStringList::Iterator it; for (it = list.begin(); it != list.end(); ++it ) { if ( (*it).startsWith("Wrote" ) ) { - QStringList pathes = QStringList::split(' ', (*it) ); - path = pathes[1]; - qWarning("path %s", path.latin1() ); + int pos = (*it).findRev('(' ); + if ( pos > 0 ) { + qWarning( "%d %s", pos, (*it).mid(6 ).latin1() ) ; + qWarning("%d %d", (*it).length(), (*it).length()-pos ); + + path = (*it).remove( pos, (*it).length() - pos ); + qWarning("%s", path.latin1() ); + path = path.mid(6 ); + path = path.stripWhiteSpace(); + qWarning("path %s", path.latin1() ); + } } } return path; } |