KIMAP Library
KIMAP::ImapSet Class Reference
Represents a set of natural numbers (1->
#include <imapset.h>
Public Types | |
typedef qint64 | Id |
Public Member Functions | |
void | add (const ImapInterval &interval) |
void | add (const QList< Id > &values) |
ImapSet (const ImapSet &other) | |
ImapSet (Id value) | |
ImapSet (Id begin, Id end) | |
ImapSet () | |
ImapInterval::List | intervals () const |
bool | isEmpty () const |
ImapSet & | operator= (const ImapSet &other) |
QByteArray | toImapSequenceSet () const |
~ImapSet () |
Detailed Description
Represents a set of natural numbers (1->
Used to address Akonadi items via the IMAP protocol or in the database. This class is implicitly shared.
Definition at line 135 of file imapset.h.
Member Typedef Documentation
typedef qint64 KIMAP::ImapSet::Id |
Constructor & Destructor Documentation
ImapSet::ImapSet | ( | ) |
ImapSet::ImapSet | ( | Id | value | ) | [explicit] |
ImapSet::ImapSet | ( | const ImapSet & | other | ) |
ImapSet::~ImapSet | ( | ) |
Member Function Documentation
void ImapSet::add | ( | const ImapInterval & | interval | ) |
Adds the given ImapInterval to this set.
No interval merging is performed.
Definition at line 207 of file imapset.cpp.
void ImapSet::add | ( | const QList< Id > & | values | ) |
Adds the given list of positive integer numbers to the set.
The list is sorted and splitted into as large as possible intervals. No interval merging is performed.
- Parameters:
-
values List of positive integer numbers in arbitrary order
Definition at line 184 of file imapset.cpp.
ImapInterval::List ImapSet::intervals | ( | ) | const |
bool ImapSet::isEmpty | ( | ) | const |
QByteArray ImapSet::toImapSequenceSet | ( | ) | const |
Returns a IMAP-compatible QByteArray representation of this set.
Definition at line 212 of file imapset.cpp.
The documentation for this class was generated from the following files: