summaryrefslogtreecommitdiffstats
path: root/kmail/sievejob.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/sievejob.cpp')
-rw-r--r--kmail/sievejob.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/kmail/sievejob.cpp b/kmail/sievejob.cpp
index 6993f8f66..3e823a7a7 100644
--- a/kmail/sievejob.cpp
+++ b/kmail/sievejob.cpp
@@ -19,11 +19,11 @@
#include "sievejob.h"
#include <kio/job.h>
-using KIO::Job;
+using TDEIO::Job;
// <kio/global.h>
-using KIO::UDSAtomTypes;
-using KIO::UDSEntryList;
-using KIO::UDSEntry;
+using TDEIO::UDSAtomTypes;
+using TDEIO::UDSEntryList;
+using TDEIO::UDSEntry;
#include <kdebug.h>
#include <tqtextcodec.h>
@@ -71,25 +71,25 @@ namespace KMail {
switch ( command ) {
case Get:
kdDebug(5006) << "SieveJob::schedule: get( " << mUrl.prettyURL() << " )" << endl;
- mJob = KIO::get( mUrl, false /*reload*/, showProgressInfo );
- connect( mJob, TQT_SIGNAL(data(KIO::Job*,const TQByteArray&)),
- TQT_SLOT(slotData(KIO::Job*,const TQByteArray&)) );
+ mJob = TDEIO::get( mUrl, false /*reload*/, showProgressInfo );
+ connect( mJob, TQT_SIGNAL(data(TDEIO::Job*,const TQByteArray&)),
+ TQT_SLOT(slotData(TDEIO::Job*,const TQByteArray&)) );
break;
case Put:
kdDebug(5006) << "SieveJob::schedule: put( " << mUrl.prettyURL() << " )" << endl;
- mJob = KIO::put( mUrl, 0600, true /*overwrite*/, false /*resume*/, showProgressInfo );
- connect( mJob, TQT_SIGNAL(dataReq(KIO::Job*,TQByteArray&)),
- TQT_SLOT(slotDataReq(KIO::Job*,TQByteArray&)) );
+ mJob = TDEIO::put( mUrl, 0600, true /*overwrite*/, false /*resume*/, showProgressInfo );
+ connect( mJob, TQT_SIGNAL(dataReq(TDEIO::Job*,TQByteArray&)),
+ TQT_SLOT(slotDataReq(TDEIO::Job*,TQByteArray&)) );
break;
case Activate:
kdDebug(5006) << "SieveJob::schedule: chmod( " << mUrl.prettyURL() << ", 0700 )"
<< endl;
- mJob = KIO::chmod( mUrl, 0700 );
+ mJob = TDEIO::chmod( mUrl, 0700 );
break;
case Deactivate:
kdDebug(5006) << "SieveJob::schedule: chmod( " << mUrl.prettyURL() << ", 0600 )"
<< endl;
- mJob = KIO::chmod( mUrl, 0600 );
+ mJob = TDEIO::chmod( mUrl, 0600 );
break;
case SearchActive:
kdDebug(5006) << "SieveJob::schedule: listDir( " << mUrl.prettyURL() << " )" << endl;
@@ -101,29 +101,29 @@ namespace KMail {
url.setQuery( query );
kdDebug(5006) << "SieveJob::schedule: listDir's real URL: " << url.prettyURL()
<< endl;
- mJob = KIO::listDir( url, showProgressInfo );
- connect( mJob, TQT_SIGNAL(entries(KIO::Job*,const KIO::UDSEntryList&)),
- TQT_SLOT(slotEntries(KIO::Job*,const KIO::UDSEntryList&)) );
+ mJob = TDEIO::listDir( url, showProgressInfo );
+ connect( mJob, TQT_SIGNAL(entries(TDEIO::Job*,const TDEIO::UDSEntryList&)),
+ TQT_SLOT(slotEntries(TDEIO::Job*,const TDEIO::UDSEntryList&)) );
break;
}
case List:
kdDebug(5006) << "SieveJob::schedule: listDir( " << mUrl.prettyURL() << " )" << endl;
{
- mJob = KIO::listDir( mUrl, showProgressInfo );
- connect( mJob, TQT_SIGNAL( entries(KIO::Job *, const KIO::UDSEntryList & ) ),
- TQT_SLOT( slotEntries( KIO::Job *, const KIO::UDSEntryList & ) ) );
+ mJob = TDEIO::listDir( mUrl, showProgressInfo );
+ connect( mJob, TQT_SIGNAL( entries(TDEIO::Job *, const TDEIO::UDSEntryList & ) ),
+ TQT_SLOT( slotEntries( TDEIO::Job *, const TDEIO::UDSEntryList & ) ) );
break;
}
case Delete:
kdDebug(5006) << "SieveJob::schedule: delete( " << mUrl.prettyURL() << " )" << endl;
- mJob = KIO::del( mUrl, false/*shred*/, showProgressInfo );
+ mJob = TDEIO::del( mUrl, false/*shred*/, showProgressInfo );
break;
default:
assert( 0 );
}
mJob->setInteractive(showProgressInfo);
// common to all jobs:
- connect( mJob, TQT_SIGNAL(result(KIO::Job*)), TQT_SLOT(slotResult(KIO::Job*)) );
+ connect( mJob, TQT_SIGNAL(result(TDEIO::Job*)), TQT_SLOT(slotResult(TDEIO::Job*)) );
}
void SieveJob::slotData( Job *, const TQByteArray & data ) {
@@ -166,10 +166,10 @@ namespace KMail {
TQString filename;
bool isActive = false;
for ( UDSEntry::const_iterator et = (*it).begin() ; et != (*it).end() ; ++ et ) {
- if ( ( *et ).m_uds == KIO::UDS_NAME ) {
+ if ( ( *et ).m_uds == TDEIO::UDS_NAME ) {
filename = ( *et ).m_str;
mAvailableScripts.append( filename );
- } else if ( ( *et ).m_uds == KIO::UDS_ACCESS && ( *et ).m_long == 0700 )
+ } else if ( ( *et ).m_uds == TDEIO::UDS_ACCESS && ( *et ).m_long == 0700 )
isActive = true;
}