34 #include "maildirjob.h"
36 #include "kmfoldermaildir.h"
39 #include <tdeapplication.h>
43 #include <tqdatetime.h>
50 : FolderJob( msg, jt, folder ), mParentFolder( 0 )
55 MaildirJob::MaildirJob( TQPtrList<KMMessage>& msgList, const TQString& sets,
57 : FolderJob( msgList, sets, jt, folder ), mParentFolder( 0 )
62 MaildirJob::~MaildirJob()
67 void MaildirJob::setParentFolder( const KMFolderMaildir* parent )
69 mParentFolder = const_cast<KMFolderMaildir* >( parent );
75 void MaildirJob::execute()
77 TQTimer::singleShot( 0, this, TQ_SLOT(startJob()) );
81 void MaildirJob::startJob()
89 emit messageRetrieved( msg );
95 static_cast<KMFolder* >(mParentFolder->folder())->removeMsg( mMsgList );
100 mParentFolder-> addMsg( mMsgList.first() );
101 emit messageStored( mMsgList.first() );
108 kdDebug(5006)<<k_funcinfo<< "### Serious problem! "<<endl;
120 #include "maildirjob.moc"
int addMsg(KMMessage *msg, int *index_return=0) Add the given message to the folder.
void setComplete(bool v) Set if the message is a complete message.
|