• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

KIMAP Library

KIMAP::ImapSet

KIMAP::ImapSet Class Reference

Represents a set of natural numbers (1->$\infty$) in a as compact as possible form. More...

#include <imapset.h>

List of all members.


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->$\infty$) in a as compact as possible form.

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

Describes the ids stored in the set.

Definition at line 141 of file imapset.h.


Constructor & Destructor Documentation

ImapSet::ImapSet (  ) 

Constructs an empty set.

Definition at line 151 of file imapset.cpp.

ImapSet::ImapSet ( Id  begin,
Id  end 
)

Constructs a set containing a single interval.

Definition at line 156 of file imapset.cpp.

ImapSet::ImapSet ( Id  value  )  [explicit]

Constructs a set containing a single value.

Definition at line 162 of file imapset.cpp.

ImapSet::ImapSet ( const ImapSet &  other  ) 

Copy constructor.

Definition at line 168 of file imapset.cpp.

ImapSet::~ImapSet (  ) 

Destructor.

Definition at line 173 of file imapset.cpp.


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

Returns the intervals this set consists of.

Definition at line 229 of file imapset.cpp.

bool ImapSet::isEmpty (  )  const

Returns true if this set doesn't contains any values.

Definition at line 234 of file imapset.cpp.

ImapSet & ImapSet::operator= ( const ImapSet &  other  ) 

Assignment operator.

Definition at line 177 of file imapset.cpp.

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:
  • imapset.h
  • imapset.cpp

KIMAP Library

Skip menu "KIMAP Library"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  • kabc
  • kblog
  • kcal
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal