summaryrefslogtreecommitdiffstats
path: root/korn/tdeio_read.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korn/tdeio_read.cpp')
-rw-r--r--korn/tdeio_read.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/korn/tdeio_read.cpp b/korn/tdeio_read.cpp
index 4d8cbf6c0..c34e7429f 100644
--- a/korn/tdeio_read.cpp
+++ b/korn/tdeio_read.cpp
@@ -18,7 +18,7 @@
#include "tdeio_read.h"
-#include "kio.h"
+#include "tdeio.h"
#include "tdeio_proto.h"
#include "mailid.h"
#include "stringid.h"
@@ -33,7 +33,7 @@
#include <tqcstring.h>
#include <tqstring.h>
-KIO_Read::KIO_Read( TQObject * parent, const char * name )
+TDEIO_Read::TDEIO_Read( TQObject * parent, const char * name )
: TQObject( parent, name ),
_job( 0 ),
_message( 0 )
@@ -41,21 +41,21 @@ KIO_Read::KIO_Read( TQObject * parent, const char * name )
_message = new TQString;
}
-KIO_Read::~KIO_Read()
+TDEIO_Read::~TDEIO_Read()
{
delete _message;
delete _job;
}
-void KIO_Read::readMail( const KornMailId *& mailid, KKioDrop* drop )
+void TDEIO_Read::readMail( const KornMailId *& mailid, KKioDrop* drop )
{
- _kio = drop;
- KURL kurl = *_kio->_kurl;
- TDEIO::MetaData metadata = *_kio->_metadata;
+ _tdeio = drop;
+ KURL kurl = *_tdeio->_kurl;
+ TDEIO::MetaData metadata = *_tdeio->_metadata;
kurl = dynamic_cast<const KornStringId*>(mailid)->getId( );
- _kio->_protocol->readMailKURL( kurl, metadata );
+ _tdeio->_protocol->readMailKURL( kurl, metadata );
_job = TDEIO::get( kurl, false, false );
_job->addMetaData( metadata );
@@ -64,14 +64,14 @@ void KIO_Read::readMail( const KornMailId *& mailid, KKioDrop* drop )
connect( _job, TQT_SIGNAL( data( TDEIO::Job*, const TQByteArray& ) ), this, TQT_SLOT( slotData( TDEIO::Job*, const TQByteArray & ) ) );
}
-void KIO_Read::canceled( )
+void TDEIO_Read::canceled( )
{
if( _job )
delete _job;
_job = 0;
}
-void KIO_Read::slotResult( TDEIO::Job* job )
+void TDEIO_Read::slotResult( TDEIO::Job* job )
{
if( job != _job )
kdWarning() << i18n( "Unknown job returned; I will try if this one will do... " ) << endl;
@@ -79,13 +79,13 @@ void KIO_Read::slotResult( TDEIO::Job* job )
if( job->error() )
kdWarning() << i18n( "An error occurred when fetching the requested email: %1." ).arg( job->errorString() ) << endl;
- _kio->emitReadMailReady( _message );
+ _tdeio->emitReadMailReady( _message );
*_message = "";
_job = 0;
}
-void KIO_Read::slotData( TDEIO::Job* job, const TQByteArray & data )
+void TDEIO_Read::slotData( TDEIO::Job* job, const TQByteArray & data )
{
if( job != _job )
kdWarning() << i18n( "Unknown job returned; I will try if this one will do... " ) << endl;