From 2002b1a7a8e4122a2e2a02049c2ad584fb511eb9 Mon Sep 17 00:00:00 2001 From: zecke Date: Thu, 13 Jun 2002 22:19:26 +0000 Subject: Fix PPC beaming --- (limited to 'core') 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 @@ -25,6 +25,7 @@ Obex::~Obex() { } void Obex::receive() { m_receive = true; + m_outp = QString::null; qWarning("Receive" ); m_rec = new OProcess(); *m_rec << "irobex_palm3"; @@ -148,9 +149,17 @@ QString Obex::parseOut( ){ 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; -- cgit v0.9.0.2