author | zecke <zecke> | 2002-06-13 22:19:26 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-06-13 22:19:26 (UTC) |
commit | 2002b1a7a8e4122a2e2a02049c2ad584fb511eb9 (patch) (unidiff) | |
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 | |||
@@ -25,6 +25,7 @@ Obex::~Obex() { | |||
25 | } | 25 | } |
26 | void Obex::receive() { | 26 | void Obex::receive() { |
27 | m_receive = true; | 27 | m_receive = true; |
28 | m_outp = QString::null; | ||
28 | qWarning("Receive" ); | 29 | qWarning("Receive" ); |
29 | m_rec = new OProcess(); | 30 | m_rec = new OProcess(); |
30 | *m_rec << "irobex_palm3"; | 31 | *m_rec << "irobex_palm3"; |
@@ -148,9 +149,17 @@ QString Obex::parseOut( ){ | |||
148 | QStringList::Iterator it; | 149 | QStringList::Iterator it; |
149 | for (it = list.begin(); it != list.end(); ++it ) { | 150 | for (it = list.begin(); it != list.end(); ++it ) { |
150 | if ( (*it).startsWith("Wrote" ) ) { | 151 | if ( (*it).startsWith("Wrote" ) ) { |
151 | QStringList pathes = QStringList::split(' ', (*it) ); | 152 | int pos = (*it).findRev('(' ); |
152 | path = pathes[1]; | 153 | if ( pos > 0 ) { |
153 | qWarning("path %s", path.latin1() ); | 154 | qWarning( "%d %s", pos, (*it).mid(6 ).latin1() ) ; |
155 | qWarning("%d %d", (*it).length(), (*it).length()-pos ); | ||
156 | |||
157 | path = (*it).remove( pos, (*it).length() - pos ); | ||
158 | qWarning("%s", path.latin1() ); | ||
159 | path = path.mid(6 ); | ||
160 | path = path.stripWhiteSpace(); | ||
161 | qWarning("path %s", path.latin1() ); | ||
162 | } | ||
154 | } | 163 | } |
155 | } | 164 | } |
156 | return path; | 165 | return path; |