akonadi
#include <monitor_p.h>
Public Member Functions | |
Collection::Id | buffer (Collection::Id id) |
bool | isBuffered (Collection::Id id) const |
void | purge (Collection::Id id) |
Static Public Member Functions | |
static int | buffersize () |
Detailed Description
Class used to determine when to purge items in a Collection.
The buffer method can be used to buffer a Collection. This may cause another Collection to be purged if it is removed from the buffer.
The purge method is used to purge a Collection from the buffer, but not the model. This is used for example, to not buffer Collections anymore if they get referenced, and to ensure that one Collection does not appear twice in the buffer.
Check whether a Collection is buffered using the isBuffered method.
Definition at line 173 of file monitor_p.h.
Member Function Documentation
Collection::Id Akonadi::MonitorPrivate::PurgeBuffer::buffer | ( | Collection::Id | id | ) |
Adds id
to the Collections to be buffered.
- Returns
- The collection id which was removed form the buffer or -1 if none.
void Akonadi::MonitorPrivate::PurgeBuffer::purge | ( | Collection::Id | id | ) |
Removes id
from the Collections being buffered.
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:29 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.