KIMAP Library
20 #ifndef KIMAP_IMAPSET_H
21 #define KIMAP_IMAPSET_H
23 #include "kimap_export.h"
25 #include <QtCore/QByteArray>
26 #include <QtCore/QDebug>
27 #include <QtCore/QList>
28 #include <QtCore/QMetaType>
29 #include <QtCore/QSharedDataPointer>
48 typedef QList<ImapInterval>
List;
91 bool hasDefinedBegin()
const;
102 bool hasDefinedEnd()
const;
113 void setBegin(
Id value );
118 void setEnd(
Id value );
123 QByteArray toImapSequence()
const;
128 static ImapInterval fromImapSequence(
const QByteArray &sequence );
132 QSharedDataPointer<Private> d;
181 bool operator==(
const ImapSet &other )
const;
189 void add(
Id value );
197 void add(
const QList<Id> &values );
209 QByteArray toImapSequenceSet()
const;
214 static ImapSet fromImapSequenceSet(
const QByteArray &sequence );
224 bool isEmpty()
const;
228 QSharedDataPointer<Private> d;
234 KIMAP_EXPORT QDebug& operator<<( QDebug& d,
const KIMAP::ImapSet &set );
237 Q_DECLARE_METATYPE( KIMAP::ImapInterval::List )
238 Q_DECLARE_METATYPE( KIMAP::ImapSet )
Represents a single interval in an ImapSet.
Represents a set of natural numbers (1-> ) in a as compact as possible form.
QList< ImapInterval > List
A list of ImapInterval objects.
qint64 Id
Describes the ids stored in the interval.
qint64 Id
Describes the ids stored in the set.
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:08 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.