imapjob.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032 #ifndef IMAPJOB_H
00033 #define IMAPJOB_H
00034
00035 #include <kio/job.h>
00036 #include <kio/global.h>
00037
00038 #include "folderjob.h"
00039
00040 #include <qcstring.h>
00041
00042 class KMAcctImap;
00043 class KMMessage;
00044 class KMFolderTreeItem;
00045 class KMFolderImap;
00046
00047 namespace KMail {
00048
00049 class AttachmentStrategy;
00050
00051 class ImapJob : public FolderJob
00052 {
00053 Q_OBJECT
00054 friend class KMAcctImap;
00055
00056 public:
00057 ImapJob( KMMessage *msg, JobType jt = tGetMessage, KMFolderImap *folder = 0,
00058 QString partSpecifier = QString::null, const AttachmentStrategy *as = 0 );
00059 ImapJob( QPtrList<KMMessage>& msgList, QString sets,
00060 JobType jt = tGetMessage, KMFolderImap *folder = 0 );
00061 virtual ~ImapJob();
00062
00063 private slots:
00064 void slotGetMessageResult( KIO::Job * job );
00065 void slotGetBodyStructureResult( KIO::Job * job );
00066 void slotGetNextMessage();
00068 void slotPutMessageDataReq( KIO::Job *job, QByteArray &data );
00069 void slotPutMessageResult( KIO::Job *job );
00070 void slotPutMessageInfoData(KIO::Job *, const QString &data);
00072 void slotCopyMessageResult( KIO::Job *job );
00073 void slotCopyMessageInfoData( KIO::Job *, const QString &data );
00074 private:
00075 void execute();
00076 void expireMessages();
00077 void init( JobType jt, QString sets, KMFolderImap *folder,
00078 QPtrList<KMMessage>& msgList );
00079 KIO::Job *mJob;
00080 QByteArray mData;
00081 int mTotal, mDone, mOffset;
00082 const AttachmentStrategy *mAttachmentStrategy;
00083 };
00084
00085 }
00086
00087
00088 #endif
This file is part of the documentation for kmail Library Version 3.2.2.