diff options
Diffstat (limited to 'kbugbuster/backend/bugserver.cpp')
-rw-r--r-- | kbugbuster/backend/bugserver.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/kbugbuster/backend/bugserver.cpp b/kbugbuster/backend/bugserver.cpp index 768b76cd..a5d31bbf 100644 --- a/kbugbuster/backend/bugserver.cpp +++ b/kbugbuster/backend/bugserver.cpp @@ -17,8 +17,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. As a special exception, permission is given to link this program - with any edition of Qt, and distribute the resulting executable, - without including the source code for Qt in the source distribution. + with any edition of TQt, and distribute the resulting executable, + without including the source code for TQt in the source distribution. */ #include "bugserver.h" @@ -152,7 +152,7 @@ KURL BugServer::attachmentEditLink( const TQString &id ) return url; } -Bug::Status BugServer::bugStatus( const TQString &str ) +Bug::tqStatus BugServer::bugtqStatus( const TQString &str ) { if ( str == "UNCONFIRMED" ) { return Bug::Unconfirmed; @@ -216,14 +216,14 @@ bool BugServer::queueCommand( BugCommand *cmd ) TQPtrList<BugCommand> BugServer::queryCommands( const Bug &bug ) const { - CommandsMap::ConstIterator it = mCommands.find( bug.number() ); + CommandsMap::ConstIterator it = mCommands.tqfind( bug.number() ); if (it == mCommands.end()) return TQPtrList<BugCommand>(); else return *it; } bool BugServer::hasCommandsFor( const Bug &bug ) const { - CommandsMap::ConstIterator it = mCommands.find( bug.number() ); + CommandsMap::ConstIterator it = mCommands.tqfind( bug.number() ); return it != mCommands.end(); } @@ -270,13 +270,13 @@ void BugServer::sendCommands( MailSender *mailer, const TQString &senderName, } if (!bug.isNull()) { mCommandsFile->deleteGroup( bug.number(), true ); // done, remove command - mCache->invalidateBugDetails( bug ); + mCache->tqinvalidateBugDetails( bug ); if ( !pkg.isNull() ) { - mCache->invalidateBugList( pkg, TQString::null ); // the status of the bug comes from the buglist... + mCache->tqinvalidateBugList( pkg, TQString() ); // the status of the bug comes from the buglist... TQStringList::ConstIterator it2; for (it2 = pkg.components().begin();it2 != pkg.components().end();++it2) { - mCache->invalidateBugList( pkg, (*it2) ); // the status of the bug comes from the buglist... + mCache->tqinvalidateBugList( pkg, (*it2) ); // the status of the bug comes from the buglist... } } } @@ -318,9 +318,9 @@ TQStringList BugServer::listCommands() const for ( ; cmdIt.current() ; ++cmdIt ) { BugCommand* cmd = cmdIt.current(); if (!cmd->controlString().isNull()) - result.append( i18n("Control command: %1").arg(cmd->controlString()) ); + result.append( i18n("Control command: %1").tqarg(cmd->controlString()) ); else - result.append( i18n("Mail to %1").arg(cmd->mailAddress()) ); + result.append( i18n("Mail to %1").tqarg(cmd->mailAddress()) ); } } return result; @@ -387,13 +387,13 @@ const Package::List &BugServer::packages() const void BugServer::setBugs( const Package &pkg, const TQString &component, const Bug::List &bugs ) { - QPair<Package, TQString> pkg_key = QPair<Package, TQString>(pkg, component); + TQPair<Package, TQString> pkg_key = TQPair<Package, TQString>(pkg, component); mBugs[ pkg_key ] = bugs; } const Bug::List &BugServer::bugs( const Package &pkg, const TQString &component ) { - QPair<Package, TQString> pkg_key = QPair<Package, TQString>(pkg, component); + TQPair<Package, TQString> pkg_key = TQPair<Package, TQString>(pkg, component); return mBugs[ pkg_key ]; } |