From 69cac65817d949cda2672ec4f0aa73d5e66a0ba1 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 22 Jun 2011 00:30:31 +0000 Subject: TQt4 port kdenetwork This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kopete/protocols/yahoo/libkyahoo/sendfiletask.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'kopete/protocols/yahoo/libkyahoo/sendfiletask.cpp') diff --git a/kopete/protocols/yahoo/libkyahoo/sendfiletask.cpp b/kopete/protocols/yahoo/libkyahoo/sendfiletask.cpp index 48af8684..11844cd8 100644 --- a/kopete/protocols/yahoo/libkyahoo/sendfiletask.cpp +++ b/kopete/protocols/yahoo/libkyahoo/sendfiletask.cpp @@ -29,7 +29,7 @@ using namespace KNetwork; -SendFileTask::SendFileTask(Task* parent) : Task(parent) +SendFileTask::SendFileTask(Task* tqparent) : Task(tqparent) { kdDebug(YAHOO_GEN_DEBUG) << k_funcinfo << endl; m_transmitted = 0; @@ -205,7 +205,7 @@ void SendFileTask::connectSucceeded() } else { - kdDebug(YAHOO_RAW_DEBUG) << k_funcinfo << "Error opening file: " << m_file.errorString() << endl; + kdDebug(YAHOO_RAW_DEBUG) << k_funcinfo << "Error opening file: " << m_file.errorString().data() << endl; client()->notifyError( i18n( "An error occurred while sending the file." ), m_file.errorString(), Client::Error ); setError(); return; @@ -227,7 +227,7 @@ void SendFileTask::connectSucceeded() if( !m_socket->writeBlock( buffer, buffer.size() ) ) { - emit error( m_transferId, m_socket->error(), m_socket->errorString() ); + emit error( m_transferId, m_socket->error(), m_socket->KSocketBase::errorString() ); m_socket->close(); } else @@ -255,7 +255,7 @@ void SendFileTask::transmitData() if( written != read ) { kdDebug(YAHOO_RAW_DEBUG) << k_funcinfo << "Upload Failed!" << endl; - emit error( m_transferId, m_socket->error(), m_socket->errorString() ); + emit error( m_transferId, m_socket->error(), m_socket->KSocketBase::errorString() ); setError(); return; } -- cgit v1.2.1