summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/obex/obex.cc15
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
@@ -27,2 +27,3 @@ void Obex::receive() {
m_receive = true;
+ m_outp = QString::null;
qWarning("Receive" );
@@ -150,5 +151,13 @@ QString Obex::parseOut( ){
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() );
+ }
}