From 62cc9d89378f281c11599f38c3ebe89886b69568 Mon Sep 17 00:00:00 2001 From: zecke Date: Sun, 16 Feb 2003 17:50:15 +0000 Subject: Fix getting files --- (limited to 'core/obex/obex.cc') diff --git a/core/obex/obex.cc b/core/obex/obex.cc index 92cd317..b8ed6e0 100644 --- a/core/obex/obex.cc +++ b/core/obex/obex.cc @@ -17,7 +17,7 @@ Obex::Obex( QObject *parent, const char* name ) m_receive = false; connect( this, SIGNAL(error(int) ), // for recovering to receive SLOT(slotError() ) ); - connect( this, SIGNAL(sent() ), + connect( this, SIGNAL(sent(bool) ), SLOT(slotError() ) ); }; Obex::~Obex() { @@ -106,8 +106,8 @@ void Obex::slotExited(OProcess* proc ){ } void Obex::slotStdOut(OProcess* proc, char* buf, int len){ if ( proc == m_rec ) { // only receive - QCString cstring( buf, len ); - m_outp.append( cstring.data() ); + QString str = QString::fromUtf8( buf, len ); + m_outp.append( str ); } } @@ -115,7 +115,7 @@ void Obex::received() { if (m_rec->normalExit() ) { if ( m_rec->exitStatus() == 0 ) { // we got one QString filename = parseOut(); - qWarning("ACHTUNG"); + qWarning("ACHTUNG %s", filename.latin1() ); emit receivedFile( filename ); } }else{ -- cgit v0.9.0.2