File indexing completed on 2024-11-10 04:40:29

0001 /*
0002     SPDX-FileCopyrightText: 2011 Volker Krause <vkrause@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "akonadicore_export.h"
0010 #include "job.h"
0011 
0012 namespace Akonadi
0013 {
0014 class Collection;
0015 class InvalidateCacheJobPrivate;
0016 
0017 /**
0018  * Helper job to invalidate item cache for an entire collection.
0019  * @since 4.8
0020  */
0021 class AKONADICORE_EXPORT InvalidateCacheJob : public Akonadi::Job
0022 {
0023     Q_OBJECT
0024 public:
0025     /**
0026      * Create a job to invalidate all cached content in @p collection.
0027      */
0028     explicit InvalidateCacheJob(const Collection &collection, QObject *parent);
0029 
0030 protected:
0031     void doStart() override;
0032 
0033 private:
0034     Q_DECLARE_PRIVATE(InvalidateCacheJob)
0035 };
0036 
0037 }