20 #ifndef KIMAP_FETCHJOB_H
21 #define KIMAP_FETCHJOB_H
23 #include "kimap_export.h"
28 #include "kmime/kmime_content.h"
29 #include "kmime/kmime_message.h"
31 #include <boost/shared_ptr.hpp>
37 class FetchJobPrivate;
39 typedef boost::shared_ptr<KMime::Content> ContentPtr;
40 typedef QMap<QByteArray, ContentPtr> MessageParts;
42 typedef boost::shared_ptr<KMime::Message> MessagePtr;
43 typedef QList<QByteArray> MessageFlags;
61 friend class SessionPrivate;
153 explicit FetchJob( Session *session );
164 void setSequenceSet(
const ImapSet &set );
177 void setUidBased(
bool uidBased);
185 bool isUidBased()
const;
203 KDE_DEPRECATED QMap<qint64, MessagePtr> messages()
const;
205 KDE_DEPRECATED QMap<qint64, MessageParts> parts()
const;
207 KDE_DEPRECATED QMap<qint64, MessageFlags> flags()
const;
209 KDE_DEPRECATED QMap<qint64, qint64> sizes()
const;
211 KDE_DEPRECATED QMap<qint64, qint64> uids()
const;
244 void headersReceived(
const QString &mailBox,
245 const QMap<qint64, qint64> &uids,
246 const QMap<qint64, qint64> &sizes,
247 const QMap<qint64, KIMAP::MessageFlags> &flags,
248 const QMap<qint64, KIMAP::MessagePtr> &messages );
268 void messagesReceived(
const QString &mailBox,
269 const QMap<qint64, qint64> &uids,
270 const QMap<qint64, KIMAP::MessagePtr> &messages );
289 void partsReceived(
const QString &mailBox,
290 const QMap<qint64, qint64> &uids,
291 const QMap<qint64, KIMAP::MessageParts> &parts );
294 virtual void doStart();
295 virtual void handleResponse(
const Message &response);
298 Q_PRIVATE_SLOT( d_func(),
void emitPendings() )
Used to indicate what message data should be fetched.
Fetch the message content (the UID is also fetched)
QList< QByteArray > parts
Specify which message parts to operate on.
Fetch RFC-2822 or MIME message headers.
Fetch message data from the server.
Fetch the complete message.
Mode mode
Specify what message data should be fetched.
Represents a set of natural numbers (1-> ) in a as compact as possible form.
Fetch the MIME message body structure (the UID is also fetched)
Fetch the message flags (the UID is also fetched)
Mode
Used to indicate what part of the message should be fetched.