diff options
Diffstat (limited to 'kmail/kmcommands.cpp')
-rw-r--r-- | kmail/kmcommands.cpp | 286 |
1 files changed, 143 insertions, 143 deletions
diff --git a/kmail/kmcommands.cpp b/kmail/kmcommands.cpp index bdd700bf8..5990a4873 100644 --- a/kmail/kmcommands.cpp +++ b/kmail/kmcommands.cpp @@ -156,28 +156,28 @@ private: }; -KMCommand::KMCommand( TQWidget *tqparent ) +KMCommand::KMCommand( TQWidget *parent ) : mProgressDialog( 0 ), mResult( Undefined ), mDeletesItself( false ), - mEmitsCompletedItself( false ), mParent( tqparent ) + mEmitsCompletedItself( false ), mParent( parent ) { } -KMCommand::KMCommand( TQWidget *tqparent, const TQPtrList<KMMsgBase> &msgList ) +KMCommand::KMCommand( TQWidget *parent, const TQPtrList<KMMsgBase> &msgList ) : mProgressDialog( 0 ), mResult( Undefined ), mDeletesItself( false ), - mEmitsCompletedItself( false ), mParent( tqparent ), mMsgList( msgList ) + mEmitsCompletedItself( false ), mParent( parent ), mMsgList( msgList ) { } -KMCommand::KMCommand( TQWidget *tqparent, KMMsgBase *msgBase ) +KMCommand::KMCommand( TQWidget *parent, KMMsgBase *msgBase ) : mProgressDialog( 0 ), mResult( Undefined ), mDeletesItself( false ), - mEmitsCompletedItself( false ), mParent( tqparent ) + mEmitsCompletedItself( false ), mParent( parent ) { mMsgList.append( msgBase ); } -KMCommand::KMCommand( TQWidget *tqparent, KMMessage *msg ) +KMCommand::KMCommand( TQWidget *parent, KMMessage *msg ) : mProgressDialog( 0 ), mResult( Undefined ), mDeletesItself( false ), - mEmitsCompletedItself( false ), mParent( tqparent ) + mEmitsCompletedItself( false ), mParent( parent ) { if (msg) mMsgList.append( &msg->toMsgBase() ); @@ -236,7 +236,7 @@ void KMCommand::slotStart() if ((mMsgList.count() == 1) && (mMsgList.getFirst()->isMessage()) && - (mMsgList.getFirst()->tqparent() == 0)) + (mMsgList.getFirst()->parent() == 0)) { // Special case of operating on message that isn't in a folder mRetrievedMsgs.append((KMMessage*)mMsgList.getFirst()); @@ -246,11 +246,11 @@ void KMCommand::slotStart() for ( KMMsgBase *mb = mMsgList.first(); mb; mb = mMsgList.next() ) { if ( mb ) { - if ( !mb->tqparent() ) { + if ( !mb->parent() ) { emit messagesTransfered( Failed ); return; } else { - keepFolderOpen( mb->tqparent() ); + keepFolderOpen( mb->parent() ); } } } @@ -271,7 +271,7 @@ void KMCommand::slotPostTransfer( KMCommand::Result result ) while ( (msg = it.current()) != 0 ) { ++it; - if (msg->tqparent()) + if (msg->parent()) msg->setTransferInProgress(false); } kmkernel->filterMgr()->deref(); @@ -315,27 +315,27 @@ void KMCommand::transferSelectedMsgs() thisMsg = static_cast<KMMessage*>(mb); else { - KMFolder *folder = mb->tqparent(); + KMFolder *folder = mb->parent(); int idx = folder->find(mb); if (idx < 0) continue; thisMsg = folder->getMsg(idx); } if (!thisMsg) continue; if ( thisMsg->transferInProgress() && - thisMsg->tqparent()->folderType() == KMFolderTypeImap ) + thisMsg->parent()->folderType() == KMFolderTypeImap ) { thisMsg->setTransferInProgress( false, true ); - thisMsg->tqparent()->ignoreJobsForMessage( thisMsg ); + thisMsg->parent()->ignoreJobsForMessage( thisMsg ); } - if ( thisMsg->tqparent() && !thisMsg->isComplete() && + if ( thisMsg->parent() && !thisMsg->isComplete() && ( !mProgressDialog || !mProgressDialog->wasCancelled() ) ) { kdDebug(5006)<<"### INCOMPLETE\n"; // the message needs to be transferred first complete = false; KMCommand::mCountJobs++; - FolderJob *job = thisMsg->tqparent()->createJob(thisMsg); + FolderJob *job = thisMsg->parent()->createJob(thisMsg); job->setCancellable( false ); totalSize += thisMsg->msgSizeServer(); // emitted when the message was transferred successfully @@ -436,7 +436,7 @@ void KMCommand::slotTransferCancelled() KMMessage* msg; while ( (msg = it.current()) != 0 ) { - KMFolder *folder = msg->tqparent(); + KMFolder *folder = msg->parent(); ++it; if (!folder) continue; @@ -465,8 +465,8 @@ KMCommand::Result KMMailtoComposeCommand::execute() KMMessage *msg = new KMMessage; uint id = 0; - if ( mMessage && mMessage->tqparent() ) - id = mMessage->tqparent()->identity(); + if ( mMessage && mMessage->parent() ) + id = mMessage->parent()->identity(); msg->initHeader(id); msg->setCharset("utf-8"); @@ -481,9 +481,9 @@ KMCommand::Result KMMailtoComposeCommand::execute() } -KMMailtoReplyCommand::KMMailtoReplyCommand( TQWidget *tqparent, +KMMailtoReplyCommand::KMMailtoReplyCommand( TQWidget *parent, const KURL &url, KMMessage *msg, const TQString &selection ) - :KMCommand( tqparent, msg ), mUrl( url ), mSelection( selection ) + :KMCommand( parent, msg ), mUrl( url ), mSelection( selection ) { } @@ -506,9 +506,9 @@ KMCommand::Result KMMailtoReplyCommand::execute() } -KMMailtoForwardCommand::KMMailtoForwardCommand( TQWidget *tqparent, +KMMailtoForwardCommand::KMMailtoForwardCommand( TQWidget *parent, const KURL &url, KMMessage *msg ) - :KMCommand( tqparent, msg ), mUrl( url ) + :KMCommand( parent, msg ), mUrl( url ) { } @@ -530,8 +530,8 @@ KMCommand::Result KMMailtoForwardCommand::execute() } -KMAddBookmarksCommand::KMAddBookmarksCommand( const KURL &url, TQWidget *tqparent ) - : KMCommand( tqparent ), mUrl( url ) +KMAddBookmarksCommand::KMAddBookmarksCommand( const KURL &url, TQWidget *parent ) + : KMCommand( parent ), mUrl( url ) { } @@ -550,8 +550,8 @@ KMCommand::Result KMAddBookmarksCommand::execute() } KMMailtoAddAddrBookCommand::KMMailtoAddAddrBookCommand( const KURL &url, - TQWidget *tqparent ) - : KMCommand( tqparent ), mUrl( url ) + TQWidget *parent ) + : KMCommand( parent ), mUrl( url ) { } @@ -565,8 +565,8 @@ KMCommand::Result KMMailtoAddAddrBookCommand::execute() KMMailtoOpenAddrBookCommand::KMMailtoOpenAddrBookCommand( const KURL &url, - TQWidget *tqparent ) - : KMCommand( tqparent ), mUrl( url ) + TQWidget *parent ) + : KMCommand( parent ), mUrl( url ) { } @@ -623,8 +623,8 @@ KMCommand::Result KMUrlOpenCommand::execute() } -KMUrlSaveCommand::KMUrlSaveCommand( const KURL &url, TQWidget *tqparent ) - : KMCommand( tqparent ), mUrl( url ) +KMUrlSaveCommand::KMUrlSaveCommand( const KURL &url, TQWidget *parent ) + : KMCommand( parent ), mUrl( url ) { } @@ -664,45 +664,45 @@ void KMUrlSaveCommand::slotUrlSaveResult( KIO::Job *job ) } -KMEditMsgCommand::KMEditMsgCommand( TQWidget *tqparent, KMMessage *msg ) - :KMCommand( tqparent, msg ) +KMEditMsgCommand::KMEditMsgCommand( TQWidget *parent, KMMessage *msg ) + :KMCommand( parent, msg ) { } KMCommand::Result KMEditMsgCommand::execute() { KMMessage *msg = retrievedMessage(); - if ( !msg || !msg->tqparent() || - ( !kmkernel->folderIsDraftOrOutbox( msg->tqparent() ) && - !kmkernel->folderIsTemplates( msg->tqparent() ) ) ) + if ( !msg || !msg->parent() || + ( !kmkernel->folderIsDraftOrOutbox( msg->parent() ) && + !kmkernel->folderIsTemplates( msg->parent() ) ) ) return Failed; - // Remember the old tqparent, we need it a bit further down to be able + // Remember the old parent, we need it a bit further down to be able // to put the unchanged messsage back in the original folder if the nth // edit is discarded, for n > 1. - KMFolder *tqparent = msg->tqparent(); - if ( tqparent ) - tqparent->take( tqparent->find( msg ) ); + KMFolder *parent = msg->parent(); + if ( parent ) + parent->take( parent->find( msg ) ); KMail::Composer * win = KMail::makeComposer(); msg->setTransferInProgress(false); // From here on on, the composer owns the message. win->setMsg(msg, false, true); - win->setFolder( tqparent ); + win->setFolder( parent ); win->show(); return OK; } -KMUseTemplateCommand::KMUseTemplateCommand( TQWidget *tqparent, KMMessage *msg ) - :KMCommand( tqparent, msg ) +KMUseTemplateCommand::KMUseTemplateCommand( TQWidget *parent, KMMessage *msg ) + :KMCommand( parent, msg ) { } KMCommand::Result KMUseTemplateCommand::execute() { KMMessage *msg = retrievedMessage(); - if ( !msg || !msg->tqparent() || - !kmkernel->folderIsTemplates( msg->tqparent() ) ) + if ( !msg || !msg->parent() || + !kmkernel->folderIsTemplates( msg->parent() ) ) return Failed; // Take a copy of the original message, which remains unchanged. @@ -721,9 +721,9 @@ KMCommand::Result KMUseTemplateCommand::execute() return OK; } -KMShowMsgSrcCommand::KMShowMsgSrcCommand( TQWidget *tqparent, +KMShowMsgSrcCommand::KMShowMsgSrcCommand( TQWidget *parent, KMMessage *msg, bool fixedFont ) - :KMCommand( tqparent, msg ), mFixedFont( fixedFont ) + :KMCommand( parent, msg ), mFixedFont( fixedFont ) { // remember complete state mMsgWasComplete = msg->isComplete(); @@ -782,8 +782,8 @@ static KURL subjectToUrl( const TQString & subject ) return KFileDialog::getSaveURL( cleanSubject, filter ); } -KMSaveMsgCommand::KMSaveMsgCommand( TQWidget *tqparent, KMMessage * msg ) - : KMCommand( tqparent ), +KMSaveMsgCommand::KMSaveMsgCommand( TQWidget *parent, KMMessage * msg ) + : KMCommand( parent ), mMsgListIndex( 0 ), mStandAloneMessage( 0 ), mOffset( 0 ), @@ -797,8 +797,8 @@ KMSaveMsgCommand::KMSaveMsgCommand( TQWidget *tqparent, KMMessage * msg ) // from an .eml file. if ( msg->getMsgSerNum() != 0 ) { mMsgList.append( msg->getMsgSerNum() ); - if ( msg->tqparent() ) { - msg->tqparent()->open( "kmsavemsgcommand" ); + if ( msg->parent() ) { + msg->parent()->open( "kmsavemsgcommand" ); } } else { mStandAloneMessage = msg; @@ -806,9 +806,9 @@ KMSaveMsgCommand::KMSaveMsgCommand( TQWidget *tqparent, KMMessage * msg ) mUrl = subjectToUrl( msg->cleanSubject() ); } -KMSaveMsgCommand::KMSaveMsgCommand( TQWidget *tqparent, +KMSaveMsgCommand::KMSaveMsgCommand( TQWidget *parent, const TQPtrList<KMMsgBase> &msgList ) - : KMCommand( tqparent ), + : KMCommand( parent ), mMsgListIndex( 0 ), mStandAloneMessage( 0 ), mOffset( 0 ), @@ -826,8 +826,8 @@ KMSaveMsgCommand::KMSaveMsgCommand( TQWidget *tqparent, while ( it.current() ) { mMsgList.append( (*it)->getMsgSerNum() ); mTotalSize += (*it)->msgSize(); - if ((*it)->tqparent() != 0) - (*it)->tqparent()->open("kmcommand"); + if ((*it)->parent() != 0) + (*it)->parent()->open("kmcommand"); ++it; } mMsgListIndex = 0; @@ -895,8 +895,8 @@ void KMSaveMsgCommand::slotSaveDataReq() slotMessageRetrievedForSaving( msg ); } else { // retrieve Message first - if ( msg->tqparent() && !msg->isComplete() ) { - FolderJob *job = msg->tqparent()->createJob( msg ); + if ( msg->parent() && !msg->isComplete() ) { + FolderJob *job = msg->parent()->createJob( msg ); job->setCancellable( false ); connect(job, TQT_SIGNAL( messageRetrieved( KMMessage* ) ), this, TQT_SLOT( slotMessageRetrievedForSaving( KMMessage* ) ) ); @@ -944,12 +944,12 @@ void KMSaveMsgCommand::slotMessageRetrievedForSaving(KMMessage *msg) } ++mMsgListIndex; // Get rid of the message. - if ( msg && msg->tqparent() && msg->getMsgSerNum() && + if ( msg && msg->parent() && msg->getMsgSerNum() && mUngetMsgs.contains( msg ) ) { int idx = -1; KMFolder * p = 0; KMMsgDict::instance()->getLocation( msg, &p, &idx ); - assert( p == msg->tqparent() ); assert( idx >= 0 ); + assert( p == msg->parent() ); assert( idx >= 0 ); p->unGetMsg( idx ); p->close("kmcommand"); } @@ -993,9 +993,9 @@ void KMSaveMsgCommand::slotSaveResult(KIO::Job *job) //----------------------------------------------------------------------------- -KMOpenMsgCommand::KMOpenMsgCommand( TQWidget *tqparent, const KURL & url, +KMOpenMsgCommand::KMOpenMsgCommand( TQWidget *parent, const KURL & url, const TQString & encoding ) - : KMCommand( tqparent ), + : KMCommand( parent ), mUrl( url ), mEncoding( encoding ) { @@ -1102,9 +1102,9 @@ void KMOpenMsgCommand::slotResult( KIO::Job *job ) //TODO: ReplyTo, NoQuoteReplyTo, ReplyList, ReplyToAll, ReplyAuthor // are all similar and should be factored -KMReplyToCommand::KMReplyToCommand( TQWidget *tqparent, KMMessage *msg, +KMReplyToCommand::KMReplyToCommand( TQWidget *parent, KMMessage *msg, const TQString &selection ) - : KMCommand( tqparent, msg ), mSelection( selection ) + : KMCommand( parent, msg ), mSelection( selection ) { } @@ -1125,9 +1125,9 @@ KMCommand::Result KMReplyToCommand::execute() } -KMNoQuoteReplyToCommand::KMNoQuoteReplyToCommand( TQWidget *tqparent, +KMNoQuoteReplyToCommand::KMNoQuoteReplyToCommand( TQWidget *parent, KMMessage *msg ) - : KMCommand( tqparent, msg ) + : KMCommand( parent, msg ) { } @@ -1148,9 +1148,9 @@ KMCommand::Result KMNoQuoteReplyToCommand::execute() } -KMReplyListCommand::KMReplyListCommand( TQWidget *tqparent, +KMReplyListCommand::KMReplyListCommand( TQWidget *parent, KMMessage *msg, const TQString &selection ) - : KMCommand( tqparent, msg ), mSelection( selection ) + : KMCommand( parent, msg ), mSelection( selection ) { } @@ -1171,9 +1171,9 @@ KMCommand::Result KMReplyListCommand::execute() } -KMReplyToAllCommand::KMReplyToAllCommand( TQWidget *tqparent, +KMReplyToAllCommand::KMReplyToAllCommand( TQWidget *parent, KMMessage *msg, const TQString &selection ) - :KMCommand( tqparent, msg ), mSelection( selection ) + :KMCommand( parent, msg ), mSelection( selection ) { } @@ -1194,9 +1194,9 @@ KMCommand::Result KMReplyToAllCommand::execute() } -KMReplyAuthorCommand::KMReplyAuthorCommand( TQWidget *tqparent, KMMessage *msg, +KMReplyAuthorCommand::KMReplyAuthorCommand( TQWidget *parent, KMMessage *msg, const TQString &selection ) - : KMCommand( tqparent, msg ), mSelection( selection ) + : KMCommand( parent, msg ), mSelection( selection ) { } @@ -1217,16 +1217,16 @@ KMCommand::Result KMReplyAuthorCommand::execute() } -KMForwardInlineCommand::KMForwardInlineCommand( TQWidget *tqparent, +KMForwardInlineCommand::KMForwardInlineCommand( TQWidget *parent, const TQPtrList<KMMsgBase> &msgList, uint identity ) - : KMCommand( tqparent, msgList ), + : KMCommand( parent, msgList ), mIdentity( identity ) { } -KMForwardInlineCommand::KMForwardInlineCommand( TQWidget *tqparent, +KMForwardInlineCommand::KMForwardInlineCommand( TQWidget *parent, KMMessage *msg, uint identity ) - : KMCommand( tqparent, msg ), + : KMCommand( parent, msg ), mIdentity( identity ) { } @@ -1290,16 +1290,16 @@ KMCommand::Result KMForwardInlineCommand::execute() } -KMForwardAttachedCommand::KMForwardAttachedCommand( TQWidget *tqparent, +KMForwardAttachedCommand::KMForwardAttachedCommand( TQWidget *parent, const TQPtrList<KMMsgBase> &msgList, uint identity, KMail::Composer *win ) - : KMCommand( tqparent, msgList ), mIdentity( identity ), + : KMCommand( parent, msgList ), mIdentity( identity ), mWin( TQGuardedPtr<KMail::Composer>( win )) { } -KMForwardAttachedCommand::KMForwardAttachedCommand( TQWidget *tqparent, +KMForwardAttachedCommand::KMForwardAttachedCommand( TQWidget *parent, KMMessage * msg, uint identity, KMail::Composer *win ) - : KMCommand( tqparent, msg ), mIdentity( identity ), + : KMCommand( parent, msg ), mIdentity( identity ), mWin( TQGuardedPtr< KMail::Composer >( win )) { } @@ -1353,16 +1353,16 @@ KMCommand::Result KMForwardAttachedCommand::execute() } -KMForwardDigestCommand::KMForwardDigestCommand( TQWidget *tqparent, +KMForwardDigestCommand::KMForwardDigestCommand( TQWidget *parent, const TQPtrList<KMMsgBase> &msgList, uint identity, KMail::Composer *win ) - : KMCommand( tqparent, msgList ), mIdentity( identity ), + : KMCommand( parent, msgList ), mIdentity( identity ), mWin( TQGuardedPtr<KMail::Composer>( win )) { } -KMForwardDigestCommand::KMForwardDigestCommand( TQWidget *tqparent, +KMForwardDigestCommand::KMForwardDigestCommand( TQWidget *parent, KMMessage * msg, uint identity, KMail::Composer *win ) - : KMCommand( tqparent, msg ), mIdentity( identity ), + : KMCommand( parent, msg ), mIdentity( identity ), mWin( TQGuardedPtr< KMail::Composer >( win )) { } @@ -1440,9 +1440,9 @@ KMCommand::Result KMForwardDigestCommand::execute() return OK; } -KMRedirectCommand::KMRedirectCommand( TQWidget *tqparent, +KMRedirectCommand::KMRedirectCommand( TQWidget *parent, KMMessage *msg ) - : KMCommand( tqparent, msg ) + : KMCommand( parent, msg ) { } @@ -1470,10 +1470,10 @@ KMCommand::Result KMRedirectCommand::execute() } -KMCustomReplyToCommand::KMCustomReplyToCommand( TQWidget *tqparent, KMMessage *msg, +KMCustomReplyToCommand::KMCustomReplyToCommand( TQWidget *parent, KMMessage *msg, const TQString &selection, const TQString &tmpl ) - : KMCommand( tqparent, msg ), mSelection( selection ), mTemplate( tmpl ) + : KMCommand( parent, msg ), mSelection( selection ), mTemplate( tmpl ) { } @@ -1495,10 +1495,10 @@ KMCommand::Result KMCustomReplyToCommand::execute() } -KMCustomReplyAllToCommand::KMCustomReplyAllToCommand( TQWidget *tqparent, KMMessage *msg, +KMCustomReplyAllToCommand::KMCustomReplyAllToCommand( TQWidget *parent, KMMessage *msg, const TQString &selection, const TQString &tmpl ) - : KMCommand( tqparent, msg ), mSelection( selection ), mTemplate( tmpl ) + : KMCommand( parent, msg ), mSelection( selection ), mTemplate( tmpl ) { } @@ -1520,16 +1520,16 @@ KMCommand::Result KMCustomReplyAllToCommand::execute() } -KMCustomForwardCommand::KMCustomForwardCommand( TQWidget *tqparent, +KMCustomForwardCommand::KMCustomForwardCommand( TQWidget *parent, const TQPtrList<KMMsgBase> &msgList, uint identity, const TQString &tmpl ) - : KMCommand( tqparent, msgList ), + : KMCommand( parent, msgList ), mIdentity( identity ), mTemplate( tmpl ) { } -KMCustomForwardCommand::KMCustomForwardCommand( TQWidget *tqparent, +KMCustomForwardCommand::KMCustomForwardCommand( TQWidget *parent, KMMessage *msg, uint identity, const TQString &tmpl ) - : KMCommand( tqparent, msg ), + : KMCommand( parent, msg ), mIdentity( identity ), mTemplate( tmpl ) { } @@ -1593,12 +1593,12 @@ KMCommand::Result KMCustomForwardCommand::execute() } -KMPrintCommand::KMPrintCommand( TQWidget *tqparent, KMMessage *msg, +KMPrintCommand::KMPrintCommand( TQWidget *parent, KMMessage *msg, const KMail::HeaderStyle *headerStyle, const KMail::HeaderStrategy *headerStrategy, bool htmlOverride, bool htmlLoadExtOverride, bool useFixedFont, const TQString & encoding ) - : KMCommand( tqparent, msg ), + : KMCommand( parent, msg ), mHeaderStyle( headerStyle ), mHeaderStrategy( headerStrategy ), mHtmlOverride( htmlOverride ), mHtmlLoadExtOverride( htmlLoadExtOverride ), @@ -1653,7 +1653,7 @@ KMCommand::Result KMSeStatusCommand::execute() bool parentqStatus = false; // Toggle actions on threads toggle the whole thread - // depending on the state of the tqparent. + // depending on the state of the parent. if (mToggle) { KMMsgBase *msg; KMMsgDict::instance()->getLocation( *mSerNums.begin(), &folder, &idx ); @@ -1712,10 +1712,10 @@ KMCommand::Result KMFilterCommand::execute() } -KMFilterActionCommand::KMFilterActionCommand( TQWidget *tqparent, +KMFilterActionCommand::KMFilterActionCommand( TQWidget *parent, const TQPtrList<KMMsgBase> &msgList, KMFilter *filter ) - : KMCommand( tqparent, msgList ), mFilter( filter ) + : KMCommand( parent, msgList ), mFilter( filter ) { TQPtrListIterator<KMMsgBase> it(msgList); while ( it.current() ) { @@ -1821,9 +1821,9 @@ void FolderShortcutCommand::setAction( KAction* action ) mAction = action; } -KMMailingListFilterCommand::KMMailingListFilterCommand( TQWidget *tqparent, +KMMailingListFilterCommand::KMMailingListFilterCommand( TQWidget *parent, KMMessage *msg ) - : KMCommand( tqparent, msg ) + : KMCommand( parent, msg ) { } @@ -1984,7 +1984,7 @@ KMCommand::Result KMCopyCommand::execute() for (msgBase = mMsgList.first(); msgBase; msgBase = mMsgList.next() ) { - KMFolder *srcFolder = msgBase->tqparent(); + KMFolder *srcFolder = msgBase->parent(); if (( isMessage = msgBase->isMessage() )) { msg = static_cast<KMMessage*>(msgBase); @@ -2020,7 +2020,7 @@ KMCommand::Result KMCopyCommand::execute() if (srcFolder && !newMsg->isComplete()) { // imap => others - newMsg->setParent(msg->tqparent()); + newMsg->setParent(msg->parent()); FolderJob *job = srcFolder->createJob(newMsg); job->setCancellable( false ); mPendingJobs << job; @@ -2473,19 +2473,19 @@ KMCommand::Result KMUrlClickedCommand::execute() return OK; } -KMSaveAttachmentsCommand::KMSaveAttachmentsCommand( TQWidget *tqparent, KMMessage *msg ) - : KMCommand( tqparent, msg ), mImplicitAttachments( true ), mEncoded( false ) +KMSaveAttachmentsCommand::KMSaveAttachmentsCommand( TQWidget *parent, KMMessage *msg ) + : KMCommand( parent, msg ), mImplicitAttachments( true ), mEncoded( false ) { } -KMSaveAttachmentsCommand::KMSaveAttachmentsCommand( TQWidget *tqparent, const TQPtrList<KMMsgBase>& msgs ) - : KMCommand( tqparent, msgs ), mImplicitAttachments( true ), mEncoded( false ) +KMSaveAttachmentsCommand::KMSaveAttachmentsCommand( TQWidget *parent, const TQPtrList<KMMsgBase>& msgs ) + : KMCommand( parent, msgs ), mImplicitAttachments( true ), mEncoded( false ) { } -KMSaveAttachmentsCommand::KMSaveAttachmentsCommand( TQWidget *tqparent, TQPtrList<partNode>& attachments, +KMSaveAttachmentsCommand::KMSaveAttachmentsCommand( TQWidget *parent, TQPtrList<partNode>& attachments, KMMessage *msg, bool encoded ) - : KMCommand( tqparent ), mImplicitAttachments( false ), mEncoded( encoded ) + : KMCommand( parent ), mImplicitAttachments( false ), mEncoded( encoded ) { for ( TQPtrListIterator<partNode> it( attachments ); it.current(); ++it ) { mAttachmentMap.insert( it.current(), msg ); @@ -2759,7 +2759,7 @@ KMCommand::Result KMSaveAttachmentsCommand::saveItem( partNode *node, } // #79685 by default use the umask the user defined, but let it be configurable - if ( GlobalSettings::self()->disregardUtqmask() ) + if ( GlobalSettings::self()->disregardUmask() ) fchmod( file.handle(), S_IRUSR | S_IWUSR ); ds.setDevice( &file ); @@ -2814,7 +2814,7 @@ void KMLoadPartsCommand::slotStart() !it.key()->msgPart().partSpecifier().isEmpty() ) { // incomplete part, so retrieve it first ++mNeedsRetrieval; - KMFolder* curFolder = it.data()->tqparent(); + KMFolder* curFolder = it.data()->parent(); if ( curFolder ) { FolderJob *job = curFolder->createJob( it.data(), FolderJob::tGetMessage, @@ -2824,7 +2824,7 @@ void KMLoadPartsCommand::slotStart() this, TQT_SLOT(slotPartRetrieved(KMMessage*, TQString)) ); job->start(); } else - kdWarning(5006) << "KMLoadPartsCommand - msg has no tqparent" << endl; + kdWarning(5006) << "KMLoadPartsCommand - msg has no parent" << endl; } } if ( mNeedsRetrieval == 0 ) @@ -2860,9 +2860,9 @@ KMCommand::Result KMLoadPartsCommand::execute() return OK; } -KMResendMessageCommand::KMResendMessageCommand( TQWidget *tqparent, +KMResendMessageCommand::KMResendMessageCommand( TQWidget *parent, KMMessage *msg ) - :KMCommand( tqparent, msg ) + :KMCommand( parent, msg ) { } @@ -2892,8 +2892,8 @@ KMCommand::Result KMResendMessageCommand::execute() return OK; } -KMMailingListCommand::KMMailingListCommand( TQWidget *tqparent, KMFolder *folder ) - : KMCommand( tqparent ), mFolder( folder ) +KMMailingListCommand::KMMailingListCommand( TQWidget *parent, KMFolder *folder ) + : KMCommand( parent ), mFolder( folder ) { } @@ -2931,8 +2931,8 @@ void KMMailingListCommand::commandCompleted( KMCommand *command ) deleteLater(); } -KMMailingListPostCommand::KMMailingListPostCommand( TQWidget *tqparent, KMFolder *folder ) - : KMMailingListCommand( tqparent, folder ) +KMMailingListPostCommand::KMMailingListPostCommand( TQWidget *parent, KMFolder *folder ) + : KMMailingListCommand( parent, folder ) { } KURL::List KMMailingListPostCommand::urls() const @@ -2940,8 +2940,8 @@ KURL::List KMMailingListPostCommand::urls() const return mFolder->mailingList().postURLS(); } -KMMailingListSubscribeCommand::KMMailingListSubscribeCommand( TQWidget *tqparent, KMFolder *folder ) - : KMMailingListCommand( tqparent, folder ) +KMMailingListSubscribeCommand::KMMailingListSubscribeCommand( TQWidget *parent, KMFolder *folder ) + : KMMailingListCommand( parent, folder ) { } KURL::List KMMailingListSubscribeCommand::urls() const @@ -2949,8 +2949,8 @@ KURL::List KMMailingListSubscribeCommand::urls() const return mFolder->mailingList().subscribeURLS(); } -KMMailingListUnsubscribeCommand::KMMailingListUnsubscribeCommand( TQWidget *tqparent, KMFolder *folder ) - : KMMailingListCommand( tqparent, folder ) +KMMailingListUnsubscribeCommand::KMMailingListUnsubscribeCommand( TQWidget *parent, KMFolder *folder ) + : KMMailingListCommand( parent, folder ) { } KURL::List KMMailingListUnsubscribeCommand::urls() const @@ -2958,8 +2958,8 @@ KURL::List KMMailingListUnsubscribeCommand::urls() const return mFolder->mailingList().unsubscribeURLS(); } -KMMailingListArchivesCommand::KMMailingListArchivesCommand( TQWidget *tqparent, KMFolder *folder ) - : KMMailingListCommand( tqparent, folder ) +KMMailingListArchivesCommand::KMMailingListArchivesCommand( TQWidget *parent, KMFolder *folder ) + : KMMailingListCommand( parent, folder ) { } KURL::List KMMailingListArchivesCommand::urls() const @@ -2967,8 +2967,8 @@ KURL::List KMMailingListArchivesCommand::urls() const return mFolder->mailingList().archiveURLS(); } -KMMailingListHelpCommand::KMMailingListHelpCommand( TQWidget *tqparent, KMFolder *folder ) - : KMMailingListCommand( tqparent, folder ) +KMMailingListHelpCommand::KMMailingListHelpCommand( TQWidget *parent, KMFolder *folder ) + : KMMailingListCommand( parent, folder ) { } KURL::List KMMailingListHelpCommand::urls() const @@ -3022,8 +3022,8 @@ KMCommand::Result KMIMChatCommand::execute() KMHandleAttachmentCommand::KMHandleAttachmentCommand( partNode* node, KMMessage* msg, int atmId, const TQString& atmName, - AttachmentAction action, KService::Ptr offer, TQWidget* tqparent ) -: KMCommand( tqparent ), mNode( node ), mMsg( msg ), mAtmId( atmId ), mAtmName( atmName ), + AttachmentAction action, KService::Ptr offer, TQWidget* parent ) +: KMCommand( parent ), mNode( node ), mMsg( msg ), mAtmId( atmId ), mAtmName( atmName ), mAction( action ), mOffer( offer ), mJob( 0 ) { } @@ -3349,15 +3349,15 @@ void KMHandleAttachmentCommand::slotAtmDecryptWithChiasmusUploadResult( KIO::Job } -AttachmentModifyCommand::AttachmentModifyCommand(partNode * node, KMMessage * msg, TQWidget * tqparent) : - KMCommand( tqparent, msg ), +AttachmentModifyCommand::AttachmentModifyCommand(partNode * node, KMMessage * msg, TQWidget * parent) : + KMCommand( parent, msg ), mPartIndex( node->nodeId() ), mSernum( 0 ) { } -AttachmentModifyCommand::AttachmentModifyCommand( int nodeId, KMMessage *msg, TQWidget *tqparent ) - : KMCommand( tqparent, msg ), +AttachmentModifyCommand::AttachmentModifyCommand( int nodeId, KMMessage *msg, TQWidget *parent ) + : KMCommand( parent, msg ), mPartIndex( nodeId ), mSernum( 0 ) { @@ -3374,7 +3374,7 @@ KMCommand::Result AttachmentModifyCommand::execute() return Failed; mSernum = msg->getMsgSerNum(); - mFolder = msg->tqparent(); + mFolder = msg->parent(); if ( !mFolder || !mFolder->storage() ) return Failed; @@ -3427,14 +3427,14 @@ void AttachmentModifyCommand::messageDeleteResult(KMCommand * cmd) deleteLater(); } -KMDeleteAttachmentCommand::KMDeleteAttachmentCommand(partNode * node, KMMessage * msg, TQWidget * tqparent) : - AttachmentModifyCommand( node, msg, tqparent ) +KMDeleteAttachmentCommand::KMDeleteAttachmentCommand(partNode * node, KMMessage * msg, TQWidget * parent) : + AttachmentModifyCommand( node, msg, parent ) { kdDebug(5006) << k_funcinfo << endl; } -KMDeleteAttachmentCommand::KMDeleteAttachmentCommand( int nodeId, KMMessage *msg, TQWidget *tqparent ) - : AttachmentModifyCommand( nodeId, msg, tqparent ) +KMDeleteAttachmentCommand::KMDeleteAttachmentCommand( int nodeId, KMMessage *msg, TQWidget *parent ) + : AttachmentModifyCommand( nodeId, msg, parent ) { kdDebug(5006) << k_funcinfo << endl; } @@ -3459,15 +3459,15 @@ KMCommand::Result KMDeleteAttachmentCommand::doAttachmentModify() } -KMEditAttachmentCommand::KMEditAttachmentCommand(partNode * node, KMMessage * msg, TQWidget * tqparent) : - AttachmentModifyCommand( node, msg, tqparent ) +KMEditAttachmentCommand::KMEditAttachmentCommand(partNode * node, KMMessage * msg, TQWidget * parent) : + AttachmentModifyCommand( node, msg, parent ) { kdDebug(5006) << k_funcinfo << endl; mTempFile.setAutoDelete( true ); } -KMEditAttachmentCommand::KMEditAttachmentCommand( int nodeId, KMMessage *msg, TQWidget *tqparent ) - : AttachmentModifyCommand( nodeId, msg, tqparent ) +KMEditAttachmentCommand::KMEditAttachmentCommand( int nodeId, KMMessage *msg, TQWidget *parent ) + : AttachmentModifyCommand( nodeId, msg, parent ) { kdDebug(5006) << k_funcinfo << endl; mTempFile.setAutoDelete( true ); @@ -3549,8 +3549,8 @@ void KMEditAttachmentCommand::editDone(KMail::EditorWatcher * watcher) } -CreateTodoCommand::CreateTodoCommand(TQWidget * tqparent, KMMessage * msg) - : KMCommand( tqparent, msg ) +CreateTodoCommand::CreateTodoCommand(TQWidget * parent, KMMessage * msg) + : KMCommand( parent, msg ) { } |