akonadi
Akonadi::MonitorPrivate::PurgeBuffer Class Reference
Class used to determine when to purge items in a Collection. More...
#include <monitor_p.h>
Public Member Functions | |
Collection::Id | buffer (Collection::Id id) |
bool | isBuffered (Collection::Id id) const |
void | purge (Collection::Id id) |
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 137 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: