Akonadi::Server::CacheCleanerInhibitor Class Reference

#include <cachecleaner.h>

Public Member Functions

 CacheCleanerInhibitor (AkonadiServer &akonadi, bool inhibit=true)
void inhibit ()
void uninhibit ()

Detailed Description

A RAII helper class to temporarily stop the CacheCleaner.

This allows long-lasting operations to safely retrieve all data from resource and perform an operation on them (like move or copy) without risking that the cache will be cleaned in the meanwhile

The inhibitor is recursive, so it's possible to create multiple instances of the CacheCleanerInhibitor and the CacheCleaner will be inhibited until all instances are destroyed again. However it's not possible to inhibit a single inhibitor multiple times.

Definition at line 33 of file cachecleaner.h.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat Jul 11 2020 23:16:11 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.