diff options
Diffstat (limited to 'kmail/acljobs.cpp')
-rw-r--r-- | kmail/acljobs.cpp | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/kmail/acljobs.cpp b/kmail/acljobs.cpp index 568a6f4bb..41931829e 100644 --- a/kmail/acljobs.cpp +++ b/kmail/acljobs.cpp @@ -36,11 +36,11 @@ using namespace KMail; // Convert str to an ACLPermissions value. // url and user are there only for the error message -static unsigned int IMAPRightsToPermission( const QString& str, const KURL& url, const QString& user ) { +static unsigned int IMAPRightsToPermission( const TQString& str, const KURL& url, const TQString& user ) { unsigned int perm = 0; uint len = str.length(); for (uint i = 0; i < len; ++i) { - QChar ch = str[i]; + TQChar ch = str[i]; switch ( ch.latin1() ) { case 'l': perm |= ACLJobs::List; break; case 'r': perm |= ACLJobs::Read; break; @@ -69,8 +69,8 @@ static unsigned int IMAPRightsToPermission( const QString& str, const KURL& url, return perm; } -static QCString permissionsToIMAPRights( unsigned int permissions ) { - QCString str = ""; +static TQCString permissionsToIMAPRights( unsigned int permissions ) { + TQCString str = ""; if ( permissions & ACLJobs::List ) str += 'l'; if ( permissions & ACLJobs::Read ) @@ -93,9 +93,9 @@ static QCString permissionsToIMAPRights( unsigned int permissions ) { } #ifndef NDEBUG -QString ACLJobs::permissionsToString( unsigned int permissions ) +TQString ACLJobs::permissionsToString( unsigned int permissions ) { - QString str; + TQString str; if ( permissions & ACLJobs::List ) str += "List "; if ( permissions & ACLJobs::Read ) @@ -118,12 +118,12 @@ QString ACLJobs::permissionsToString( unsigned int permissions ) } #endif -KIO::SimpleJob* ACLJobs::setACL( KIO::Slave* slave, const KURL& url, const QString& user, unsigned int permissions ) +KIO::SimpleJob* ACLJobs::setACL( KIO::Slave* slave, const KURL& url, const TQString& user, unsigned int permissions ) { - QString perm = QString::fromLatin1( permissionsToIMAPRights( permissions ) ); + TQString perm = TQString::fromLatin1( permissionsToIMAPRights( permissions ) ); - QByteArray packedArgs; - QDataStream stream( packedArgs, IO_WriteOnly ); + TQByteArray packedArgs; + TQDataStream stream( packedArgs, IO_WriteOnly ); stream << (int)'A' << (int)'S' << url << user << perm; KIO::SimpleJob* job = KIO::special( url, packedArgs, false ); @@ -131,10 +131,10 @@ KIO::SimpleJob* ACLJobs::setACL( KIO::Slave* slave, const KURL& url, const QStri return job; } -ACLJobs::DeleteACLJob* ACLJobs::deleteACL( KIO::Slave* slave, const KURL& url, const QString& user ) +ACLJobs::DeleteACLJob* ACLJobs::deleteACL( KIO::Slave* slave, const KURL& url, const TQString& user ) { - QByteArray packedArgs; - QDataStream stream( packedArgs, IO_WriteOnly ); + TQByteArray packedArgs; + TQDataStream stream( packedArgs, IO_WriteOnly ); stream << (int)'A' << (int)'D' << url << user; ACLJobs::DeleteACLJob* job = new ACLJobs::DeleteACLJob( url, user, packedArgs, false ); @@ -144,8 +144,8 @@ ACLJobs::DeleteACLJob* ACLJobs::deleteACL( KIO::Slave* slave, const KURL& url, c ACLJobs::GetACLJob* ACLJobs::getACL( KIO::Slave* slave, const KURL& url ) { - QByteArray packedArgs; - QDataStream stream( packedArgs, IO_WriteOnly ); + TQByteArray packedArgs; + TQDataStream stream( packedArgs, IO_WriteOnly ); stream << (int)'A' << (int)'G' << url; ACLJobs::GetACLJob* job = new ACLJobs::GetACLJob( url, packedArgs, false ); @@ -155,8 +155,8 @@ ACLJobs::GetACLJob* ACLJobs::getACL( KIO::Slave* slave, const KURL& url ) ACLJobs::GetUserRightsJob* ACLJobs::getUserRights( KIO::Slave* slave, const KURL& url ) { - QByteArray packedArgs; - QDataStream stream( packedArgs, IO_WriteOnly ); + TQByteArray packedArgs; + TQDataStream stream( packedArgs, IO_WriteOnly ); stream << (int)'A' << (int)'M' << url; ACLJobs::GetUserRightsJob* job = new ACLJobs::GetUserRightsJob( url, packedArgs, false ); @@ -164,43 +164,43 @@ ACLJobs::GetUserRightsJob* ACLJobs::getUserRights( KIO::Slave* slave, const KURL return job; } -ACLJobs::GetACLJob::GetACLJob( const KURL& url, const QByteArray &packedArgs, +ACLJobs::GetACLJob::GetACLJob( const KURL& url, const TQByteArray &packedArgs, bool showProgressInfo ) : KIO::SimpleJob( url, KIO::CMD_SPECIAL, packedArgs, showProgressInfo ) { - connect( this, SIGNAL(infoMessage(KIO::Job*,const QString&)), - SLOT(slotInfoMessage(KIO::Job*,const QString&)) ); + connect( this, TQT_SIGNAL(infoMessage(KIO::Job*,const TQString&)), + TQT_SLOT(slotInfoMessage(KIO::Job*,const TQString&)) ); } -void ACLJobs::GetACLJob::slotInfoMessage( KIO::Job*, const QString& str ) +void ACLJobs::GetACLJob::slotInfoMessage( KIO::Job*, const TQString& str ) { // Parse the result - QStringList lst = QStringList::split( "\"", str, true ); + TQStringList lst = TQStringList::split( "\"", str, true ); while ( lst.count() >= 2 ) // we take items 2 by 2 { - QString user = lst.front(); lst.pop_front(); - QString imapRights = lst.front(); lst.pop_front(); + TQString user = lst.front(); lst.pop_front(); + TQString imapRights = lst.front(); lst.pop_front(); unsigned int perm = IMAPRightsToPermission( imapRights, url(), user ); m_entries.append( ACLListEntry( user, imapRights, perm ) ); } } -ACLJobs::GetUserRightsJob::GetUserRightsJob( const KURL& url, const QByteArray &packedArgs, +ACLJobs::GetUserRightsJob::GetUserRightsJob( const KURL& url, const TQByteArray &packedArgs, bool showProgressInfo ) : KIO::SimpleJob( url, KIO::CMD_SPECIAL, packedArgs, showProgressInfo ) { - connect( this, SIGNAL(infoMessage(KIO::Job*,const QString&)), - SLOT(slotInfoMessage(KIO::Job*,const QString&)) ); + connect( this, TQT_SIGNAL(infoMessage(KIO::Job*,const TQString&)), + TQT_SLOT(slotInfoMessage(KIO::Job*,const TQString&)) ); } -void ACLJobs::GetUserRightsJob::slotInfoMessage( KIO::Job*, const QString& str ) +void ACLJobs::GetUserRightsJob::slotInfoMessage( KIO::Job*, const TQString& str ) { // Parse the result - m_permissions = IMAPRightsToPermission( str, url(), QString::null ); + m_permissions = IMAPRightsToPermission( str, url(), TQString::null ); } -ACLJobs::DeleteACLJob::DeleteACLJob( const KURL& url, const QString& userId, - const QByteArray &packedArgs, +ACLJobs::DeleteACLJob::DeleteACLJob( const KURL& url, const TQString& userId, + const TQByteArray &packedArgs, bool showProgressInfo ) : KIO::SimpleJob( url, KIO::CMD_SPECIAL, packedArgs, showProgressInfo ), mUserId( userId ) @@ -214,7 +214,7 @@ ACLJobs::MultiSetACLJob::MultiSetACLJob( KIO::Slave* slave, const KURL& url, con mSlave( slave ), mUrl( url ), mACLList( acl ), mACLListIterator( mACLList.begin() ) { - QTimer::singleShot(0, this, SLOT(slotStart())); + TQTimer::singleShot(0, this, TQT_SLOT(slotStart())); } void ACLJobs::MultiSetACLJob::slotStart() |