KIMAP Library
getmetadatajob.cpp
35 GetMetaDataJobPrivate( Session *session, const QString& name ) : MetaDataJobBasePrivate( session, name ), maxSize( -1 ), depth( "0" ) { }
128 //TODO: handle NO error messages having [METADATA MAXSIZE NNN], [METADATA TOOMANY], [METADATA NOPRIVATE] (see rfc5464)
133 QString mailBox = QString::fromUtf8( KIMAP::decodeImapFolderName( response.content[2].toString() ) );
147 QString mailBox = QString::fromUtf8( KIMAP::decodeImapFolderName( response.content[2].toString() ) );
203 QByteArray GetMetaDataJob::metaData(const QString &mailBox, const QByteArray &entry, const QByteArray &attribute) const
225 return d->metadata.value( d->mailBox ).value( d->removePrefix(entry) ).value( d->getAttribute( entry ) );
228 QMap<QByteArray, QMap<QByteArray, QByteArray> > GetMetaDataJob::allMetaData(const QString &mailBox) const
This file is part of the IMAP support library and defines the RfcCodecs class.
KIMAP_DEPRECATED QByteArray metaData(const QString &mailBox, const QByteArray &entry, const QByteArray &attribute=QByteArray()) const
Get a single metadata entry.
Definition: getmetadatajob.cpp:203
Used to indicate that the server supports the draft-daboo-imap-annotatemore-07 version of the extensi...
Definition: metadatajobbase.h:75
bool isNull() const
bool isEmpty() const
The requested entries and all their direct children.
Definition: getmetadatajob.h:77
int length() const
int size() const
QList< Key > keys() const
QString fromUtf8(const char *str, int size)
QByteArray number(int n, int base)
void truncate(int pos)
KIMAP_DEPRECATED void addEntry(const QByteArray &entry, const QByteArray &attribute=QByteArray())
Add an entry to the query list.
Definition: getmetadatajob.cpp:164
void addRequestedEntry(const QByteArray &entry)
Add an entry to the query list.
Definition: getmetadatajob.cpp:174
QMap< QByteArray, QByteArray > allMetaData() const
Get all the metadata.
Definition: getmetadatajob.cpp:234
void setMaximumSize(qint64 size)
Limits the size of returned metadata entries.
Definition: getmetadatajob.cpp:181
Base class for jobs that operate on mailbox metadata.
Definition: metadatajobbase.h:47
void setDepth(Depth depth)
Sets whether to retrieve children or descendants of the requested entries.
Definition: getmetadatajob.cpp:187
The requested entries and all their descendants.
Definition: getmetadatajob.h:78
Used to indicate that the server supports the RFC 5464 version of the extension.
Definition: metadatajobbase.h:68
iterator insert(const Key &key, const T &value)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.