35 #include <tdeio/job.h>
36 #include <tdeio/global.h>
38 #include "folderjob.h"
40 #include <tqcstring.h>
44 class KMFolderTreeItem;
52 class AttachmentStrategy;
54 class ImapJob :
public FolderJob
58 friend class ::KMAcctImap;
61 ImapJob(
KMMessage *msg, JobType jt = tGetMessage, KMFolderImap *folder = 0,
62 TQString partSpecifier = TQString(),
const AttachmentStrategy *as = 0 );
63 ImapJob( TQPtrList<KMMessage>& msgList, TQString sets,
64 JobType jt = tGetMessage, KMFolderImap *folder = 0 );
67 void setParentFolder(
const KMFolderImap* parent );
68 KPIM::ProgressItem* parentProgressItem()
const {
return mParentProgressItem; }
69 void setParentProgressItem( KPIM::ProgressItem *p ) { mParentProgressItem = p; }
72 void slotGetMessageResult( TDEIO::Job * job );
73 void slotGetBodyStructureResult( TDEIO::Job * job );
74 void slotGetNextMessage();
76 void slotPutMessageDataReq( TDEIO::Job *job, TQByteArray &data );
77 void slotPutMessageResult( TDEIO::Job *job );
78 void slotPutMessageInfoData(TDEIO::Job *,
const TQString &data);
80 void slotCopyMessageResult( TDEIO::Job *job );
81 void slotCopyMessageInfoData( TDEIO::Job *,
const TQString &data );
82 void slotProcessedSize( TDEIO::Job *, TDEIO::filesize_t processed );
86 void init( JobType jt, TQString sets, KMFolderImap *folder,
87 TQPtrList<KMMessage>& msgList );
90 const AttachmentStrategy *mAttachmentStrategy;
91 KMFolderImap *mParentFolder;
92 KPIM::ProgressItem *mParentProgressItem;