summaryrefslogtreecommitdiff
path: root/core
Side-by-side diff
Diffstat (limited to 'core') (more/less context) (ignore whitespace changes)
-rw-r--r--core/obex/obex.cc8
-rw-r--r--core/obex/receiver.cpp4
2 files changed, 8 insertions, 4 deletions
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
@@ -18,5 +18,5 @@ Obex::Obex( QObject *parent, const char* name )
connect( this, SIGNAL(error(int) ), // for recovering to receive
SLOT(slotError() ) );
- connect( this, SIGNAL(sent() ),
+ connect( this, SIGNAL(sent(bool) ),
SLOT(slotError() ) );
};
@@ -107,6 +107,6 @@ 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 );
}
}
@@ -116,5 +116,5 @@ void Obex::received() {
if ( m_rec->exitStatus() == 0 ) { // we got one
QString filename = parseOut();
- qWarning("ACHTUNG");
+ qWarning("ACHTUNG %s", filename.latin1() );
emit receivedFile( filename );
}
diff --git a/core/obex/receiver.cpp b/core/obex/receiver.cpp
index 50ee6cb..d5a7271 100644
--- a/core/obex/receiver.cpp
+++ b/core/obex/receiver.cpp
@@ -61,4 +61,5 @@ void Receiver::handleOther( const QString& other ) {
}
int Receiver::checkFile( const QString& file ) {
+ qWarning("check file!! %s", file.latin1() );
int ret;
if (file.right(4) == ".vcs" ) {
@@ -69,4 +70,6 @@ int Receiver::checkFile( const QString& file ) {
ret = Other;
+
+ qWarning("check it now %d", ret );
return ret;
}
@@ -107,4 +110,5 @@ void OtherHandler::handle( const QString& file ) {
m_na->setText(file);
DocLnk lnk(file);
+ qWarning(" %s %s", lnk.type().latin1(), lnk.icon().latin1() );
QString str = tr("<p>You received a file of type %1 (<img src=\"%2\"> )What do you want to do?").arg(lnk.type() ).arg(lnk.icon() );