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 190 of file monitor_p.h.
Constructor & Destructor Documentation
◆ PurgeBuffer()
|
inlineexplicit |
Definition at line 195 of file monitor_p.h.
Member Function Documentation
◆ buffer()
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.
◆ isBuffered()
|
inline |
Definition at line 211 of file monitor_p.h.
◆ purge()
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-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.