KIMAP2
21#ifndef KIMAP2_FETCHJOB_H
22#define KIMAP2_FETCHJOB_H
24#include "kimap2_export.h"
29#include <kmime/kmime_content.h>
30#include <kmime/kmime_message.h>
39typedef QSharedPointer<KMime::Content> ContentPtr;
40typedef QMap<QByteArray, ContentPtr> MessageParts;
42typedef QSharedPointer<KMime::Message> MessagePtr;
43typedef QList<QByteArray> MessageFlags;
45typedef QPair<QByteArray, QVariant> MessageAttribute;
46typedef QList<MessageAttribute> MessageAttributes;
59class KIMAP2_EXPORT FetchJob :
public Job
62 Q_DECLARE_PRIVATE(FetchJob)
64 friend class SessionPrivate;
74 class KIMAP2_EXPORT FetchScope
186 class KIMAP2_EXPORT Result
189 qint64 sequenceNumber;
192 KIMAP2::MessageFlags flags;
193 KIMAP2::MessagePtr message;
194 KIMAP2::MessageParts parts;
195 KIMAP2::MessageAttributes attributes;
198 explicit FetchJob(Session *session);
209 void setSequenceSet(
const ImapSet &set);
222 void setUidBased(
bool uidBased);
230 bool isUidBased()
const;
240 void setScope(
const FetchScope &scope);
244 FetchScope scope()
const;
249 void setAvoidParsing(
bool);
252 void resultReceived(
const Result &);
255 void doStart() Q_DECL_OVERRIDE;
256 void handleResponse(const Message &response) Q_DECL_OVERRIDE;
QList< QByteArray > parts
Specify which message parts to operate on.
Mode mode
Specify what message data should be fetched.
quint64 changedSince
Specify to fetch only items with mod-sequence higher then changedSince.
Mode
Used to indicate what part of the message should be fetched.
@ Full
Fetch the complete message.
@ Headers
Fetch RFC-2822 or MIME message headers.
@ Flags
Fetch the message flags (the UID is also fetched)
@ Content
Fetch the message content (the UID is also fetched)
@ FullHeaders
Fetch message size (in octets), internal date of the message, flags, UID and all RFC822 headers.
@ HeaderAndContent
Fetch the message MIME headers and the content of parts specified in the parts field.
@ Structure
Fetch the MIME message body structure (the UID is also fetched)
bool gmailExtensionsEnabled
Enables retrieving of Gmail-specific extensions.
Fetch message data from the server.
Represents a set of natural numbers (1->∞) in a as compact as possible form.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 31 2025 12:10:33 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.