summaryrefslogtreecommitdiffstats
path: root/korn/kio_delete.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-25 00:37:21 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-25 00:37:21 -0600
commit86d8364ac704bdc8ad2dfcf52307d9626cfac567 (patch)
tree97d3ac2c2f60780d9a1de4f82caac7cb27534501 /korn/kio_delete.cpp
parenta9bde819f2b421dcc44741156e75eca4bb5fb4f4 (diff)
downloadtdepim-86d8364ac704bdc8ad2dfcf52307d9626cfac567.tar.gz
tdepim-86d8364ac704bdc8ad2dfcf52307d9626cfac567.zip
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
Diffstat (limited to 'korn/kio_delete.cpp')
-rw-r--r--korn/kio_delete.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/korn/kio_delete.cpp b/korn/kio_delete.cpp
index db27e28d9..17eec2f53 100644
--- a/korn/kio_delete.cpp
+++ b/korn/kio_delete.cpp
@@ -39,7 +39,7 @@ KIO_Delete::KIO_Delete( TQObject * parent, const char * name ) : TQObject( paren
_slave( 0 ),
_valid( true )
{
- _jobs = new TQPtrList< KIO::Job >;
+ _jobs = new TQPtrList< TDEIO::Job >;
}
KIO_Delete::~KIO_Delete( )
@@ -51,7 +51,7 @@ KIO_Delete::~KIO_Delete( )
bool KIO_Delete::deleteMails( TQPtrList< const KornMailId > * ids, KKioDrop *drop )
{
KURL kurl = *drop->_kurl;
- KIO::MetaData metadata = *drop->_metadata;
+ TDEIO::MetaData metadata = *drop->_metadata;
_kio = drop;
_valid = true;
@@ -93,19 +93,19 @@ void KIO_Delete::disConnect( )
if( _slave )
{
- KIO::Scheduler::disconnectSlave( _slave );
+ TDEIO::Scheduler::disconnectSlave( _slave );
_slave = 0;
}
}
-bool KIO_Delete::setupSlave( KURL kurl, KIO::MetaData metadata, const KIO_Protocol *& protocol )
+bool KIO_Delete::setupSlave( KURL kurl, TDEIO::MetaData metadata, const KIO_Protocol *& protocol )
{
protocol->deleteMailConnectKURL( kurl, metadata );
if( kurl.port() == 0 )
kurl.setPort( protocol->defaultPort( _kio->_ssl ) );
- if( ! ( _slave = KIO::Scheduler::getConnectedSlave( kurl, metadata ) ) )
+ if( ! ( _slave = TDEIO::Scheduler::getConnectedSlave( kurl, metadata ) ) )
{
kdWarning() << i18n( "Could not get a connected slave; I cannot delete this way..." ) << endl;
_valid = false;
@@ -115,9 +115,9 @@ bool KIO_Delete::setupSlave( KURL kurl, KIO::MetaData metadata, const KIO_Protoc
return true;
}
-void KIO_Delete::deleteItem( const KornMailId *item, KURL kurl, KIO::MetaData metadata, const KIO_Protocol *& protocol )
+void KIO_Delete::deleteItem( const KornMailId *item, KURL kurl, TDEIO::MetaData metadata, const KIO_Protocol *& protocol )
{
- KIO::Job* job = 0;
+ TDEIO::Job* job = 0;
kurl = dynamic_cast<const KornStringId*>( item )->getId();
@@ -128,47 +128,47 @@ void KIO_Delete::deleteItem( const KornMailId *item, KURL kurl, KIO::MetaData me
if( protocol->deleteFunction() == KIO_Protocol::get )
{
- job = KIO::get( kurl, true, false );
+ job = TDEIO::get( kurl, true, false );
if( protocol->connectionBased() )
- KIO::Scheduler::assignJobToSlave( _slave, dynamic_cast< KIO::SimpleJob* >( job ) );
+ TDEIO::Scheduler::assignJobToSlave( _slave, dynamic_cast< TDEIO::SimpleJob* >( job ) );
else
- KIO::Scheduler::scheduleJob( dynamic_cast< KIO::SimpleJob* >( job ) );
+ TDEIO::Scheduler::scheduleJob( dynamic_cast< TDEIO::SimpleJob* >( job ) );
}
else if( protocol->deleteFunction() == KIO_Protocol::del )
{
- job = KIO::del( kurl, false, false );
+ job = TDEIO::del( kurl, false, false );
}
else
return; //Unknown deleteFunction
- connect( job, TQT_SIGNAL( result( KIO::Job* ) ), this, TQT_SLOT( slotResult( KIO::Job* ) ) );
+ connect( job, TQT_SIGNAL( result( TDEIO::Job* ) ), this, TQT_SLOT( slotResult( TDEIO::Job* ) ) );
job->addMetaData( metadata );
- _jobs->append( dynamic_cast< KIO::Job* >( job ) );
+ _jobs->append( dynamic_cast< TDEIO::Job* >( job ) );
}
/*
* Some protocols needs to a command to commit protocols.
*/
-void KIO_Delete::commitDelete( KURL kurl, KIO::MetaData metadata, const KIO_Protocol *& protocol )
+void KIO_Delete::commitDelete( KURL kurl, TDEIO::MetaData metadata, const KIO_Protocol *& protocol )
{
protocol->deleteCommitKURL( kurl, metadata );
if( kurl.port() == 0 )
kurl.setPort( protocol->defaultPort( _kio->_ssl ) );
- KIO::TransferJob *job = KIO::get( kurl, true, false );
+ TDEIO::TransferJob *job = TDEIO::get( kurl, true, false );
job->addMetaData( metadata );
- connect( job, TQT_SIGNAL( result( KIO::Job* ) ), this, TQT_SLOT( slotResult( KIO::Job* ) ) );
+ connect( job, TQT_SIGNAL( result( TDEIO::Job* ) ), this, TQT_SLOT( slotResult( TDEIO::Job* ) ) );
- _jobs->append( dynamic_cast< KIO::Job* >( job ) );
+ _jobs->append( dynamic_cast< TDEIO::Job* >( job ) );
if( protocol->connectionBased() )
- KIO::Scheduler::assignJobToSlave( _slave, job );
+ TDEIO::Scheduler::assignJobToSlave( _slave, job );
else
- KIO::Scheduler::scheduleJob( job );
+ TDEIO::Scheduler::scheduleJob( job );
_total++;
}
@@ -178,7 +178,7 @@ void KIO_Delete::canceled( )
disConnect( );
}
-void KIO_Delete::slotResult( KIO::Job* job )
+void KIO_Delete::slotResult( TDEIO::Job* job )
{
if( job->error() )
{