summaryrefslogtreecommitdiffstats
path: root/kmail/kmcommands.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
commit67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch)
tree5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /kmail/kmcommands.cpp
parent2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff)
downloadtdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz
tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmail/kmcommands.cpp')
-rw-r--r--kmail/kmcommands.cpp382
1 files changed, 191 insertions, 191 deletions
diff --git a/kmail/kmcommands.cpp b/kmail/kmcommands.cpp
index 907d21100..1473d3d6e 100644
--- a/kmail/kmcommands.cpp
+++ b/kmail/kmcommands.cpp
@@ -156,28 +156,28 @@ private:
};
-KMCommand::KMCommand( TQWidget *parent )
+KMCommand::KMCommand( TQWidget *tqparent )
: mProgressDialog( 0 ), mResult( Undefined ), mDeletesItself( false ),
- mEmitsCompletedItself( false ), mParent( parent )
+ mEmitsCompletedItself( false ), mParent( tqparent )
{
}
-KMCommand::KMCommand( TQWidget *parent, const TQPtrList<KMMsgBase> &msgList )
+KMCommand::KMCommand( TQWidget *tqparent, const TQPtrList<KMMsgBase> &msgList )
: mProgressDialog( 0 ), mResult( Undefined ), mDeletesItself( false ),
- mEmitsCompletedItself( false ), mParent( parent ), mMsgList( msgList )
+ mEmitsCompletedItself( false ), mParent( tqparent ), mMsgList( msgList )
{
}
-KMCommand::KMCommand( TQWidget *parent, KMMsgBase *msgBase )
+KMCommand::KMCommand( TQWidget *tqparent, KMMsgBase *msgBase )
: mProgressDialog( 0 ), mResult( Undefined ), mDeletesItself( false ),
- mEmitsCompletedItself( false ), mParent( parent )
+ mEmitsCompletedItself( false ), mParent( tqparent )
{
mMsgList.append( msgBase );
}
-KMCommand::KMCommand( TQWidget *parent, KMMessage *msg )
+KMCommand::KMCommand( TQWidget *tqparent, KMMessage *msg )
: mProgressDialog( 0 ), mResult( Undefined ), mDeletesItself( false ),
- mEmitsCompletedItself( false ), mParent( parent )
+ mEmitsCompletedItself( false ), mParent( tqparent )
{
if (msg)
mMsgList.append( &msg->toMsgBase() );
@@ -229,14 +229,14 @@ void KMCommand::slotStart()
this, TQT_SLOT( slotPostTransfer( KMCommand::Result ) ) );
kmkernel->filterMgr()->ref();
- if (mMsgList.find(0) != -1) {
+ if (mMsgList.tqfind(0) != -1) {
emit messagesTransfered( Failed );
return;
}
if ((mMsgList.count() == 1) &&
(mMsgList.getFirst()->isMessage()) &&
- (mMsgList.getFirst()->parent() == 0))
+ (mMsgList.getFirst()->tqparent() == 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->parent() ) {
+ if ( !mb->tqparent() ) {
emit messagesTransfered( Failed );
return;
} else {
- keepFolderOpen( mb->parent() );
+ keepFolderOpen( mb->tqparent() );
}
}
}
@@ -271,7 +271,7 @@ void KMCommand::slotPostTransfer( KMCommand::Result result )
while ( (msg = it.current()) != 0 )
{
++it;
- if (msg->parent())
+ if (msg->tqparent())
msg->setTransferInProgress(false);
}
kmkernel->filterMgr()->deref();
@@ -315,27 +315,27 @@ void KMCommand::transferSelectedMsgs()
thisMsg = static_cast<KMMessage*>(mb);
else
{
- KMFolder *folder = mb->parent();
- int idx = folder->find(mb);
+ KMFolder *folder = mb->tqparent();
+ int idx = folder->tqfind(mb);
if (idx < 0) continue;
thisMsg = folder->getMsg(idx);
}
if (!thisMsg) continue;
if ( thisMsg->transferInProgress() &&
- thisMsg->parent()->folderType() == KMFolderTypeImap )
+ thisMsg->tqparent()->folderType() == KMFolderTypeImap )
{
thisMsg->setTransferInProgress( false, true );
- thisMsg->parent()->ignoreJobsForMessage( thisMsg );
+ thisMsg->tqparent()->ignoreJobsForMessage( thisMsg );
}
- if ( thisMsg->parent() && !thisMsg->isComplete() &&
+ if ( thisMsg->tqparent() && !thisMsg->isComplete() &&
( !mProgressDialog || !mProgressDialog->wasCancelled() ) )
{
kdDebug(5006)<<"### INCOMPLETE\n";
// the message needs to be transferred first
complete = false;
KMCommand::mCountJobs++;
- FolderJob *job = thisMsg->parent()->createJob(thisMsg);
+ FolderJob *job = thisMsg->tqparent()->createJob(thisMsg);
job->setCancellable( false );
totalSize += thisMsg->msgSizeServer();
// emitted when the message was transferred successfully
@@ -436,12 +436,12 @@ void KMCommand::slotTransferCancelled()
KMMessage* msg;
while ( (msg = it.current()) != 0 )
{
- KMFolder *folder = msg->parent();
+ KMFolder *folder = msg->tqparent();
++it;
if (!folder)
continue;
msg->setTransferInProgress(false);
- int idx = folder->find(msg);
+ int idx = folder->tqfind(msg);
if (idx > 0) folder->unGetMsg(idx);
}
mRetrievedMsgs.clear();
@@ -465,8 +465,8 @@ KMCommand::Result KMMailtoComposeCommand::execute()
KMMessage *msg = new KMMessage;
uint id = 0;
- if ( mMessage && mMessage->parent() )
- id = mMessage->parent()->identity();
+ if ( mMessage && mMessage->tqparent() )
+ id = mMessage->tqparent()->identity();
msg->initHeader(id);
msg->setCharset("utf-8");
@@ -481,9 +481,9 @@ KMCommand::Result KMMailtoComposeCommand::execute()
}
-KMMailtoReplyCommand::KMMailtoReplyCommand( TQWidget *parent,
+KMMailtoReplyCommand::KMMailtoReplyCommand( TQWidget *tqparent,
const KURL &url, KMMessage *msg, const TQString &selection )
- :KMCommand( parent, msg ), mUrl( url ), mSelection( selection )
+ :KMCommand( tqparent, msg ), mUrl( url ), mSelection( selection )
{
}
@@ -506,9 +506,9 @@ KMCommand::Result KMMailtoReplyCommand::execute()
}
-KMMailtoForwardCommand::KMMailtoForwardCommand( TQWidget *parent,
+KMMailtoForwardCommand::KMMailtoForwardCommand( TQWidget *tqparent,
const KURL &url, KMMessage *msg )
- :KMCommand( parent, msg ), mUrl( url )
+ :KMCommand( tqparent, msg ), mUrl( url )
{
}
@@ -530,8 +530,8 @@ KMCommand::Result KMMailtoForwardCommand::execute()
}
-KMAddBookmarksCommand::KMAddBookmarksCommand( const KURL &url, TQWidget *parent )
- : KMCommand( parent ), mUrl( url )
+KMAddBookmarksCommand::KMAddBookmarksCommand( const KURL &url, TQWidget *tqparent )
+ : KMCommand( tqparent ), mUrl( url )
{
}
@@ -550,8 +550,8 @@ KMCommand::Result KMAddBookmarksCommand::execute()
}
KMMailtoAddAddrBookCommand::KMMailtoAddAddrBookCommand( const KURL &url,
- TQWidget *parent )
- : KMCommand( parent ), mUrl( url )
+ TQWidget *tqparent )
+ : KMCommand( tqparent ), mUrl( url )
{
}
@@ -565,8 +565,8 @@ KMCommand::Result KMMailtoAddAddrBookCommand::execute()
KMMailtoOpenAddrBookCommand::KMMailtoOpenAddrBookCommand( const KURL &url,
- TQWidget *parent )
- : KMCommand( parent ), mUrl( url )
+ TQWidget *tqparent )
+ : KMCommand( tqparent ), mUrl( url )
{
}
@@ -586,7 +586,7 @@ KMUrlCopyCommand::KMUrlCopyCommand( const KURL &url, KMMainWidget *mainWidget )
KMCommand::Result KMUrlCopyCommand::execute()
{
- QClipboard* clip = TQApplication::clipboard();
+ TQClipboard* clip = TQApplication::clipboard();
if (mUrl.protocol() == "mailto") {
// put the url into the mouse selection and the clipboard
@@ -595,14 +595,14 @@ KMCommand::Result KMUrlCopyCommand::execute()
clip->setText( address );
clip->setSelectionMode( false );
clip->setText( address );
- KPIM::BroadcasStatus::instance()->seStatusMsg( i18n( "Address copied to clipboard." ));
+ KPIM::BroadcastqStatus::instance()->seStatusMsg( i18n( "Address copied to clipboard." ));
} else {
// put the url into the mouse selection and the clipboard
clip->setSelectionMode( true );
clip->setText( mUrl.url() );
clip->setSelectionMode( false );
clip->setText( mUrl.url() );
- KPIM::BroadcasStatus::instance()->seStatusMsg( i18n( "URL copied to clipboard." ));
+ KPIM::BroadcastqStatus::instance()->seStatusMsg( i18n( "URL copied to clipboard." ));
}
return OK;
@@ -623,8 +623,8 @@ KMCommand::Result KMUrlOpenCommand::execute()
}
-KMUrlSaveCommand::KMUrlSaveCommand( const KURL &url, TQWidget *parent )
- : KMCommand( parent ), mUrl( url )
+KMUrlSaveCommand::KMUrlSaveCommand( const KURL &url, TQWidget *tqparent )
+ : KMCommand( tqparent ), mUrl( url )
{
}
@@ -632,14 +632,14 @@ KMCommand::Result KMUrlSaveCommand::execute()
{
if ( mUrl.isEmpty() )
return OK;
- KURL saveUrl = KFileDialog::getSaveURL(mUrl.fileName(), TQString::null,
+ KURL saveUrl = KFileDialog::getSaveURL(mUrl.fileName(), TQString(),
tqparentWidget() );
if ( saveUrl.isEmpty() )
return Canceled;
if ( KIO::NetAccess::exists( saveUrl, false, tqparentWidget() ) )
{
if (KMessageBox::warningContinueCancel(0,
- i18n("<qt>File <b>%1</b> exists.<br>Do you want to tqreplace it?</qt>")
+ i18n("<qt>File <b>%1</b> exists.<br>Do you want to replace it?</qt>")
.arg(saveUrl.prettyURL()), i18n("Save to File"), i18n("&Replace"))
!= KMessageBox::Continue)
return Canceled;
@@ -664,45 +664,45 @@ void KMUrlSaveCommand::slotUrlSaveResult( KIO::Job *job )
}
-KMEditMsgCommand::KMEditMsgCommand( TQWidget *parent, KMMessage *msg )
- :KMCommand( parent, msg )
+KMEditMsgCommand::KMEditMsgCommand( TQWidget *tqparent, KMMessage *msg )
+ :KMCommand( tqparent, msg )
{
}
KMCommand::Result KMEditMsgCommand::execute()
{
KMMessage *msg = retrievedMessage();
- if ( !msg || !msg->parent() ||
- ( !kmkernel->folderIsDraftOrOutbox( msg->parent() ) &&
- !kmkernel->folderIsTemplates( msg->parent() ) ) )
+ if ( !msg || !msg->tqparent() ||
+ ( !kmkernel->folderIsDraftOrOutbox( msg->tqparent() ) &&
+ !kmkernel->folderIsTemplates( msg->tqparent() ) ) )
return Failed;
- // Remember the old parent, we need it a bit further down to be able
+ // Remember the old tqparent, 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 *parent = msg->parent();
- if ( parent )
- parent->take( parent->find( msg ) );
+ KMFolder *tqparent = msg->tqparent();
+ if ( tqparent )
+ tqparent->take( tqparent->tqfind( 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( parent );
+ win->setFolder( tqparent );
win->show();
return OK;
}
-KMUseTemplateCommand::KMUseTemplateCommand( TQWidget *parent, KMMessage *msg )
- :KMCommand( parent, msg )
+KMUseTemplateCommand::KMUseTemplateCommand( TQWidget *tqparent, KMMessage *msg )
+ :KMCommand( tqparent, msg )
{
}
KMCommand::Result KMUseTemplateCommand::execute()
{
KMMessage *msg = retrievedMessage();
- if ( !msg || !msg->parent() ||
- !kmkernel->folderIsTemplates( msg->parent() ) )
+ if ( !msg || !msg->tqparent() ||
+ !kmkernel->folderIsTemplates( msg->tqparent() ) )
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 *parent,
+KMShowMsgSrcCommand::KMShowMsgSrcCommand( TQWidget *tqparent,
KMMessage *msg, bool fixedFont )
- :KMCommand( parent, msg ), mFixedFont( fixedFont )
+ :KMCommand( tqparent, msg ), mFixedFont( fixedFont )
{
// remember complete state
mMsgWasComplete = msg->isComplete();
@@ -763,7 +763,7 @@ KMCommand::Result KMShowMsgSrcCommand::execute()
static KURL subjectToUrl( const TQString & subject )
{
- // We need to tqreplace colons with underscores since those cause problems with KFileDialog (bug
+ // We need to replace colons with underscores since those cause problems with KFileDialog (bug
// in KFileDialog though) and also on Windows filesystems.
// We also look at the special case of ": ", since converting that to "_ " would look strange,
// simply "_" looks better.
@@ -782,8 +782,8 @@ static KURL subjectToUrl( const TQString & subject )
return KFileDialog::getSaveURL( cleanSubject, filter );
}
-KMSaveMsgCommand::KMSaveMsgCommand( TQWidget *parent, KMMessage * msg )
- : KMCommand( parent ),
+KMSaveMsgCommand::KMSaveMsgCommand( TQWidget *tqparent, KMMessage * msg )
+ : KMCommand( tqparent ),
mMsgListIndex( 0 ),
mStandAloneMessage( 0 ),
mOffset( 0 ),
@@ -797,8 +797,8 @@ KMSaveMsgCommand::KMSaveMsgCommand( TQWidget *parent, KMMessage * msg )
// from an .eml file.
if ( msg->getMsgSerNum() != 0 ) {
mMsgList.append( msg->getMsgSerNum() );
- if ( msg->parent() ) {
- msg->parent()->open( "kmsavemsgcommand" );
+ if ( msg->tqparent() ) {
+ msg->tqparent()->open( "kmsavemsgcommand" );
}
} else {
mStandAloneMessage = msg;
@@ -806,9 +806,9 @@ KMSaveMsgCommand::KMSaveMsgCommand( TQWidget *parent, KMMessage * msg )
mUrl = subjectToUrl( msg->cleanSubject() );
}
-KMSaveMsgCommand::KMSaveMsgCommand( TQWidget *parent,
+KMSaveMsgCommand::KMSaveMsgCommand( TQWidget *tqparent,
const TQPtrList<KMMsgBase> &msgList )
- : KMCommand( parent ),
+ : KMCommand( tqparent ),
mMsgListIndex( 0 ),
mStandAloneMessage( 0 ),
mOffset( 0 ),
@@ -826,8 +826,8 @@ KMSaveMsgCommand::KMSaveMsgCommand( TQWidget *parent,
while ( it.current() ) {
mMsgList.append( (*it)->getMsgSerNum() );
mTotalSize += (*it)->msgSize();
- if ((*it)->parent() != 0)
- (*it)->parent()->open("kmcommand");
+ if ((*it)->tqparent() != 0)
+ (*it)->tqparent()->open("kmcommand");
++it;
}
mMsgListIndex = 0;
@@ -895,8 +895,8 @@ void KMSaveMsgCommand::slotSaveDataReq()
slotMessageRetrievedForSaving( msg );
} else {
// retrieve Message first
- if ( msg->parent() && !msg->isComplete() ) {
- FolderJob *job = msg->parent()->createJob( msg );
+ if ( msg->tqparent() && !msg->isComplete() ) {
+ FolderJob *job = msg->tqparent()->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->parent() && msg->getMsgSerNum() &&
+ if ( msg && msg->tqparent() && msg->getMsgSerNum() &&
mUngetMsgs.tqcontains( msg ) ) {
int idx = -1;
KMFolder * p = 0;
KMMsgDict::instance()->getLocation( msg, &p, &idx );
- assert( p == msg->parent() ); assert( idx >= 0 );
+ assert( p == msg->tqparent() ); assert( idx >= 0 );
p->unGetMsg( idx );
p->close("kmcommand");
}
@@ -962,7 +962,7 @@ void KMSaveMsgCommand::slotSaveResult(KIO::Job *job)
if (job->error() == KIO::ERR_FILE_ALREADY_EXIST)
{
if (KMessageBox::warningContinueCancel(0,
- i18n("File %1 exists.\nDo you want to tqreplace it?")
+ i18n("File %1 exists.\nDo you want to replace it?")
.arg(mUrl.prettyURL()), i18n("Save to File"), i18n("&Replace"))
== KMessageBox::Continue) {
mOffset = 0;
@@ -993,9 +993,9 @@ void KMSaveMsgCommand::slotSaveResult(KIO::Job *job)
//-----------------------------------------------------------------------------
-KMOpenMsgCommand::KMOpenMsgCommand( TQWidget *parent, const KURL & url,
+KMOpenMsgCommand::KMOpenMsgCommand( TQWidget *tqparent, const KURL & url,
const TQString & encoding )
- : KMCommand( parent ),
+ : KMCommand( tqparent ),
mUrl( url ),
mEncoding( encoding )
{
@@ -1041,7 +1041,7 @@ void KMOpenMsgCommand::slotResult( KIO::Job *job )
else {
int startOfMessage = 0;
if ( mMsgString.compare( 0, 5, "From ", 5 ) == 0 ) {
- startOfMessage = mMsgString.find( '\n' );
+ startOfMessage = mMsgString.tqfind( '\n' );
if ( startOfMessage == -1 ) {
KMessageBox::sorry( tqparentWidget(),
i18n( "The file does not contain a message." ) );
@@ -1060,7 +1060,7 @@ void KMOpenMsgCommand::slotResult( KIO::Job *job )
}
// check for multiple messages in the file
bool multipleMessages = true;
- int endOfMessage = mMsgString.find( "\nFrom " );
+ int endOfMessage = mMsgString.tqfind( "\nFrom " );
if ( endOfMessage == -1 ) {
endOfMessage = mMsgString.length();
multipleMessages = false;
@@ -1090,7 +1090,7 @@ void KMOpenMsgCommand::slotResult( KIO::Job *job )
win->show();
if ( multipleMessages )
KMessageBox::information( win,
- i18n( "The file tqcontains multiple messages. "
+ i18n( "The file contains multiple messages. "
"Only the first message is shown." ) );
setResult( OK );
emit completed( this );
@@ -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 *parent, KMMessage *msg,
+KMReplyToCommand::KMReplyToCommand( TQWidget *tqparent, KMMessage *msg,
const TQString &selection )
- : KMCommand( parent, msg ), mSelection( selection )
+ : KMCommand( tqparent, msg ), mSelection( selection )
{
}
@@ -1125,9 +1125,9 @@ KMCommand::Result KMReplyToCommand::execute()
}
-KMNoQuoteReplyToCommand::KMNoQuoteReplyToCommand( TQWidget *parent,
+KMNoQuoteReplyToCommand::KMNoQuoteReplyToCommand( TQWidget *tqparent,
KMMessage *msg )
- : KMCommand( parent, msg )
+ : KMCommand( tqparent, msg )
{
}
@@ -1148,9 +1148,9 @@ KMCommand::Result KMNoQuoteReplyToCommand::execute()
}
-KMReplyListCommand::KMReplyListCommand( TQWidget *parent,
+KMReplyListCommand::KMReplyListCommand( TQWidget *tqparent,
KMMessage *msg, const TQString &selection )
- : KMCommand( parent, msg ), mSelection( selection )
+ : KMCommand( tqparent, msg ), mSelection( selection )
{
}
@@ -1171,9 +1171,9 @@ KMCommand::Result KMReplyListCommand::execute()
}
-KMReplyToAllCommand::KMReplyToAllCommand( TQWidget *parent,
+KMReplyToAllCommand::KMReplyToAllCommand( TQWidget *tqparent,
KMMessage *msg, const TQString &selection )
- :KMCommand( parent, msg ), mSelection( selection )
+ :KMCommand( tqparent, msg ), mSelection( selection )
{
}
@@ -1194,9 +1194,9 @@ KMCommand::Result KMReplyToAllCommand::execute()
}
-KMReplyAuthorCommand::KMReplyAuthorCommand( TQWidget *parent, KMMessage *msg,
+KMReplyAuthorCommand::KMReplyAuthorCommand( TQWidget *tqparent, KMMessage *msg,
const TQString &selection )
- : KMCommand( parent, msg ), mSelection( selection )
+ : KMCommand( tqparent, msg ), mSelection( selection )
{
}
@@ -1217,16 +1217,16 @@ KMCommand::Result KMReplyAuthorCommand::execute()
}
-KMForwardInlineCommand::KMForwardInlineCommand( TQWidget *parent,
+KMForwardInlineCommand::KMForwardInlineCommand( TQWidget *tqparent,
const TQPtrList<KMMsgBase> &msgList, uint identity )
- : KMCommand( parent, msgList ),
+ : KMCommand( tqparent, msgList ),
mIdentity( identity )
{
}
-KMForwardInlineCommand::KMForwardInlineCommand( TQWidget *parent,
+KMForwardInlineCommand::KMForwardInlineCommand( TQWidget *tqparent,
KMMessage *msg, uint identity )
- : KMCommand( parent, msg ),
+ : KMCommand( tqparent, msg ),
mIdentity( identity )
{
}
@@ -1290,16 +1290,16 @@ KMCommand::Result KMForwardInlineCommand::execute()
}
-KMForwardAttachedCommand::KMForwardAttachedCommand( TQWidget *parent,
+KMForwardAttachedCommand::KMForwardAttachedCommand( TQWidget *tqparent,
const TQPtrList<KMMsgBase> &msgList, uint identity, KMail::Composer *win )
- : KMCommand( parent, msgList ), mIdentity( identity ),
+ : KMCommand( tqparent, msgList ), mIdentity( identity ),
mWin( TQGuardedPtr<KMail::Composer>( win ))
{
}
-KMForwardAttachedCommand::KMForwardAttachedCommand( TQWidget *parent,
+KMForwardAttachedCommand::KMForwardAttachedCommand( TQWidget *tqparent,
KMMessage * msg, uint identity, KMail::Composer *win )
- : KMCommand( parent, msg ), mIdentity( identity ),
+ : KMCommand( tqparent, msg ), mIdentity( identity ),
mWin( TQGuardedPtr< KMail::Composer >( win ))
{
}
@@ -1353,16 +1353,16 @@ KMCommand::Result KMForwardAttachedCommand::execute()
}
-KMForwardDigestCommand::KMForwardDigestCommand( TQWidget *parent,
+KMForwardDigestCommand::KMForwardDigestCommand( TQWidget *tqparent,
const TQPtrList<KMMsgBase> &msgList, uint identity, KMail::Composer *win )
- : KMCommand( parent, msgList ), mIdentity( identity ),
+ : KMCommand( tqparent, msgList ), mIdentity( identity ),
mWin( TQGuardedPtr<KMail::Composer>( win ))
{
}
-KMForwardDigestCommand::KMForwardDigestCommand( TQWidget *parent,
+KMForwardDigestCommand::KMForwardDigestCommand( TQWidget *tqparent,
KMMessage * msg, uint identity, KMail::Composer *win )
- : KMCommand( parent, msg ), mIdentity( identity ),
+ : KMCommand( tqparent, msg ), mIdentity( identity ),
mWin( TQGuardedPtr< KMail::Composer >( win ))
{
}
@@ -1440,9 +1440,9 @@ KMCommand::Result KMForwardDigestCommand::execute()
return OK;
}
-KMRedirectCommand::KMRedirectCommand( TQWidget *parent,
+KMRedirectCommand::KMRedirectCommand( TQWidget *tqparent,
KMMessage *msg )
- : KMCommand( parent, msg )
+ : KMCommand( tqparent, msg )
{
}
@@ -1470,10 +1470,10 @@ KMCommand::Result KMRedirectCommand::execute()
}
-KMCustomReplyToCommand::KMCustomReplyToCommand( TQWidget *parent, KMMessage *msg,
+KMCustomReplyToCommand::KMCustomReplyToCommand( TQWidget *tqparent, KMMessage *msg,
const TQString &selection,
const TQString &tmpl )
- : KMCommand( parent, msg ), mSelection( selection ), mTemplate( tmpl )
+ : KMCommand( tqparent, msg ), mSelection( selection ), mTemplate( tmpl )
{
}
@@ -1495,10 +1495,10 @@ KMCommand::Result KMCustomReplyToCommand::execute()
}
-KMCustomReplyAllToCommand::KMCustomReplyAllToCommand( TQWidget *parent, KMMessage *msg,
+KMCustomReplyAllToCommand::KMCustomReplyAllToCommand( TQWidget *tqparent, KMMessage *msg,
const TQString &selection,
const TQString &tmpl )
- : KMCommand( parent, msg ), mSelection( selection ), mTemplate( tmpl )
+ : KMCommand( tqparent, msg ), mSelection( selection ), mTemplate( tmpl )
{
}
@@ -1520,16 +1520,16 @@ KMCommand::Result KMCustomReplyAllToCommand::execute()
}
-KMCustomForwardCommand::KMCustomForwardCommand( TQWidget *parent,
+KMCustomForwardCommand::KMCustomForwardCommand( TQWidget *tqparent,
const TQPtrList<KMMsgBase> &msgList, uint identity, const TQString &tmpl )
- : KMCommand( parent, msgList ),
+ : KMCommand( tqparent, msgList ),
mIdentity( identity ), mTemplate( tmpl )
{
}
-KMCustomForwardCommand::KMCustomForwardCommand( TQWidget *parent,
+KMCustomForwardCommand::KMCustomForwardCommand( TQWidget *tqparent,
KMMessage *msg, uint identity, const TQString &tmpl )
- : KMCommand( parent, msg ),
+ : KMCommand( tqparent, msg ),
mIdentity( identity ), mTemplate( tmpl )
{
}
@@ -1593,12 +1593,12 @@ KMCommand::Result KMCustomForwardCommand::execute()
}
-KMPrintCommand::KMPrintCommand( TQWidget *parent, KMMessage *msg,
+KMPrintCommand::KMPrintCommand( TQWidget *tqparent, KMMessage *msg,
const KMail::HeaderStyle *headerStyle,
const KMail::HeaderStrategy *headerStrategy,
bool htmlOverride, bool htmlLoadExtOverride,
bool useFixedFont, const TQString & encoding )
- : KMCommand( parent, msg ),
+ : KMCommand( tqparent, msg ),
mHeaderStyle( headerStyle ), mHeaderStrategy( headerStrategy ),
mHtmlOverride( htmlOverride ),
mHtmlLoadExtOverride( htmlLoadExtOverride ),
@@ -1639,9 +1639,9 @@ KMCommand::Result KMPrintCommand::execute()
}
-KMSeStatusCommand::KMSeStatusCommand( KMMsgStatus status,
+KMSeStatusCommand::KMSeStatusCommand( KMMsgtqStatus status,
const TQValueList<TQ_UINT32> &serNums, bool toggle )
- : mStatus( status ), mSerNums( serNums ), mToggle( toggle )
+ : mtqStatus( status ), mSerNums( serNums ), mToggle( toggle )
{
}
@@ -1650,19 +1650,19 @@ KMCommand::Result KMSeStatusCommand::execute()
TQValueListIterator<TQ_UINT32> it;
int idx = -1;
KMFolder *folder = 0;
- bool parenStatus = false;
+ bool tqparentqStatus = false;
// Toggle actions on threads toggle the whole thread
- // depending on the state of the parent.
+ // depending on the state of the tqparent.
if (mToggle) {
KMMsgBase *msg;
KMMsgDict::instance()->getLocation( *mSerNums.begin(), &folder, &idx );
if (folder) {
msg = folder->getMsgBase(idx);
- if (msg && (msg->status()&mStatus))
- parenStatus = true;
+ if (msg && (msg->status()&mtqStatus))
+ tqparentqStatus = true;
else
- parenStatus = false;
+ tqparentqStatus = false;
}
}
TQMap< KMFolder*, TQValueList<int> > folderMap;
@@ -1673,12 +1673,12 @@ KMCommand::Result KMSeStatusCommand::execute()
KMMsgBase *msg = folder->getMsgBase(idx);
// check if we are already at the target toggle state
if (msg) {
- bool myStatus;
- if (msg->status()&mStatus)
- myStatus = true;
+ bool mytqStatus;
+ if (msg->status()&mtqStatus)
+ mytqStatus = true;
else
- myStatus = false;
- if (myStatus != parenStatus)
+ mytqStatus = false;
+ if (mytqStatus != tqparentqStatus)
continue;
}
}
@@ -1690,7 +1690,7 @@ KMCommand::Result KMSeStatusCommand::execute()
TQMapIterator< KMFolder*, TQValueList<int> > it2 = folderMap.begin();
while ( it2 != folderMap.end() ) {
KMFolder *f = it2.key();
- f->seStatus( (*it2), mStatus, mToggle );
+ f->setqStatus( (*it2), mtqStatus, mToggle );
++it2;
}
//kapp->dcopClient()->emitDCOPSignal( "unreadCountChanged()", TQByteArray() );
@@ -1712,10 +1712,10 @@ KMCommand::Result KMFilterCommand::execute()
}
-KMFilterActionCommand::KMFilterActionCommand( TQWidget *parent,
+KMFilterActionCommand::KMFilterActionCommand( TQWidget *tqparent,
const TQPtrList<KMMsgBase> &msgList,
KMFilter *filter )
- : KMCommand( parent, msgList ), mFilter( filter )
+ : KMCommand( tqparent, msgList ), mFilter( filter )
{
TQPtrListIterator<KMMsgBase> it(msgList);
while ( it.current() ) {
@@ -1742,7 +1742,7 @@ KMCommand::Result KMFilterActionCommand::execute()
progressItem->updateProgress();
TQString statusMsg = i18n("Filtering message %1 of %2");
statusMsg = statusMsg.arg( msgCount ).arg( msgCountToFilter );
- KPIM::BroadcasStatus::instance()->seStatusMsg( statusMsg );
+ KPIM::BroadcastqStatus::instance()->seStatusMsg( statusMsg );
KApplication::kApplication()->eventLoop()->processEvents( TQEventLoop::ExcludeUserInput, 50 );
}
@@ -1821,9 +1821,9 @@ void FolderShortcutCommand::setAction( KAction* action )
mAction = action;
}
-KMMailingListFilterCommand::KMMailingListFilterCommand( TQWidget *parent,
+KMMailingListFilterCommand::KMMailingListFilterCommand( TQWidget *tqparent,
KMMessage *msg )
- : KMCommand( parent, msg )
+ : KMCommand( tqparent, msg )
{
}
@@ -1984,12 +1984,12 @@ KMCommand::Result KMCopyCommand::execute()
for (msgBase = mMsgList.first(); msgBase; msgBase = mMsgList.next() )
{
- KMFolder *srcFolder = msgBase->parent();
+ KMFolder *srcFolder = msgBase->tqparent();
if (( isMessage = msgBase->isMessage() ))
{
msg = static_cast<KMMessage*>(msgBase);
} else {
- idx = srcFolder->find(msgBase);
+ idx = srcFolder->tqfind(msgBase);
assert(idx != -1);
msg = srcFolder->getMsg(idx);
// corrupt IMAP cache, see FolderStorage::getMsg()
@@ -2015,12 +2015,12 @@ KMCommand::Result KMCopyCommand::execute()
// make sure the attachment state is only calculated when it's complete
if (!newMsg->isComplete())
newMsg->setReadyToShow(false);
- newMsg->seStatus(msg->status());
+ newMsg->setqStatus(msg->status());
if (srcFolder && !newMsg->isComplete())
{
// imap => others
- newMsg->setParent(msg->parent());
+ newMsg->setParent(msg->tqparent());
FolderJob *job = srcFolder->createJob(newMsg);
job->setCancellable( false );
mPendingJobs << job;
@@ -2307,7 +2307,7 @@ void KMMoveCommand::slotImapFolderCompleted(KMFolderImap* imapFolder, bool succe
void KMMoveCommand::slotMsgAddedToDestFolder(KMFolder *folder, TQ_UINT32 serNum)
{
- if ( folder != mDestFolder || mLostBoys.find( serNum ) == mLostBoys.end() ) {
+ if ( folder != mDestFolder || mLostBoys.tqfind( serNum ) == mLostBoys.end() ) {
//kdDebug(5006) << "KMMoveCommand::msgAddedToDestFolder different "
// "folder or invalid serial number." << endl;
return;
@@ -2421,7 +2421,7 @@ KMCommand::Result KMUrlClickedCommand::execute()
TQString query=mUrl.query();
while (!query.isEmpty()) {
TQString queryPart;
- int secondQuery = query.find('?',1);
+ int secondQuery = query.tqfind('?',1);
if (secondQuery != -1)
queryPart = query.left(secondQuery);
else
@@ -2453,7 +2453,7 @@ KMCommand::Result KMUrlClickedCommand::execute()
(mUrl.protocol() == "smb") || (mUrl.protocol() == "fish") ||
(mUrl.protocol() == "news"))
{
- KPIM::BroadcasStatus::instance()->seStatusMsg( i18n("Opening URL..."));
+ KPIM::BroadcastqStatus::instance()->seStatusMsg( i18n("Opening URL..."));
KMimeType::Ptr mime = KMimeType::findByURL( mUrl );
if (mime->name() == "application/x-desktop" ||
mime->name() == "application/x-executable" ||
@@ -2461,7 +2461,7 @@ KMCommand::Result KMUrlClickedCommand::execute()
mime->name() == "application/x-shellscript" )
{
if (KMessageBox::warningYesNo( 0, i18n( "<qt>Do you really want to execute <b>%1</b>?</qt>" )
- .arg( mUrl.prettyURL() ), TQString::null, i18n("Execute"), KStdGuiItem::cancel() ) != KMessageBox::Yes)
+ .arg( mUrl.prettyURL() ), TQString(), i18n("Execute"), KStdGuiItem::cancel() ) != KMessageBox::Yes)
return Canceled;
}
KRun * runner = new KRun( mUrl );
@@ -2473,19 +2473,19 @@ KMCommand::Result KMUrlClickedCommand::execute()
return OK;
}
-KMSaveAttachmentsCommand::KMSaveAttachmentsCommand( TQWidget *parent, KMMessage *msg )
- : KMCommand( parent, msg ), mImplicitAttachments( true ), mEncoded( false )
+KMSaveAttachmentsCommand::KMSaveAttachmentsCommand( TQWidget *tqparent, KMMessage *msg )
+ : KMCommand( tqparent, msg ), mImplicitAttachments( true ), mEncoded( false )
{
}
-KMSaveAttachmentsCommand::KMSaveAttachmentsCommand( TQWidget *parent, const TQPtrList<KMMsgBase>& msgs )
- : KMCommand( parent, msgs ), mImplicitAttachments( true ), mEncoded( false )
+KMSaveAttachmentsCommand::KMSaveAttachmentsCommand( TQWidget *tqparent, const TQPtrList<KMMsgBase>& msgs )
+ : KMCommand( tqparent, msgs ), mImplicitAttachments( true ), mEncoded( false )
{
}
-KMSaveAttachmentsCommand::KMSaveAttachmentsCommand( TQWidget *parent, TQPtrList<partNode>& attachments,
+KMSaveAttachmentsCommand::KMSaveAttachmentsCommand( TQWidget *tqparent, TQPtrList<partNode>& attachments,
KMMessage *msg, bool encoded )
- : KMCommand( parent ), mImplicitAttachments( false ), mEncoded( encoded )
+ : KMCommand( tqparent ), mImplicitAttachments( false ), mEncoded( encoded )
{
for ( TQPtrListIterator<partNode> it( attachments ); it.current(); ++it ) {
mAttachmentMap.insert( it.current(), msg );
@@ -2534,7 +2534,7 @@ void KMSaveAttachmentsCommand::slotSaveAll()
// considered attachments
if ( it.key()->msgPart().fileName().stripWhiteSpace().isEmpty() &&
( it.key()->msgPart().name().stripWhiteSpace().isEmpty() ||
- !it.key()->parentNode() ) ) {
+ !it.key()->tqparentNode() ) ) {
PartNodeMessageMap::iterator delIt = it;
++it;
mAttachmentMap.remove( delIt );
@@ -2554,7 +2554,7 @@ void KMSaveAttachmentsCommand::slotSaveAll()
KURL url, dirUrl;
if ( mAttachmentMap.count() > 1 ) {
// get the dir
- dirUrl = KDirSelectDialog::selectDirectory( TQString::null, false,
+ dirUrl = KDirSelectDialog::selectDirectory( TQString(), false,
tqparentWidget(),
i18n("Save Attachments To") );
if ( !dirUrl.isValid() ) {
@@ -2570,15 +2570,15 @@ void KMSaveAttachmentsCommand::slotSaveAll()
else {
// only one item, get the desired filename
partNode *node = mAttachmentMap.begin().key();
- // tqreplace all ':' with '_' because ':' isn't allowed on FAT volumes
+ // replace all ':' with '_' because ':' isn't allowed on FAT volumes
TQString s =
node->msgPart().fileName().stripWhiteSpace().tqreplace( ':', '_' );
if ( s.isEmpty() )
s = node->msgPart().name().stripWhiteSpace().tqreplace( ':', '_' );
if ( s.isEmpty() )
s = i18n("filename for an unnamed attachment", "attachment.1");
- url = KFileDialog::getSaveURL( s, TQString::null, tqparentWidget(),
- TQString::null );
+ url = KFileDialog::getSaveURL( s, TQString(), tqparentWidget(),
+ TQString() );
if ( url.isEmpty() ) {
setResult( Canceled );
emit completed( this );
@@ -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()->disregardUmask() )
+ if ( GlobalSettings::self()->disregardUtqmask() )
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()->parent();
+ KMFolder* curFolder = it.data()->tqparent();
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 parent" << endl;
+ kdWarning(5006) << "KMLoadPartsCommand - msg has no tqparent" << endl;
}
}
if ( mNeedsRetrieval == 0 )
@@ -2860,9 +2860,9 @@ KMCommand::Result KMLoadPartsCommand::execute()
return OK;
}
-KMResendMessageCommand::KMResendMessageCommand( TQWidget *parent,
+KMResendMessageCommand::KMResendMessageCommand( TQWidget *tqparent,
KMMessage *msg )
- :KMCommand( parent, msg )
+ :KMCommand( tqparent, msg )
{
}
@@ -2892,8 +2892,8 @@ KMCommand::Result KMResendMessageCommand::execute()
return OK;
}
-KMMailingListCommand::KMMailingListCommand( TQWidget *parent, KMFolder *folder )
- : KMCommand( parent ), mFolder( folder )
+KMMailingListCommand::KMMailingListCommand( TQWidget *tqparent, KMFolder *folder )
+ : KMCommand( tqparent ), mFolder( folder )
{
}
@@ -2931,8 +2931,8 @@ void KMMailingListCommand::commandCompleted( KMCommand *command )
deleteLater();
}
-KMMailingListPostCommand::KMMailingListPostCommand( TQWidget *parent, KMFolder *folder )
- : KMMailingListCommand( parent, folder )
+KMMailingListPostCommand::KMMailingListPostCommand( TQWidget *tqparent, KMFolder *folder )
+ : KMMailingListCommand( tqparent, folder )
{
}
KURL::List KMMailingListPostCommand::urls() const
@@ -2940,8 +2940,8 @@ KURL::List KMMailingListPostCommand::urls() const
return mFolder->mailingList().postURLS();
}
-KMMailingListSubscribeCommand::KMMailingListSubscribeCommand( TQWidget *parent, KMFolder *folder )
- : KMMailingListCommand( parent, folder )
+KMMailingListSubscribeCommand::KMMailingListSubscribeCommand( TQWidget *tqparent, KMFolder *folder )
+ : KMMailingListCommand( tqparent, folder )
{
}
KURL::List KMMailingListSubscribeCommand::urls() const
@@ -2949,8 +2949,8 @@ KURL::List KMMailingListSubscribeCommand::urls() const
return mFolder->mailingList().subscribeURLS();
}
-KMMailingListUnsubscribeCommand::KMMailingListUnsubscribeCommand( TQWidget *parent, KMFolder *folder )
- : KMMailingListCommand( parent, folder )
+KMMailingListUnsubscribeCommand::KMMailingListUnsubscribeCommand( TQWidget *tqparent, KMFolder *folder )
+ : KMMailingListCommand( tqparent, folder )
{
}
KURL::List KMMailingListUnsubscribeCommand::urls() const
@@ -2958,8 +2958,8 @@ KURL::List KMMailingListUnsubscribeCommand::urls() const
return mFolder->mailingList().unsubscribeURLS();
}
-KMMailingListArchivesCommand::KMMailingListArchivesCommand( TQWidget *parent, KMFolder *folder )
- : KMMailingListCommand( parent, folder )
+KMMailingListArchivesCommand::KMMailingListArchivesCommand( TQWidget *tqparent, KMFolder *folder )
+ : KMMailingListCommand( tqparent, folder )
{
}
KURL::List KMMailingListArchivesCommand::urls() const
@@ -2967,8 +2967,8 @@ KURL::List KMMailingListArchivesCommand::urls() const
return mFolder->mailingList().archiveURLS();
}
-KMMailingListHelpCommand::KMMailingListHelpCommand( TQWidget *parent, KMFolder *folder )
- : KMMailingListCommand( parent, folder )
+KMMailingListHelpCommand::KMMailingListHelpCommand( TQWidget *tqparent, KMFolder *folder )
+ : KMMailingListCommand( tqparent, folder )
{
}
KURL::List KMMailingListHelpCommand::urls() const
@@ -2987,7 +2987,7 @@ KMCommand::Result KMIMChatCommand::execute()
TQString addr = KMMessage::decodeMailtoUrl( mUrl.path() );
// find UID for mail address
KABC::AddressBook *addressBook = KABC::StdAddressBook::self( true );
- KABC::AddresseeList addressees = addressBook->tqfindByEmail( KPIM::getEmailAddress( addr ) ) ;
+ KABC::AddresseeList addressees = addressBook->findByEmail( KPIM::getEmailAddress( addr ) ) ;
// start chat
if( addressees.count() == 1 ) {
@@ -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* parent )
-: KMCommand( parent ), mNode( node ), mMsg( msg ), mAtmId( atmId ), mAtmName( atmName ),
+ AttachmentAction action, KService::Ptr offer, TQWidget* tqparent )
+: KMCommand( tqparent ), mNode( node ), mMsg( msg ), mAtmId( atmId ), mAtmName( atmName ),
mAction( action ), mOffer( offer ), mJob( 0 )
{
}
@@ -3109,7 +3109,7 @@ TQString KMHandleAttachmentCommand::createAtmFileLink() const
if ( ::link(TQFile::encodeName( mAtmName ), TQFile::encodeName( linkName )) == 0 ) {
return linkName; // success
}
- return TQString::null;
+ return TQString();
}
KService::Ptr KMHandleAttachmentCommand::getServiceOffer()
@@ -3128,13 +3128,13 @@ KService::Ptr KMHandleAttachmentCommand::getServiceOffer()
mimetype = KMimeType::mimeType( contentTypeStr );
if ( mimetype->name() == "application/octet-stream" ) {
// consider the filename if Content-Type is application/octet-stream
- mimetype = KMimeType::tqfindByPath( mAtmName, 0, true /* no disk access */ );
+ mimetype = KMimeType::findByPath( mAtmName, 0, true /* no disk access */ );
}
if ( ( mimetype->name() == "application/octet-stream" )
&& msgPart.isComplete() ) {
// consider the attachment's contents if neither the Content-Type header
// nor the filename give us a clue
- mimetype = KMimeType::tqfindByFileContent( mAtmName );
+ mimetype = KMimeType::findByFileContent( mAtmName );
}
return KServiceTypeProfile::preferredService( mimetype->name(), "Application" );
}
@@ -3325,7 +3325,7 @@ void KMHandleAttachmentCommand::slotAtmDecryptWithChiasmusResult( const GpgME::E
return;
}
- const KURL url = KFileDialog::getSaveURL( chomp( mAtmName, ".xia", false ), TQString::null, tqparentWidget() );
+ const KURL url = KFileDialog::getSaveURL( chomp( mAtmName, ".xia", false ), TQString(), tqparentWidget() );
if ( url.isEmpty() )
return;
@@ -3349,15 +3349,15 @@ void KMHandleAttachmentCommand::slotAtmDecryptWithChiasmusUploadResult( KIO::Job
}
-AttachmentModifyCommand::AttachmentModifyCommand(partNode * node, KMMessage * msg, TQWidget * parent) :
- KMCommand( parent, msg ),
+AttachmentModifyCommand::AttachmentModifyCommand(partNode * node, KMMessage * msg, TQWidget * tqparent) :
+ KMCommand( tqparent, msg ),
mPartIndex( node->nodeId() ),
mSernum( 0 )
{
}
-AttachmentModifyCommand::AttachmentModifyCommand( int nodeId, KMMessage *msg, TQWidget *parent )
- : KMCommand( parent, msg ),
+AttachmentModifyCommand::AttachmentModifyCommand( int nodeId, KMMessage *msg, TQWidget *tqparent )
+ : KMCommand( tqparent, msg ),
mPartIndex( nodeId ),
mSernum( 0 )
{
@@ -3374,7 +3374,7 @@ KMCommand::Result AttachmentModifyCommand::execute()
return Failed;
mSernum = msg->getMsgSerNum();
- mFolder = msg->parent();
+ mFolder = msg->tqparent();
if ( !mFolder || !mFolder->storage() )
return Failed;
@@ -3427,14 +3427,14 @@ void AttachmentModifyCommand::messageDeleteResult(KMCommand * cmd)
deleteLater();
}
-KMDeleteAttachmentCommand::KMDeleteAttachmentCommand(partNode * node, KMMessage * msg, TQWidget * parent) :
- AttachmentModifyCommand( node, msg, parent )
+KMDeleteAttachmentCommand::KMDeleteAttachmentCommand(partNode * node, KMMessage * msg, TQWidget * tqparent) :
+ AttachmentModifyCommand( node, msg, tqparent )
{
kdDebug(5006) << k_funcinfo << endl;
}
-KMDeleteAttachmentCommand::KMDeleteAttachmentCommand( int nodeId, KMMessage *msg, TQWidget *parent )
- : AttachmentModifyCommand( nodeId, msg, parent )
+KMDeleteAttachmentCommand::KMDeleteAttachmentCommand( int nodeId, KMMessage *msg, TQWidget *tqparent )
+ : AttachmentModifyCommand( nodeId, msg, tqparent )
{
kdDebug(5006) << k_funcinfo << endl;
}
@@ -3452,22 +3452,22 @@ KMCommand::Result KMDeleteAttachmentCommand::doAttachmentModify()
KMMessage *newMsg = new KMMessage();
newMsg->fromDwString( msg->asDwString() );
- newMsg->seStatus( msg->status() );
+ newMsg->setqStatus( msg->status() );
storeChangedMessage( newMsg );
return OK;
}
-KMEditAttachmentCommand::KMEditAttachmentCommand(partNode * node, KMMessage * msg, TQWidget * parent) :
- AttachmentModifyCommand( node, msg, parent )
+KMEditAttachmentCommand::KMEditAttachmentCommand(partNode * node, KMMessage * msg, TQWidget * tqparent) :
+ AttachmentModifyCommand( node, msg, tqparent )
{
kdDebug(5006) << k_funcinfo << endl;
mTempFile.setAutoDelete( true );
}
-KMEditAttachmentCommand::KMEditAttachmentCommand( int nodeId, KMMessage *msg, TQWidget *parent )
- : AttachmentModifyCommand( nodeId, msg, parent )
+KMEditAttachmentCommand::KMEditAttachmentCommand( int nodeId, KMMessage *msg, TQWidget *tqparent )
+ : AttachmentModifyCommand( nodeId, msg, tqparent )
{
kdDebug(5006) << k_funcinfo << endl;
mTempFile.setAutoDelete( true );
@@ -3529,28 +3529,28 @@ void KMEditAttachmentCommand::editDone(KMail::EditorWatcher * watcher)
DwBodyPart *dwpart = msg->findPart( mPartIndex );
KMMessage::bodyPart( dwpart, &part, true );
- DwBody *parentNode = dynamic_cast<DwBody*>( dwpart->Parent() );
- assert( parentNode );
- parentNode->RemoveBodyPart( dwpart );
+ DwBody *tqparentNode = dynamic_cast<DwBody*>( dwpart->Parent() );
+ assert( tqparentNode );
+ tqparentNode->RemoveBodyPart( dwpart );
KMMessagePart att;
att.duplicate( part );
att.setBodyEncodedBinary( data );
DwBodyPart* newDwPart = msg->createDWBodyPart( &att );
- parentNode->AddBodyPart( newDwPart );
+ tqparentNode->AddBodyPart( newDwPart );
msg->getTopLevelPart()->Assemble();
KMMessage *newMsg = new KMMessage();
newMsg->fromDwString( msg->asDwString() );
- newMsg->seStatus( msg->status() );
+ newMsg->setqStatus( msg->status() );
storeChangedMessage( newMsg );
}
-CreateTodoCommand::CreateTodoCommand(TQWidget * parent, KMMessage * msg)
- : KMCommand( parent, msg )
+CreateTodoCommand::CreateTodoCommand(TQWidget * tqparent, KMMessage * msg)
+ : KMCommand( tqparent, msg )
{
}