summaryrefslogtreecommitdiffstats
path: root/kmail/acljobs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/acljobs.cpp')
-rw-r--r--kmail/acljobs.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/kmail/acljobs.cpp b/kmail/acljobs.cpp
index 1ad1a69be..2aa55b0c1 100644
--- a/kmail/acljobs.cpp
+++ b/kmail/acljobs.cpp
@@ -120,7 +120,7 @@ TQString ACLJobs::permissionsToString( unsigned int permissions )
}
#endif
-KIO::SimpleJob* ACLJobs::setACL( KIO::Slave* slave, const KURL& url, const TQString& user, unsigned int permissions )
+TDEIO::SimpleJob* ACLJobs::setACL( TDEIO::Slave* slave, const KURL& url, const TQString& user, unsigned int permissions )
{
TQString perm = TQString::fromLatin1( permissionsToIMAPRights( permissions ) );
@@ -128,53 +128,53 @@ KIO::SimpleJob* ACLJobs::setACL( KIO::Slave* slave, const KURL& url, const TQStr
TQDataStream stream( packedArgs, IO_WriteOnly );
stream << (int)'A' << (int)'S' << url << user << perm;
- KIO::SimpleJob* job = KIO::special( url, packedArgs, false );
- KIO::Scheduler::assignJobToSlave( slave, job );
+ TDEIO::SimpleJob* job = TDEIO::special( url, packedArgs, false );
+ TDEIO::Scheduler::assignJobToSlave( slave, job );
return job;
}
-ACLJobs::DeleteACLJob* ACLJobs::deleteACL( KIO::Slave* slave, const KURL& url, const TQString& user )
+ACLJobs::DeleteACLJob* ACLJobs::deleteACL( TDEIO::Slave* slave, const KURL& url, const TQString& user )
{
TQByteArray packedArgs;
TQDataStream stream( packedArgs, IO_WriteOnly );
stream << (int)'A' << (int)'D' << url << user;
ACLJobs::DeleteACLJob* job = new ACLJobs::DeleteACLJob( url, user, packedArgs, false );
- KIO::Scheduler::assignJobToSlave( slave, job );
+ TDEIO::Scheduler::assignJobToSlave( slave, job );
return job;
}
-ACLJobs::GetACLJob* ACLJobs::getACL( KIO::Slave* slave, const KURL& url )
+ACLJobs::GetACLJob* ACLJobs::getACL( TDEIO::Slave* slave, const KURL& url )
{
TQByteArray packedArgs;
TQDataStream stream( packedArgs, IO_WriteOnly );
stream << (int)'A' << (int)'G' << url;
ACLJobs::GetACLJob* job = new ACLJobs::GetACLJob( url, packedArgs, false );
- KIO::Scheduler::assignJobToSlave( slave, job );
+ TDEIO::Scheduler::assignJobToSlave( slave, job );
return job;
}
-ACLJobs::GetUserRightsJob* ACLJobs::getUserRights( KIO::Slave* slave, const KURL& url )
+ACLJobs::GetUserRightsJob* ACLJobs::getUserRights( TDEIO::Slave* slave, const KURL& url )
{
TQByteArray packedArgs;
TQDataStream stream( packedArgs, IO_WriteOnly );
stream << (int)'A' << (int)'M' << url;
ACLJobs::GetUserRightsJob* job = new ACLJobs::GetUserRightsJob( url, packedArgs, false );
- KIO::Scheduler::assignJobToSlave( slave, job );
+ TDEIO::Scheduler::assignJobToSlave( slave, job );
return job;
}
ACLJobs::GetACLJob::GetACLJob( const KURL& url, const TQByteArray &packedArgs,
bool showProgressInfo )
- : KIO::SimpleJob( url, KIO::CMD_SPECIAL, packedArgs, showProgressInfo )
+ : TDEIO::SimpleJob( url, TDEIO::CMD_SPECIAL, packedArgs, showProgressInfo )
{
- connect( this, TQT_SIGNAL(infoMessage(KIO::Job*,const TQString&)),
- TQT_SLOT(slotInfoMessage(KIO::Job*,const TQString&)) );
+ connect( this, TQT_SIGNAL(infoMessage(TDEIO::Job*,const TQString&)),
+ TQT_SLOT(slotInfoMessage(TDEIO::Job*,const TQString&)) );
}
-void ACLJobs::GetACLJob::slotInfoMessage( KIO::Job*, const TQString& str )
+void ACLJobs::GetACLJob::slotInfoMessage( TDEIO::Job*, const TQString& str )
{
// Parse the result
TQStringList lst = TQStringList::split( "\"", str, true );
@@ -189,13 +189,13 @@ void ACLJobs::GetACLJob::slotInfoMessage( KIO::Job*, const TQString& str )
ACLJobs::GetUserRightsJob::GetUserRightsJob( const KURL& url, const TQByteArray &packedArgs,
bool showProgressInfo )
- : KIO::SimpleJob( url, KIO::CMD_SPECIAL, packedArgs, showProgressInfo )
+ : TDEIO::SimpleJob( url, TDEIO::CMD_SPECIAL, packedArgs, showProgressInfo )
{
- connect( this, TQT_SIGNAL(infoMessage(KIO::Job*,const TQString&)),
- TQT_SLOT(slotInfoMessage(KIO::Job*,const TQString&)) );
+ connect( this, TQT_SIGNAL(infoMessage(TDEIO::Job*,const TQString&)),
+ TQT_SLOT(slotInfoMessage(TDEIO::Job*,const TQString&)) );
}
-void ACLJobs::GetUserRightsJob::slotInfoMessage( KIO::Job*, const TQString& str )
+void ACLJobs::GetUserRightsJob::slotInfoMessage( TDEIO::Job*, const TQString& str )
{
// Parse the result
m_permissions = IMAPRightsToPermission( str, url(), TQString() );
@@ -204,15 +204,15 @@ void ACLJobs::GetUserRightsJob::slotInfoMessage( KIO::Job*, const TQString& str
ACLJobs::DeleteACLJob::DeleteACLJob( const KURL& url, const TQString& userId,
const TQByteArray &packedArgs,
bool showProgressInfo )
- : KIO::SimpleJob( url, KIO::CMD_SPECIAL, packedArgs, showProgressInfo ),
+ : TDEIO::SimpleJob( url, TDEIO::CMD_SPECIAL, packedArgs, showProgressInfo ),
mUserId( userId )
{
}
////
-ACLJobs::MultiSetACLJob::MultiSetACLJob( KIO::Slave* slave, const KURL& url, const ACLList& acl, bool showProgressInfo )
- : KIO::Job( showProgressInfo ),
+ACLJobs::MultiSetACLJob::MultiSetACLJob( TDEIO::Slave* slave, const KURL& url, const ACLList& acl, bool showProgressInfo )
+ : TDEIO::Job( showProgressInfo ),
mSlave( slave ),
mUrl( url ), mACLList( acl ), mACLListIterator( mACLList.begin() )
{
@@ -228,7 +228,7 @@ void ACLJobs::MultiSetACLJob::slotStart()
if ( mACLListIterator != mACLList.end() )
{
const ACLListEntry& entry = *mACLListIterator;
- KIO::Job* job = 0;
+ TDEIO::Job* job = 0;
if ( entry.permissions > -1 )
job = setACL( mSlave, mUrl, entry.userId, entry.permissions );
else
@@ -240,10 +240,10 @@ void ACLJobs::MultiSetACLJob::slotStart()
}
}
-void ACLJobs::MultiSetACLJob::slotResult( KIO::Job *job )
+void ACLJobs::MultiSetACLJob::slotResult( TDEIO::Job *job )
{
if ( job->error() ) {
- KIO::Job::slotResult( job ); // will set the error and emit result(this)
+ TDEIO::Job::slotResult( job ); // will set the error and emit result(this)
return;
}
subjobs.remove(job);
@@ -255,7 +255,7 @@ void ACLJobs::MultiSetACLJob::slotResult( KIO::Job *job )
slotStart();
}
-ACLJobs::MultiSetACLJob* ACLJobs::multiSetACL( KIO::Slave* slave, const KURL& url, const ACLList& acl )
+ACLJobs::MultiSetACLJob* ACLJobs::multiSetACL( TDEIO::Slave* slave, const KURL& url, const ACLList& acl )
{
return new MultiSetACLJob( slave, url, acl, false /*showProgressInfo*/ );
}