Akonadi::Server::CacheCleanerInhibitor
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 31 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-2023 The KDE developers.
Generated on Sun Jan 29 2023 03:55:52 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Jan 29 2023 03:55:52 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.